Skip to content
Browse files

Further emphasize that you *MUST* check sa_family.

  • Loading branch information...
1 parent ea4f833 commit bb6cfe0259b89d7a671b1a9d3089b97298ced0a7 @guyharris guyharris committed May 4, 2011
Showing with 3 additions and 2 deletions.
  1. +3 −2 pcap_findalldevs.3pcap
View
5 pcap_findalldevs.3pcap
@@ -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

0 comments on commit bb6cfe0

Please sign in to comment.
Something went wrong with that request. Please try again.