cvs commit: src/sys/netinet in.h

Bruce M Simpson bms at FreeBSD.org
Wed Jan 31 14:34:48 UTC 2007


bms         2007-01-31 14:34:48 UTC

  FreeBSD src repository

  Modified files:
    sys/netinet          in.h 
  Log:
  Import macros IN_LINKLOCAL(), IN_PRIVATE(), IN_LOCAL_GROUP(), IN_ANY_LOCAL().
  This is not a functional change.
  
  IN_LINKLOCAL() tests if an address falls within the IPv4 link-local prefix.
  IN_PRIVATE() tests if an address falls within an RFC 1918 private prefix.
  IN_LOCAL_GROUP() tests if an address falls within the statically assigned
  link-local multicast scope specified in RFC 2365.
  IN_ANY_LOCAL() tests for either of IN_LINKLOCAL() or IN_LOCAL_GROUP().
  
  As with the existing macros in the FreeBSD netinet stack, comparisons
  are performed in host-byte order.
  
  See also:       RFC 1918, RFC 2365, RFC 3927
  Obtained from:  NetBSD (dyoung@)
  MFC after:      2 weeks
  
  Revision  Changes    Path
  1.98      +10 -0     src/sys/netinet/in.h


More information about the cvs-src mailing list