/freebsd-9.3-release/tools/regression/sockets/unix_cmsg/ |
H A D | unix_cmsg.c | 125 .desc = "Check cmsghdr.cmsg_len" 163 .desc = "Check cmsghdr.cmsg_len" 238 data array associated with a cmsghdr structure (bit 0x2)\n\ 764 const struct cmsghdr *cmsghdr; local 772 cmsghdr = CMSG_FIRSTHDR(msghdr); 773 if (cmsghdr != NULL) 774 dbgmsg("send: cmsghdr.cmsg_len %u", 775 (u_int)cmsghdr->cmsg_len); 811 const struct cmsghdr *cmsghd local 919 check_cmsghdr(const struct cmsghdr *cmsghdr, int type, size_t size) argument 1028 check_scm_creds_cmsgcred(struct cmsghdr *cmsghdr) argument 1089 check_scm_creds_sockcred(struct cmsghdr *cmsghdr) argument 1146 check_scm_timestamp(struct cmsghdr *cmsghdr) argument 1162 check_scm_bintime(struct cmsghdr *cmsghdr) argument 1212 struct cmsghdr *cmsghdr; local 1302 struct cmsghdr *cmsghdr; local 1395 struct cmsghdr *cmsghdr; local 1541 struct cmsghdr *cmsghdr; local 1660 struct cmsghdr *cmsghdr; local 1759 struct cmsghdr *cmsghdr; local 1823 struct cmsghdr *cmsghdr; local [all...] |
/freebsd-9.3-release/lib/libc/net/ |
H A D | rthdr.c | 69 struct cmsghdr * 74 struct cmsghdr *ch = (struct cmsghdr *)bp; 102 struct cmsghdr *cmsg; 147 struct cmsghdr *cmsg; 187 const struct cmsghdr *in; 188 struct cmsghdr *out; 197 const struct cmsghdr *cmsg; 221 struct cmsghdr *cmsg; 253 const struct cmsghdr *cms [all...] |
H A D | ip6opt.c | 50 * when it is stored as ancillary data, including the cmsghdr structure 70 inet6_option_init(void *bp, struct cmsghdr **cmsgp, int type) 72 struct cmsghdr *ch = (struct cmsghdr *)bp; 97 inet6_option_append(struct cmsghdr *cmsg, const u_int8_t *typep, int multx, 167 inet6_option_alloc(struct cmsghdr *cmsg, int datalen, int multx, int plusy) 230 inet6_option_next(const struct cmsghdr *cmsg, u_int8_t **tptrp) 286 inet6_option_find(const struct cmsghdr *cmsg, u_int8_t **tptrp, int type)
|
H A D | sctp_sys_calls.c | 513 struct cmsghdr *cmsg; 573 cmsg = (struct cmsghdr *)cmsgbuf; 623 struct cmsghdr *cmsg; 638 cmsg = (struct cmsghdr *)cmsgbuf; 789 struct cmsghdr *cmsg; 856 struct cmsghdr *cmsg; 948 struct cmsghdr *cmsg; 973 cmsg = (struct cmsghdr *)cmsgbuf; 993 cmsg = (struct cmsghdr *)((caddr_t)cmsg + CMSG_SPACE(sizeof(struct sctp_sndinfo))); 1006 cmsg = (struct cmsghdr *)((caddr_ [all...] |
/freebsd-9.3-release/tools/regression/sockets/unix_passfd/ |
H A D | unix_passfd.c | 103 struct cmsghdr cmsghdr; member in struct:__anon10640 122 message.cmsghdr.cmsg_len = sizeof(message); 123 message.cmsghdr.cmsg_level = SOL_SOCKET; 124 message.cmsghdr.cmsg_type = SCM_RIGHTS; 138 struct cmsghdr cmsghdr; member in struct:__anon10641 164 message.cmsghdr.cmsg_len = sizeof(message); 165 message.cmsghdr.cmsg_level = SOL_SOCKET; 166 message.cmsghdr [all...] |
/freebsd-9.3-release/contrib/pf/pflogd/ |
H A D | privsep_fdpass.c | 54 struct cmsghdr hdr; 57 struct cmsghdr *cmsg; 93 struct cmsghdr hdr; 96 struct cmsghdr *cmsg;
|
/freebsd-9.3-release/sys/netinet6/ |
H A D | in6.h | 414 #define IPV6_2292PKTOPTIONS 25 /* buf/cmsghdr; set/get IPv6 options */ 467 #define IPV6_PKTOPTIONS 52 /* buf/cmsghdr; set/get IPv6 options */ 634 struct cmsghdr; 675 struct cmsghdr; 678 extern int inet6_option_init(void *, struct cmsghdr **, int); 679 extern int inet6_option_append(struct cmsghdr *, const uint8_t *, 681 extern uint8_t *inet6_option_alloc(struct cmsghdr *, int, int, int); 682 extern int inet6_option_next(const struct cmsghdr *, uint8_t **); 683 extern int inet6_option_find(const struct cmsghdr *, uint8_t **, int); 686 extern struct cmsghdr *inet6_rthdr_ini [all...] |
/freebsd-9.3-release/tools/regression/netinet6/inet6_rth/ |
H A D | inet6_rth-segments.c | 44 static void init_hdrs(struct msghdr *, struct cmsghdr *, char *, size_t); 227 struct cmsghdr cmh; 228 struct cmsghdr *cmhp, *cmhnextp; 235 * Test: More than one cmsghdr 239 mh.msg_controllen = CMSG_SPACE(0) * 2; /* 2 cmsghdr with no data */ 243 * Copy the same instance of cmsghdr twice. Use a magic value 254 "more than one cmsghdr\0"); 257 * Test: only one cmsghdr 266 checkptr(NULL, (caddr_t)cmhnextp, "only one cmsghdr\0"); 285 struct cmsghdr cm [all...] |
/freebsd-9.3-release/sys/sys/ |
H A D | socket.h | 468 * of message elements headed by cmsghdr structures. 470 struct cmsghdr { struct 521 /* given pointer to struct cmsghdr, return pointer to data */ 523 _ALIGN(sizeof(struct cmsghdr))) 525 /* given pointer to struct cmsghdr, return pointer to next cmsghdr */ 528 ((char *)(cmsg) + _ALIGN(((struct cmsghdr *)(cmsg))->cmsg_len) + \ 529 _ALIGN(sizeof(struct cmsghdr)) > \ 531 (struct cmsghdr *)0 : \ 532 (struct cmsghdr *)(voi [all...] |
/freebsd-9.3-release/crypto/openssh/ |
H A D | monitor_fdpass.c | 53 struct cmsghdr hdr; 56 struct cmsghdr *cmsg; 114 struct cmsghdr hdr; 117 struct cmsghdr *cmsg;
|
H A D | defines.h | 514 #define CMSG_LEN(len) (__CMSG_ALIGN(sizeof(struct cmsghdr)) + (len)) 519 #define CMSG_SPACE(len) (__CMSG_ALIGN(sizeof(struct cmsghdr)) + __CMSG_ALIGN(len)) 522 /* given pointer to struct cmsghdr, return pointer to data */ 524 #define CMSG_DATA(cmsg) ((u_char *)(cmsg) + __CMSG_ALIGN(sizeof(struct cmsghdr))) 533 ((mhdr)->msg_controllen >= sizeof(struct cmsghdr) ? \ 534 (struct cmsghdr *)(mhdr)->msg_control : \ 535 (struct cmsghdr *)NULL)
|
/freebsd-9.3-release/contrib/openbsm/bin/auditdistd/ |
H A D | proto_common.c | 68 struct cmsghdr *cmsg; 168 struct cmsghdr *cmsg;
|
/freebsd-9.3-release/sbin/hastd/ |
H A D | proto_common.c | 67 struct cmsghdr *cmsg; 167 struct cmsghdr *cmsg;
|
/freebsd-9.3-release/usr.sbin/mount_portalfs/ |
H A D | activate.c | 100 struct cmsghdr cmsg;
|
/freebsd-9.3-release/sys/kern/ |
H A D | uipc_usrreq.c | 1688 struct cmsghdr *cm = mtod(control, struct cmsghdr *); 1738 CMSG_DATA(mtod(*controlp, struct cmsghdr *)); 1764 CMSG_DATA(mtod(*controlp, struct cmsghdr *)), 1772 cm = (struct cmsghdr *) 1824 struct cmsghdr *cm = mtod(control, struct cmsghdr *); 1860 CMSG_DATA(mtod(*controlp, struct cmsghdr *)); 1911 CMSG_DATA(mtod(*controlp, struct cmsghdr *)); 1928 CMSG_DATA(mtod(*controlp, struct cmsghdr *)); [all...] |
/freebsd-9.3-release/usr.sbin/traceroute6/ |
H A D | traceroute6.c | 343 struct cmsghdr *cmsg; 1101 struct cmsghdr *cm; 1103 for (cm = (struct cmsghdr *)CMSG_FIRSTHDR(mhdr); cm; 1104 cm = (struct cmsghdr *)CMSG_NXTHDR(mhdr, cm)) { 1194 struct cmsghdr *cm; 1233 for (cm = (struct cmsghdr *)CMSG_FIRSTHDR(mhdr); cm; 1234 cm = (struct cmsghdr *)CMSG_NXTHDR(mhdr, cm)) {
|
/freebsd-9.3-release/sbin/ping6/ |
H A D | ping6.c | 313 struct cmsghdr *scmsgp = NULL; 315 struct cmsghdr cm[CONTROLLEN]; 867 scmsgp = (struct cmsghdr *)scmsg; 915 if ((scmsgp = (struct cmsghdr *)inet6_rthdr_init(scmsgp, 1778 struct cmsghdr *cm; 1782 for (cm = (struct cmsghdr *)CMSG_FIRSTHDR(mhdr); cm; 1783 cm = (struct cmsghdr *)CMSG_NXTHDR(mhdr, cm)) { 2129 struct cmsghdr *cm; 2131 for (cm = (struct cmsghdr *)CMSG_FIRSTHDR(mhdr); cm; 2132 cm = (struct cmsghdr *)CMSG_NXTHD [all...] |
/freebsd-9.3-release/usr.sbin/rtsold/ |
H A D | probe.c | 148 struct cmsghdr *cm;
|
H A D | rtsol.c | 191 struct cmsghdr *cm; 248 struct cmsghdr *cm; 273 for (cm = (struct cmsghdr *)CMSG_FIRSTHDR(&rcvmhdr); cm; 274 cm = (struct cmsghdr *)CMSG_NXTHDR(&rcvmhdr, cm)) {
|
/freebsd-9.3-release/usr.sbin/mld6query/ |
H A D | mld6.c | 191 struct cmsghdr *cmsgp; 256 cmsgp = (struct cmsghdr *)cmsgbuf;
|
/freebsd-9.3-release/sys/fs/portalfs/ |
H A D | portal_vnops.c | 228 struct cmsghdr *cmsg; 399 cmsg = mtod(cm, struct cmsghdr *);
|
/freebsd-9.3-release/tools/regression/netinet/ipbroadcast/ |
H A D | ipbroadcast.c | 116 struct cmsghdr *cmsgp;
|
/freebsd-9.3-release/usr.sbin/nscd/ |
H A D | nscdcli.c | 142 struct cmsghdr hdr;
|
/freebsd-9.3-release/sys/compat/freebsd32/ |
H A D | freebsd32_misc.c | 990 (FREEBSD32_ALIGN(sizeof(struct cmsghdr)) + FREEBSD32_ALIGN(l)) 993 FREEBSD32_ALIGN(sizeof(struct cmsghdr))) 997 struct cmsghdr *cm; 1014 cm = mtod(m, struct cmsghdr *); 1019 if (sizeof(struct cmsghdr) > clen || 1029 cm->cmsg_len = FREEBSD32_ALIGN(sizeof(struct cmsghdr)) + 1033 /* Copy cmsghdr */ 1034 copylen = sizeof(struct cmsghdr); 1066 cm = (struct cmsghdr *) 1139 struct cmsghdr *c [all...] |
/freebsd-9.3-release/contrib/libpcap/ |
H A D | pcap-bt-linux.c | 299 struct cmsghdr *cmsg;
|