Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 4 Oct 2001 06:11:48 -0700 (PDT)
From:      David Malone <dwmalone@FreeBSD.org>
To:        cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/lib/libc/rpc clnt_vc.c svc_vc.c src/sbin/mount_portalfs activate.c src/sys/kern uipc_socket.c uipc_usrreq.c src/sys/netgraph ng_socket.c src/sys/sys domain.h un.h src/usr.sbin/ppp bundle.c
Message-ID:  <200110041311.f94DBn074084@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
dwmalone    2001/10/04 06:11:48 PDT

  Modified files:
    lib/libc/rpc         clnt_vc.c svc_vc.c 
    sbin/mount_portalfs  activate.c 
    sys/kern             uipc_socket.c uipc_usrreq.c 
    sys/netgraph         ng_socket.c 
    sys/sys              domain.h un.h 
    usr.sbin/ppp         bundle.c 
  Log:
  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
  
  Revision  Changes    Path
  1.8       +12 -6     src/lib/libc/rpc/clnt_vc.c
  1.6       +15 -10    src/lib/libc/rpc/svc_vc.c
  1.8       +5 -5      src/sbin/mount_portalfs/activate.c
  1.100     +14 -15    src/sys/kern/uipc_socket.c
  1.72      +266 -173  src/sys/kern/uipc_usrreq.c
  1.28      +3 -3      src/sys/netgraph/ng_socket.c
  1.16      +2 -2      src/sys/sys/domain.h
  1.21      +2 -2      src/sys/sys/un.h
  1.124     +6 -6      src/usr.sbin/ppp/bundle.c


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200110041311.f94DBn074084>