- PL2525 fix: implement SO_SETXID (reset the context ID of an existing
authorMark Huang <mlhuang@cs.princeton.edu>
Wed, 20 Oct 2004 02:33:15 +0000 (02:33 +0000)
committerMark Huang <mlhuang@cs.princeton.edu>
Wed, 20 Oct 2004 02:33:15 +0000 (02:33 +0000)
commit272fe31225f788b95c91d35481c58ead8afa351d
tree4da53c26844408d099e8dd1a82f278e50cc26e63
parent276b9b838dd0b9ff34dcac37d57331b23b4e15d5
- PL2525 fix: implement SO_SETXID (reset the context ID of an existing
  socket). Callable by root context only. To avoid having to register a
  new sockopt number, #define SO_SETXID to be SO_PASSCRED (which is not
  usually callable by setsockopt()):

#if !defined(SO_SETXID)
#define SO_SETXID SO_PASSCRED
#endif

int xid;
setsockopt(fd, SOL_SOCKET, SO_SETXID, &xid, sizeof(xid));
net/core/sock.c