Wireshark-bugs: [Wireshark-bugs] [Bug 9581] packet-rtpproxy.c - AF_INET undeclared

Date: Sun, 22 Dec 2013 03:24:24 +0000

Comment # 2 on bug 9581 from
If you're calling system APIs to convert between strings and IPv4/IPv6
addresses, you'd use the system AF_INET/AF_INET6 definitions.  That was the
case here, although:

  ------------------------------------------------------------------------
  r54330 | darkjames | 2013-12-21 08:16:56 -0800 (Sat, 21 Dec 2013) | 5 lines

  New functions: str_to_ip6(), str_to_ip()

  This way we can avoid including lot of system header files in some dissectors
  and it might fix bug #9581

which buries the calls to system APIs inside a routine in libwireshark, so you
don't have to worry about including the proper header files to get them defined
(or about ancient systems with no IPv6 support!).

xxx_AF_INET and xxx_AF_INET6 are for *other* purposes, such as protocols
defined to use a particular OS's AF_ values, or LINKTYPE_NULL captures, where
the address/protocol family values used are the ones from the OS on which the
capture was done.


You are receiving this mail because:
  • You are watching all bug changes.