cvs commit: src/sys/net route.c route.h rtsock.c

Luigi Rizzo luigi at FreeBSD.org
Tue Apr 13 04:22:24 PDT 2004


luigi       2004/04/13 04:22:23 PDT

  FreeBSD src repository

  Modified files:
    sys/net              route.c route.h rtsock.c 
  Log:
  route.h: introduce a macro, SA_SIZE(struct sockaddr *) which returns
  the space occupied by a struct sockaddr when passed through a
  routing socket.
  Use it to replace the macro ROUNDUP(int), that does the same but
  is redefined by every file which uses it, courtesy of
  the School of Cut'n'Paste Programming(TM).
  
  (partial) userland changes to follow.
  
  Revision  Changes    Path
  1.97      +2 -4      src/sys/net/route.c
  1.57      +12 -0     src/sys/net/route.h
  1.100     +5 -10     src/sys/net/rtsock.c


More information about the cvs-src mailing list