Lines Matching refs:cmsg
159 struct cmsghdr *cmsg; in printpacket() local
172 for (cmsg = CMSG_FIRSTHDR(msg); in printpacket()
173 cmsg; in printpacket()
174 cmsg = CMSG_NXTHDR(msg, cmsg)) { in printpacket()
175 printf(" cmsg len %zu: ", cmsg->cmsg_len); in printpacket()
176 switch (cmsg->cmsg_level) { in printpacket()
179 switch (cmsg->cmsg_type) { in printpacket()
182 (struct timeval *)CMSG_DATA(cmsg); in printpacket()
190 (struct timespec *)CMSG_DATA(cmsg); in printpacket()
198 (struct timespec *)CMSG_DATA(cmsg); in printpacket()
212 printf("type %d", cmsg->cmsg_type); in printpacket()
218 switch (cmsg->cmsg_type) { in printpacket()
221 (struct sock_extended_err *)CMSG_DATA(cmsg); in printpacket()
240 (struct in_pktinfo *)CMSG_DATA(cmsg); in printpacket()
246 printf("type %d", cmsg->cmsg_type); in printpacket()
252 cmsg->cmsg_level, in printpacket()
253 cmsg->cmsg_type); in printpacket()