Lines Matching refs:cmsg
140 struct cmsghdr *cmsg; in printpacket() local
153 for (cmsg = CMSG_FIRSTHDR(msg); in printpacket()
154 cmsg; in printpacket()
155 cmsg = CMSG_NXTHDR(msg, cmsg)) { in printpacket()
156 printf(" cmsg len %zu: ", cmsg->cmsg_len); in printpacket()
157 switch (cmsg->cmsg_level) { in printpacket()
160 switch (cmsg->cmsg_type) { in printpacket()
163 (struct timeval *)CMSG_DATA(cmsg); in printpacket()
171 (struct timespec *)CMSG_DATA(cmsg); in printpacket()
179 (struct timespec *)CMSG_DATA(cmsg); in printpacket()
193 printf("type %d", cmsg->cmsg_type); in printpacket()
199 switch (cmsg->cmsg_type) { in printpacket()
202 (struct sock_extended_err *)CMSG_DATA(cmsg); in printpacket()
222 (struct in_pktinfo *)CMSG_DATA(cmsg); in printpacket()
228 printf("type %d", cmsg->cmsg_type); in printpacket()
234 cmsg->cmsg_level, in printpacket()
235 cmsg->cmsg_type); in printpacket()