* Implement SOCK_SEQPACKET sockets for local communications. These sockets
authorMatthew Dillon <dillon@dragonflybsd.org>
Tue, 27 May 2008 01:10:47 +0000 (01:10 +0000)
committerMatthew Dillon <dillon@dragonflybsd.org>
Tue, 27 May 2008 01:10:47 +0000 (01:10 +0000)
commit91be174d5ec89a4fdfe10f44d6b60f2d5c09aa45
tree7e62fabdee0f9c646beb491bf61ffe91f5150cad
parent40aaf5fcac68b1b01e997489147ad3809009e9c1
* Implement SOCK_SEQPACKET sockets for local communications.  These sockets
  operate like SOCK_STREAM but each write() builds a record and each read()
  reads a record.  That is, the data is not aggregated together or allowed
  to be partially read.

  This allows local sockets to have the same packetization characteristics
  as if_tap when desired.

* Add a feature to the vkernel which allows a unix domain socket to be
  specified for the network interface rather then a TAP interface.  The
  vkernel will connect to the socket using SOCK_SEQPACKET and read and
  write packets to it.

* Clean up some libc/kernel namespace collisions related to including
  sys/socket.h.
15 files changed:
sys/dev/virtual/net/if_vke.c
sys/kern/uipc_domain.c
sys/kern/uipc_proto.c
sys/kern/uipc_usrreq.c
sys/net/if.c
sys/netinet/ip_icmp.c
sys/netinet6/esp_input.c
sys/netinet6/icmp6.c
sys/netinet6/ipsec.c
sys/netinet6/nd6.c
sys/netproto/ipsec/ipsec_input.c
sys/netproto/ipsec/ipsec_output.c
sys/platform/vkernel/platform/init.c
sys/sys/protosw.h
sys/sys/socket.h