cvs commit: src/sys/net raw_cb.c raw_cb.h raw_usrreq.c rtsock.c src/sys/netipsec keysock.c

Robert Watson rwatson at FreeBSD.org
Sun Aug 31 15:56:45 UTC 2008


rwatson     2008-08-31 15:55:59 UTC

  FreeBSD src repository

  Modified files:        (Branch: RELENG_7)
    sys/net              raw_cb.c raw_cb.h raw_usrreq.c rtsock.c 
    sys/netipsec         keysock.c 
  Log:
  SVN rev 182546 on 2008-08-31 15:55:59Z by rwatson
  
  Merge r180385 from head to stable/7:
  
    Remove unused support for local and foreign addresses in generic raw
    socket support.  These utility routines are used only for routing and
    pfkey sockets, neither of which have a notion of address, so were
    required to mock up fake socket addresses to avoid connection
    requirements for applications that did not specify their own fake
    addresses (most of them).
  
    Quite a bit of the removed code is #ifdef notdef, since raw sockets
    don't support bind() or connect() in practice.  Removing this
    simplifies the raw socket implementation, and removes two (commented
    out) uses of dtom(9).
  
    Fake addresses passed to sendto(2) by applications are ignored for
    compatibility reasons, but this is now done in a more consistent way
    (and with a comment).  Possibly, EINVAL could be returned here in
    the future if it is determined that no applications depend on the
    semantic inconsistency of specifying a destination address for a
    protocol without address support, but this will require some amount
    of careful surveying.
  
    NB: This does not affect netinet, netinet6, or other wire protocol
    raw sockets, which provide their own independent infrastructure with
    control block address support specific to the protocol.
  
    Reviewed by:    bz
  
  Revision   Changes    Path
  1.34.2.2   +0 -37     src/sys/net/raw_cb.c
  1.19.10.3  +1 -5      src/sys/net/raw_cb.h
  1.44.2.2   +30 -71    src/sys/net/raw_usrreq.c
  1.143.2.3  +1 -3      src/sys/net/rtsock.c
  1.18.2.3   +0 -3      src/sys/netipsec/keysock.c


More information about the cvs-all mailing list