freebsd-dev/sys/netgraph
David Malone 2bc21ed985 Hopefully improve control message passing over Unix domain sockets.
1) Allow the sending of more than one control message at a time
over a unix domain socket. This should cover the PR 29499.

2) This requires that unp_{ex,in}ternalize and unp_scan understand
mbufs with more than one control message at a time.

3) Internalize and externalize used to work on the mbuf in-place.
This made life quite complicated and the code for sizeof(int) <
sizeof(file *) could end up doing the wrong thing. The patch always
create a new mbuf/cluster now. This resulted in the change of the
prototype for the domain externalise function.

4) You can now send SCM_TIMESTAMP messages.

5) Always use CMSG_DATA(cm) to determine the start where the data
in unp_{ex,in}ternalize. It was using ((struct cmsghdr *)cm + 1)
in some places, which gives the wrong alignment on the alpha.
(NetBSD made this fix some time ago).

This results in an ABI change for discriptor passing and creds
passing on the alpha. (Probably on the IA64 and Spare ports too).

6) Fix userland programs to use CMSG_* macros too.

7) Be more careful about freeing mbufs containing (file *)s.
This is made possible by the prototype change of externalise.

PR:		29499
MFC after:	6 weeks
2001-10-04 13:11:48 +00:00
..
netgraph.h
ng_async.c
ng_async.h
ng_base.c
ng_bpf.c
ng_bpf.h
ng_bridge.c
ng_bridge.h
ng_cisco.c
ng_cisco.h
ng_echo.c
ng_echo.h
ng_eiface.c
ng_eiface.h
ng_ether.c KSE Milestone 2 2001-09-12 08:38:13 +00:00
ng_ether.h
ng_frame_relay.c
ng_frame_relay.h
ng_gif_demux.c The initial commit contained an error in the license, this is the 2001-09-27 00:04:29 +00:00
ng_gif_demux.h The initial commit contained an error in the license, this is the 2001-09-27 00:04:29 +00:00
ng_gif.c Remove a couple unintentional mentions of Ethernet that crept in from 2001-09-28 00:02:50 +00:00
ng_gif.h Fixed pedantic syntax error (trailing semicolon in enum). 2001-10-04 07:51:42 +00:00
ng_hole.c
ng_hole.h
ng_iface.c
ng_iface.h
ng_ip_input.c Add ng_ip_input. A new netgraph node for queuing IP packets into the 2001-09-27 21:54:27 +00:00
ng_ip_input.h Add ng_ip_input. A new netgraph node for queuing IP packets into the 2001-09-27 21:54:27 +00:00
ng_ksocket.c KSE Milestone 2 2001-09-12 08:38:13 +00:00
ng_ksocket.h First pass at porting John's "accept" changes to 2001-09-07 07:12:51 +00:00
ng_lmi.c
ng_lmi.h
ng_message.h
ng_mppc.c KSE Milestone 2 2001-09-12 08:38:13 +00:00
ng_mppc.h
ng_one2many.c
ng_one2many.h
ng_parse.c KSE Milestone 2 2001-09-12 08:38:13 +00:00
ng_parse.h
ng_ppp.c
ng_ppp.h
ng_pppoe.c MFS: change name of sysctl to something more diplomatic. 2001-09-04 06:29:35 +00:00
ng_pppoe.h
ng_pptpgre.c
ng_pptpgre.h
ng_rfc1490.c
ng_rfc1490.h
ng_sample.c
ng_sample.h
ng_socket.c Hopefully improve control message passing over Unix domain sockets. 2001-10-04 13:11:48 +00:00
ng_socket.h
ng_socketvar.h
ng_split.c
ng_split.h
ng_tee.c KSE Milestone 2 2001-09-12 08:38:13 +00:00
ng_tee.h
ng_tty.c KSE Milestone 2 2001-09-12 08:38:13 +00:00
ng_tty.h
ng_UI.c
ng_UI.h
ng_vjc.c
ng_vjc.h
NOTES