Skip to contentSkip to conversation

ss: Fix wrong filter behaviour

PATCH Mihai Moldovan 3 participants 4 messages Apr 29, 2015 – Apr 30, 2015 2 messages not in the archive

Subsystems (2)
lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

#2 lore raw
Quoted 16 lines · Vadim Kochan
Quoted 15 lines · Vadim Kochan

From: Vadim Kochan <[email protected]>

Fixed applying family & socket type filters.
It was not possible to select UDP & UNIX sockets together.

Now selected families are ORed.

The problem was that filters were combined by AND.

---
 misc/ss.c | 91 ++++++++++++++++++++++++++++++++++-----------------------------
 1 file changed, 49 insertions(+), 42 deletions(-)
Quoted 8 lines

misc/ss.c

Quoted 3 lines
misc/ss.c +0 -0
index 954a30b..46dbb39 100644
[...]

Would you please respond if you received this patch ? I am just checking, in case if it was get into 'Spam' list.

Regards,

I finally came around to testing this, sorry it took me so long.

Using that patch, the output looks much better. It works for my use case.

What do we do with the "broken" versions, though? Even if that patch hits 4.1.0, older versions like 4.0.0, 3.19.0 etc. will still be broken?

Mihai

#3 lore raw
Quoted 28 lines · Mihai Moldovan
Quoted 16 lines · Vadim Kochan
Quoted 15 lines · Vadim Kochan

From: Vadim Kochan <[email protected]>

Fixed applying family & socket type filters.
It was not possible to select UDP & UNIX sockets together.

Now selected families are ORed.

The problem was that filters were combined by AND.

---
 misc/ss.c | 91 ++++++++++++++++++++++++++++++++++-----------------------------
 1 file changed, 49 insertions(+), 42 deletions(-)
Quoted 8 lines

misc/ss.c

Quoted 3 lines
misc/ss.c +0 -0
index 954a30b..46dbb39 100644
[...]

Would you please respond if you received this patch ? I am just checking, in case if it was get into 'Spam' list.

Regards,

I finally came around to testing this, sorry it took me so long.

Quoted 9 lines

Using that patch, the output looks much better. It works for my use case.

What do we do with the "broken" versions, though? Even if that patch hits 4.1.0, older versions like 4.0.0, 3.19.0 etc. will still be broken?

Mihai

Hi Mihai,

I think it depends on distro package maintainers, usually they track the upstream fixes and uses them in their stable versions, may be I should grep some maintainers emails (LARTC mailing list ?) and broadcast to them ?

Regards,

#4 lore raw
Quoted 3 lines · Vadim Kochan

I think it depends on distro package maintainers, usually they track the upstream fixes and uses them in their stable versions, may be I should grep some maintainers emails (LARTC mailing list ?) and broadcast to them ?

Well... that's strictly speaking not your responsibility. I can make them aware, I guess?

Mihai

#5 lore raw
In reply to Mihai Moldovan
Quoted 24 lines · On Wed, 29 Apr 2015 23:22:13 +0200 Mihai Moldovan <[email protected]> wrote:
Quoted 23 lines · Vadim Kochan
Quoted 17 lines · Vadim Kochan

From: Vadim Kochan <[email protected]>

Fixed applying family & socket type filters.
It was not possible to select UDP & UNIX sockets together.

Now selected families are ORed.

The problem was that filters were combined by AND.

---
 misc/ss.c | 91 ++++++++++++++++++++++++++++++++++-----------------------------
 1 file changed, 49 insertions(+), 42 deletions(-)
misc/ss.c +0 -0
index 954a30b..46dbb39 100644

misc/ss.c

Quoted 1 line
misc/ss.c +0 -0
[...]

Would you please respond if you received this patch ? I am just checking, in case if it was get into 'Spam' list.

Quoted 8 lines
Quoted 1 line

Regards,

I finally came around to testing this, sorry it took me so long.

Using that patch, the output looks much better. It works for my use case.

What do we do with the "broken" versions, though? Even if that patch hits 4.1.0, older versions like 4.0.0, 3.19.0 etc. will still be broken?

I could put out a 4.0.1 but usually reserve doing maintenance releases for serious bugs like security problems.