[netsniff-ng] [PATCH 2/2] mausezahn: Support -R to set packet priority

2019-10-01 Thread Petr Machata
Add a command line option -R to specify SO_PRIORITY socket option. This then sets priority of the generated SKBs, which is handy for testing Qdiscs and other priority-dependent functionality. Signed-off-by: Petr Machata --- mausezahn.8 | 6 ++ staging/layer3.c| 9

[netsniff-ng] [PATCH 1/2] mausezahn.8: Document -r

2019-10-01 Thread Petr Machata
This option is mentioned further in the man page, but is omitted in the main section. Add it. Signed-off-by: Petr Machata --- mausezahn.8 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mausezahn.8 b/mausezahn.8 index 44a76ab..8379111 100644 --- a/mausezahn.8 +++ b/mausezahn.8 @@ -98,6

[netsniff-ng] [PATCH] mausezahn: Fix IPv6 address comparison

2018-05-14 Thread Petr Machata
CMP_INT evaluates its arguments more than once, and thus passing a post-incremented pointer as an argument causes double increments and hence buffer overruns. This can be observed by erratic behavior of IPv6 address ranges. Fix by moving the increment to loop header. Signed-off-by: Petr Machata