]> The Tcpdump Group git mirrors - tcpdump/commit
print-olsr: Add basic IPv6 support.
authorFlorian Forster <[email protected]>
Sat, 16 May 2009 22:05:30 +0000 (00:05 +0200)
committerGuy Harris <[email protected]>
Thu, 21 May 2009 17:38:40 +0000 (10:38 -0700)
commit289e0aed7d910e6b2df73476848674a73b8ab1ac
tree6897c5bc9d5dde9d4d2ae187fc440749a7274060
parente3d44c4e890fd7ce19c5704dd2cb0739ba826ad0
print-olsr: Add basic IPv6 support.

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 #ifdef INET6'es. If
IPv6-support really should be optional, I'm afraid this is inevitable.
Both, compilation with and without IPv6 support has been tested.

The patch addresses fixes other issues, too. The length given in the packet
was used for pointer arithmetic without checking if the value was in a
reasonable range first in several places. It should now be possible to
decode more than one "namespace message" within a single packet. Other
changes remove trailing whitespace or fix lines indented with tabs (the
majority of the file is indented using spaces).

Signed-off-by: Florian Forster <[email protected]>
CREDITS
interface.h
print-olsr.c
print-udp.c