cvs commit: src/sys/sys socket.h src/lib/libc/net rthdr.c

Mike Makonnen mtm at FreeBSD.org
Thu Apr 19 15:48:17 UTC 2007


mtm         2007-04-19 15:48:16 UTC

  FreeBSD src repository

  Modified files:
    sys/sys              socket.h 
    lib/libc/net         rthdr.c 
  Log:
  Make inet6_rth_* family of functions more compliant with RFC3542:
  1. CMSG_NXTHDR(mhdr, cmsg) is supposed to dereference cmsg and return
     the next header in the chain. If cmsg is NULL it should return
     the first header, behaving essentially like CMSG_FIRSTHDR().
  2. inet6_rth_(space|init|add) should do basic checking on their input
     to verify that the number of headers (segments) is
     between 0 and 127 inclusive.
  
  MFC-After: 1 month
  
  Revision  Changes    Path
  1.9       +9 -1      src/lib/libc/net/rthdr.c
  1.93      +4 -2      src/sys/sys/socket.h


More information about the cvs-src mailing list