[BACK]Return to socket.h CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / sys / sys

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/sys/sys/socket.h between version 1.72 and 1.75.2.1

version 1.72, 2005/03/08 07:43:14 version 1.75.2.1, 2006/01/30 13:13:55
Line 359  struct sockcred {
Line 359  struct sockcred {
         { "arp", CTLTYPE_NODE }, \          { "arp", CTLTYPE_NODE }, \
         { "key", CTLTYPE_NODE }, \          { "key", CTLTYPE_NODE }, \
 }  }
   
   struct kinfo_pcb {
           __uint64_t      ki_pcbaddr;     /* PTR: pcb addr */
           __uint64_t      ki_ppcbaddr;    /* PTR: ppcb addr */
           __uint64_t      ki_sockaddr;    /* PTR: socket addr */
   
           __uint32_t      ki_family;      /* INT: protocol family */
           __uint32_t      ki_type;        /* INT: socket type */
           __uint32_t      ki_protocol;    /* INT: protocol */
           __uint32_t      ki_pflags;      /* INT: generic protocol flags */
   
           __uint32_t      ki_sostate;     /* INT: socket state */
           __uint32_t      ki_prstate;     /* INT: protocol state */
           __int32_t       ki_tstate;      /* INT: tcp state */
           __uint32_t      ki_tflags;      /* INT: tcp flags */
   
           __uint64_t      ki_rcvq;        /* U_LONG: receive queue len */
           __uint64_t      ki_sndq;        /* U_LONG: send queue len */
   
           union {
                   struct sockaddr _kis_src; /* STRUCT: local address */
                   char _kis_pad[256 + 8];         /* pad to max addr length */
           } ki_s;
           union {
                   struct sockaddr _kid_dst; /* STRUCT: remote address */
                   char _kid_pad[256 + 8];         /* pad to max addr length */
           } ki_d;
   
           __uint64_t      ki_inode;       /* INO_T: fake inode number */
           __uint64_t      ki_vnode;       /* PTR: if associated with file */
           __uint64_t      ki_conn;        /* PTR: control block of peer */
           __uint64_t      ki_refs;        /* PTR: referencing socket */
           __uint64_t      ki_nextref;     /* PTR: link in refs list */
   };
   
   #define ki_src ki_s._kis_src
   #define ki_dst ki_d._kid_dst
   
   #define PCB_SLOP                20
   #define PCB_ALL                 0
   
 #endif /* _NETBSD_SOURCE */  #endif /* _NETBSD_SOURCE */
   
 #if defined(_NETBSD_SOURCE)  #if defined(_NETBSD_SOURCE)
Line 453  struct cmsghdr {
Line 494  struct cmsghdr {
         (((__caddr_t)(cmsg) + __CMSG_ALIGN((cmsg)->cmsg_len) + \          (((__caddr_t)(cmsg) + __CMSG_ALIGN((cmsg)->cmsg_len) + \
                             __CMSG_ALIGN(sizeof(struct cmsghdr)) > \                              __CMSG_ALIGN(sizeof(struct cmsghdr)) > \
             (((__caddr_t)(mhdr)->msg_control) + (mhdr)->msg_controllen)) ? \              (((__caddr_t)(mhdr)->msg_control) + (mhdr)->msg_controllen)) ? \
             (struct cmsghdr *)NULL : \              (struct cmsghdr *)0 : \
             (struct cmsghdr *)((__caddr_t)(cmsg) + \              (struct cmsghdr *)((__caddr_t)(cmsg) + \
                 __CMSG_ALIGN((cmsg)->cmsg_len)))                  __CMSG_ALIGN((cmsg)->cmsg_len)))
   
Line 464  struct cmsghdr {
Line 505  struct cmsghdr {
 #define CMSG_FIRSTHDR(mhdr) \  #define CMSG_FIRSTHDR(mhdr) \
         ((mhdr)->msg_controllen >= sizeof(struct cmsghdr) ? \          ((mhdr)->msg_controllen >= sizeof(struct cmsghdr) ? \
          (struct cmsghdr *)(mhdr)->msg_control : \           (struct cmsghdr *)(mhdr)->msg_control : \
          (struct cmsghdr *)NULL)           (struct cmsghdr *)0)
   
 #define CMSG_SPACE(l)   (__CMSG_ALIGN(sizeof(struct cmsghdr)) + __CMSG_ALIGN(l))  #define CMSG_SPACE(l)   (__CMSG_ALIGN(sizeof(struct cmsghdr)) + __CMSG_ALIGN(l))
 #define CMSG_LEN(l)     (__CMSG_ALIGN(sizeof(struct cmsghdr)) + (l))  #define CMSG_LEN(l)     (__CMSG_ALIGN(sizeof(struct cmsghdr)) + (l))

Legend:
Removed from v.1.72  
changed lines
  Added in v.1.75.2.1

CVSweb <webmaster@jp.NetBSD.org>