Skip to content

Commit

Permalink
Further emphasize that you *MUST* check sa_family.
Browse files Browse the repository at this point in the history
  • Loading branch information
guyharris committed May 5, 2011
1 parent ea4f833 commit bb6cfe0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pcap_findalldevs.3pcap
Expand Up @@ -149,8 +149,9 @@ check the
.B sa_family
member of the
.B "struct sockaddr"
before interpreting the contents of the address. IPv4 addresses have
the value
before interpreting the contents of the address; do not assume that the
addresses are all IPv4 addresses, or even all IPv4 or IPv6 addresses.
IPv4 addresses have the value
.BR AF_INET ,
IPv6 addresses have the value
.B AF_INET6
Expand Down

0 comments on commit bb6cfe0

Please sign in to comment.