[tcpdump-workers] [PATCH 2/2] print-olsr: Add basic IPv6 support.

2009-05-16 Thread Florian Forster
From: Florian Forster Unfortunately OLSR uses the same IDs for IPv4 and IPv6 packets, even though the size of "messages" differ. The version of the internet protocol is therefore handed to the "olsr_print" function. The code isn't very nice, due to a high density of

[tcpdump-workers] [PATCH 1/2] util.c: Add the `mask62plen' utility function.

2009-05-16 Thread Florian Forster
From: Florian Forster The function does the same as `mask2plen' but for IPv6. Signed-off-by: Florian Forster --- interface.h |1 + util.c | 29 + 2 files changed, 30 insertions(+), 0 deletions(-) diff --git a/interface.h b/interface.h index 68

[tcpdump-workers] [PATCH] print-olsr: Don't trust the package payload.

2009-05-16 Thread Florian Forster
From: Florian Forster Especially not to do pointer arithmetic. This is a real problem even without malicious people around if you use OLSR via IPv6, because the message IDs didn't change but addresses are now longer than four bytes. Signed-off-by: Florian Forster --- print-olsr.c |