tcpdump mailing list archives

ipv6 addresses in pcap_addr


From: Chris Morgan <chmorgan () gmail com>
Date: Thu, 22 Jan 2009 19:05:02 -0500

Hello.

I wasn't sure if this question was answered anywhere, I've searched
via google and looked on the mailing lists but haven't seen any
answers.

How does one get a ipv6 address from the sockaddr struct pointed to by
pcap_addr? I have devices with addresses of type AF_INET6 but since
the sockaddr struct is defined to have only 14 bytes of protocol
address how does one get a 16 byte ipv6 address out of this 14 byte
structure?

Chris
-
This is the tcpdump-workers list.
Visit https://cod.sandelman.ca/ to unsubscribe.


Current thread: