• Home
  • Raw
  • Download

Lines Matching full:family

89 	uint8_t *family;  in test_odd_family_req()  local
93 /* unspecified family only */ in test_odd_family_req()
94 nlh = nlh0 - sizeof(*family); in test_odd_family_req()
97 .nlmsg_len = NLMSG_HDRLEN + sizeof(*family), in test_odd_family_req()
101 family = NLMSG_DATA(nlh); in test_odd_family_req()
102 *family = 0; in test_odd_family_req()
104 rc = sendto(fd, nlh, NLMSG_HDRLEN + sizeof(*family), MSG_DONTWAIT, in test_odd_family_req()
109 ", {family=AF_UNSPEC}}" in test_odd_family_req()
111 fd, NLMSG_HDRLEN + (unsigned int) sizeof(*family), in test_odd_family_req()
112 NLMSG_HDRLEN + (unsigned int) sizeof(*family), in test_odd_family_req()
115 /* unknown family only */ in test_odd_family_req()
116 *family = 0xff; in test_odd_family_req()
118 rc = sendto(fd, nlh, NLMSG_HDRLEN + sizeof(*family), MSG_DONTWAIT, in test_odd_family_req()
123 ", {family=0xff /* AF_??? */}}" in test_odd_family_req()
125 fd, NLMSG_HDRLEN + (unsigned int) sizeof(*family), in test_odd_family_req()
126 NLMSG_HDRLEN + (unsigned int) sizeof(*family), in test_odd_family_req()
129 /* short read of family */ in test_odd_family_req()
133 rc = sendto(fd, nlh, NLMSG_HDRLEN + sizeof(*family), MSG_DONTWAIT, in test_odd_family_req()
139 fd, NLMSG_HDRLEN + (unsigned int) sizeof(*family), in test_odd_family_req()
141 NLMSG_HDRLEN + (unsigned int) sizeof(*family), in test_odd_family_req()
144 /* unspecified family and string */ in test_odd_family_req()
145 nlh = nlh0 - (sizeof(*family) + 4); in test_odd_family_req()
148 .nlmsg_len = NLMSG_HDRLEN + sizeof(*family) + 4, in test_odd_family_req()
152 family = NLMSG_DATA(nlh); in test_odd_family_req()
153 *family = 0; in test_odd_family_req()
154 memcpy(family + 1, "1234", 4); in test_odd_family_req()
156 rc = sendto(fd, nlh, NLMSG_HDRLEN + sizeof(*family) + 4, MSG_DONTWAIT, in test_odd_family_req()
161 ", {family=AF_UNSPEC, \"1234\"}}" in test_odd_family_req()
163 fd, NLMSG_HDRLEN + (unsigned int) sizeof(*family) + 4, in test_odd_family_req()
164 NLMSG_HDRLEN + (unsigned int) sizeof(*family) + 4, in test_odd_family_req()
167 /* unknown family and string */ in test_odd_family_req()
168 *family = 0xfd; in test_odd_family_req()
170 rc = sendto(fd, nlh, NLMSG_HDRLEN + sizeof(*family) + 4, MSG_DONTWAIT, in test_odd_family_req()
175 ", {family=0xfd /* AF_??? */, \"1234\"}}" in test_odd_family_req()
177 fd, NLMSG_HDRLEN + (unsigned int) sizeof(*family) + 4, in test_odd_family_req()
178 NLMSG_HDRLEN + (unsigned int) sizeof(*family) + 4, in test_odd_family_req()
186 uint8_t *family; in test_odd_family_msg() local
190 /* unspecified family only */ in test_odd_family_msg()
191 nlh = nlh0 - sizeof(*family); in test_odd_family_msg()
194 .nlmsg_len = NLMSG_HDRLEN + sizeof(*family), in test_odd_family_msg()
198 family = NLMSG_DATA(nlh); in test_odd_family_msg()
199 *family = 0; in test_odd_family_msg()
201 rc = sendto(fd, nlh, NLMSG_HDRLEN + sizeof(*family), MSG_DONTWAIT, in test_odd_family_msg()
206 ", {family=AF_UNSPEC}}" in test_odd_family_msg()
208 fd, NLMSG_HDRLEN + (unsigned int) sizeof(*family), in test_odd_family_msg()
209 NLMSG_HDRLEN + (unsigned int) sizeof(*family), in test_odd_family_msg()
212 /* unknown family only */ in test_odd_family_msg()
213 *family = 0xff; in test_odd_family_msg()
215 rc = sendto(fd, nlh, NLMSG_HDRLEN + sizeof(*family), MSG_DONTWAIT, in test_odd_family_msg()
220 ", {family=0xff /* AF_??? */}}" in test_odd_family_msg()
222 fd, NLMSG_HDRLEN + (unsigned int) sizeof(*family), in test_odd_family_msg()
223 NLMSG_HDRLEN + (unsigned int) sizeof(*family), in test_odd_family_msg()
226 /* short read of family */ in test_odd_family_msg()
230 rc = sendto(fd, nlh, NLMSG_HDRLEN + sizeof(*family), MSG_DONTWAIT, in test_odd_family_msg()
236 fd, NLMSG_HDRLEN + (unsigned int) sizeof(*family), in test_odd_family_msg()
238 NLMSG_HDRLEN + (unsigned int) sizeof(*family), in test_odd_family_msg()
241 /* unspecified family and string */ in test_odd_family_msg()
242 nlh = nlh0 - (sizeof(*family) + 4); in test_odd_family_msg()
245 .nlmsg_len = NLMSG_HDRLEN + sizeof(*family) + 4, in test_odd_family_msg()
249 family = NLMSG_DATA(nlh); in test_odd_family_msg()
250 *family = 0; in test_odd_family_msg()
251 memcpy(family + 1, "1234", 4); in test_odd_family_msg()
253 rc = sendto(fd, nlh, NLMSG_HDRLEN + sizeof(*family) + 4, MSG_DONTWAIT, in test_odd_family_msg()
258 ", {family=AF_UNSPEC, \"1234\"}}" in test_odd_family_msg()
260 fd, NLMSG_HDRLEN + (unsigned int) sizeof(*family) + 4, in test_odd_family_msg()
261 NLMSG_HDRLEN + (unsigned int) sizeof(*family) + 4, in test_odd_family_msg()
264 /* unknown family and string */ in test_odd_family_msg()
265 *family = 0xfb; in test_odd_family_msg()
267 rc = sendto(fd, nlh, NLMSG_HDRLEN + sizeof(*family) + 4, MSG_DONTWAIT, in test_odd_family_msg()
272 ", {family=0xfb /* AF_??? */, \"1234\"}}" in test_odd_family_msg()
274 fd, NLMSG_HDRLEN + (unsigned int) sizeof(*family) + 4, in test_odd_family_msg()
275 NLMSG_HDRLEN + (unsigned int) sizeof(*family) + 4, in test_odd_family_msg()
284 uint8_t *family; in test_unix_diag_req() local
288 /* family only */ in test_unix_diag_req()
289 nlh = nlh0 - sizeof(*family); in test_unix_diag_req()
292 .nlmsg_len = NLMSG_HDRLEN + sizeof(*family), in test_unix_diag_req()
296 family = NLMSG_DATA(nlh); in test_unix_diag_req()
297 *family = AF_UNIX; in test_unix_diag_req()
299 rc = sendto(fd, nlh, NLMSG_HDRLEN + sizeof(*family), MSG_DONTWAIT, in test_unix_diag_req()
303 ", flags=NLM_F_REQUEST, seq=0, pid=0}, {family=AF_UNIX}}" in test_unix_diag_req()
305 fd, NLMSG_HDRLEN + (unsigned int) sizeof(*family), in test_unix_diag_req()
306 NLMSG_HDRLEN + (unsigned int) sizeof(*family), in test_unix_diag_req()
309 /* family and string */ in test_unix_diag_req()
310 nlh = nlh0 - (sizeof(*family) + 4); in test_unix_diag_req()
313 .nlmsg_len = NLMSG_HDRLEN + sizeof(*family) + 4, in test_unix_diag_req()
317 family = NLMSG_DATA(nlh); in test_unix_diag_req()
318 *family = AF_UNIX; in test_unix_diag_req()
319 memcpy(family + 1, "1234", 4); in test_unix_diag_req()
321 rc = sendto(fd, nlh, NLMSG_HDRLEN + sizeof(*family) + 4, MSG_DONTWAIT, in test_unix_diag_req()
328 fd, NLMSG_HDRLEN + (unsigned int) sizeof(*family) + 4, in test_unix_diag_req()
329 NLMSG_HDRLEN + (unsigned int) sizeof(*family) + 4, in test_unix_diag_req()
385 uint8_t *family; in test_unix_diag_msg() local
389 /* family only */ in test_unix_diag_msg()
390 nlh = nlh0 - sizeof(*family); in test_unix_diag_msg()
393 .nlmsg_len = NLMSG_HDRLEN + sizeof(*family), in test_unix_diag_msg()
397 family = NLMSG_DATA(nlh); in test_unix_diag_msg()
398 *family = AF_UNIX; in test_unix_diag_msg()
400 rc = sendto(fd, nlh, NLMSG_HDRLEN + sizeof(*family), MSG_DONTWAIT, in test_unix_diag_msg()
404 ", flags=NLM_F_DUMP, seq=0, pid=0}, {family=AF_UNIX}}" in test_unix_diag_msg()
406 fd, NLMSG_HDRLEN + (unsigned int) sizeof(*family), in test_unix_diag_msg()
407 NLMSG_HDRLEN + (unsigned int) sizeof(*family), in test_unix_diag_msg()
410 /* family and string */ in test_unix_diag_msg()
411 nlh = nlh0 - (sizeof(*family) + 4); in test_unix_diag_msg()
414 .nlmsg_len = NLMSG_HDRLEN + sizeof(*family) + 4, in test_unix_diag_msg()
418 family = NLMSG_DATA(nlh); in test_unix_diag_msg()
419 *family = AF_UNIX; in test_unix_diag_msg()
420 memcpy(family + 1, "1234", 4); in test_unix_diag_msg()
422 rc = sendto(fd, nlh, NLMSG_HDRLEN + sizeof(*family) + 4, MSG_DONTWAIT, in test_unix_diag_msg()
429 fd, NLMSG_HDRLEN + (unsigned int) sizeof(*family) + 4, in test_unix_diag_msg()
430 NLMSG_HDRLEN + (unsigned int) sizeof(*family) + 4, in test_unix_diag_msg()
485 uint8_t *family; in test_netlink_diag_req() local
489 /* family only */ in test_netlink_diag_req()
490 nlh = nlh0 - sizeof(*family); in test_netlink_diag_req()
493 .nlmsg_len = NLMSG_HDRLEN + sizeof(*family), in test_netlink_diag_req()
497 family = NLMSG_DATA(nlh); in test_netlink_diag_req()
498 *family = AF_NETLINK; in test_netlink_diag_req()
500 rc = sendto(fd, nlh, NLMSG_HDRLEN + sizeof(*family), MSG_DONTWAIT, in test_netlink_diag_req()
504 ", flags=NLM_F_REQUEST, seq=0, pid=0}, {family=AF_NETLINK}}" in test_netlink_diag_req()
506 fd, NLMSG_HDRLEN + (unsigned int) sizeof(*family), in test_netlink_diag_req()
507 NLMSG_HDRLEN + (unsigned int) sizeof(*family), in test_netlink_diag_req()
510 /* family and string */ in test_netlink_diag_req()
511 nlh = nlh0 - (sizeof(*family) + 4); in test_netlink_diag_req()
514 .nlmsg_len = NLMSG_HDRLEN + sizeof(*family) + 4, in test_netlink_diag_req()
518 family = NLMSG_DATA(nlh); in test_netlink_diag_req()
519 *family = AF_NETLINK; in test_netlink_diag_req()
520 memcpy(family + 1, "1234", 4); in test_netlink_diag_req()
522 rc = sendto(fd, nlh, NLMSG_HDRLEN + sizeof(*family) + 4, MSG_DONTWAIT, in test_netlink_diag_req()
529 fd, NLMSG_HDRLEN + (unsigned int) sizeof(*family) + 4, in test_netlink_diag_req()
530 NLMSG_HDRLEN + (unsigned int) sizeof(*family) + 4, in test_netlink_diag_req()
601 uint8_t *family; in test_netlink_diag_msg() local
605 /* family only */ in test_netlink_diag_msg()
606 nlh = nlh0 - sizeof(*family); in test_netlink_diag_msg()
609 .nlmsg_len = NLMSG_HDRLEN + sizeof(*family), in test_netlink_diag_msg()
613 family = NLMSG_DATA(nlh); in test_netlink_diag_msg()
614 *family = AF_NETLINK; in test_netlink_diag_msg()
616 rc = sendto(fd, nlh, NLMSG_HDRLEN + sizeof(*family), MSG_DONTWAIT, in test_netlink_diag_msg()
620 ", flags=NLM_F_DUMP, seq=0, pid=0}, {family=AF_NETLINK}}" in test_netlink_diag_msg()
622 fd, NLMSG_HDRLEN + (unsigned int) sizeof(*family), in test_netlink_diag_msg()
623 NLMSG_HDRLEN + (unsigned int) sizeof(*family), in test_netlink_diag_msg()
626 /* family and string */ in test_netlink_diag_msg()
627 nlh = nlh0 - (sizeof(*family) + 4); in test_netlink_diag_msg()
630 .nlmsg_len = NLMSG_HDRLEN + sizeof(*family) + 4, in test_netlink_diag_msg()
634 family = NLMSG_DATA(nlh); in test_netlink_diag_msg()
635 *family = AF_NETLINK; in test_netlink_diag_msg()
636 memcpy(family + 1, "1234", 4); in test_netlink_diag_msg()
638 rc = sendto(fd, nlh, NLMSG_HDRLEN + sizeof(*family) + 4, MSG_DONTWAIT, in test_netlink_diag_msg()
645 fd, NLMSG_HDRLEN + (unsigned int) sizeof(*family) + 4, in test_netlink_diag_msg()
646 NLMSG_HDRLEN + (unsigned int) sizeof(*family) + 4, in test_netlink_diag_msg()
707 uint8_t *family; in test_packet_diag_req() local
711 /* family only */ in test_packet_diag_req()
712 nlh = nlh0 - sizeof(*family); in test_packet_diag_req()
714 .nlmsg_len = NLMSG_HDRLEN + sizeof(*family), in test_packet_diag_req()
718 family = NLMSG_DATA(nlh); in test_packet_diag_req()
719 *family = AF_PACKET; in test_packet_diag_req()
721 rc = sendto(fd, nlh, NLMSG_HDRLEN + sizeof(*family), MSG_DONTWAIT, in test_packet_diag_req()
725 ", flags=NLM_F_REQUEST, seq=0, pid=0}, {family=AF_PACKET}}" in test_packet_diag_req()
727 fd, NLMSG_HDRLEN + (unsigned int) sizeof(*family), in test_packet_diag_req()
728 NLMSG_HDRLEN + (unsigned int) sizeof(*family), in test_packet_diag_req()
731 /* family and string */ in test_packet_diag_req()
732 nlh = nlh0 - (sizeof(*family) + 4); in test_packet_diag_req()
734 .nlmsg_len = NLMSG_HDRLEN + sizeof(*family) + 4, in test_packet_diag_req()
738 family = NLMSG_DATA(nlh); in test_packet_diag_req()
739 *family = AF_PACKET; in test_packet_diag_req()
740 memcpy(family + 1, "1234", 4); in test_packet_diag_req()
742 rc = sendto(fd, nlh, NLMSG_HDRLEN + sizeof(*family) + 4, MSG_DONTWAIT, in test_packet_diag_req()
749 fd, NLMSG_HDRLEN + (unsigned int) sizeof(*family) + 4, in test_packet_diag_req()
750 NLMSG_HDRLEN + (unsigned int) sizeof(*family) + 4, in test_packet_diag_req()
805 uint8_t *family; in test_packet_diag_msg() local
809 /* family only */ in test_packet_diag_msg()
810 nlh = nlh0 - sizeof(*family); in test_packet_diag_msg()
812 .nlmsg_len = NLMSG_HDRLEN + sizeof(*family), in test_packet_diag_msg()
816 family = NLMSG_DATA(nlh); in test_packet_diag_msg()
817 *family = AF_PACKET; in test_packet_diag_msg()
819 rc = sendto(fd, nlh, NLMSG_HDRLEN + sizeof(*family), MSG_DONTWAIT, in test_packet_diag_msg()
823 ", flags=NLM_F_DUMP, seq=0, pid=0}, {family=AF_PACKET}}" in test_packet_diag_msg()
825 fd, NLMSG_HDRLEN + (unsigned int) sizeof(*family), in test_packet_diag_msg()
826 NLMSG_HDRLEN + (unsigned int) sizeof(*family), in test_packet_diag_msg()
829 /* family and string */ in test_packet_diag_msg()
830 nlh = nlh0 - (sizeof(*family) + 4); in test_packet_diag_msg()
832 .nlmsg_len = NLMSG_HDRLEN + sizeof(*family) + 4, in test_packet_diag_msg()
836 family = NLMSG_DATA(nlh); in test_packet_diag_msg()
837 *family = AF_PACKET; in test_packet_diag_msg()
838 memcpy(family + 1, "1234", 4); in test_packet_diag_msg()
840 rc = sendto(fd, nlh, NLMSG_HDRLEN + sizeof(*family) + 4, MSG_DONTWAIT, in test_packet_diag_msg()
847 fd, NLMSG_HDRLEN + (unsigned int) sizeof(*family) + 4, in test_packet_diag_msg()
848 NLMSG_HDRLEN + (unsigned int) sizeof(*family) + 4, in test_packet_diag_msg()
981 uint8_t *family; in test_inet_diag_req() local
985 /* family only */ in test_inet_diag_req()
986 nlh = nlh0 - sizeof(*family); in test_inet_diag_req()
989 .nlmsg_len = NLMSG_HDRLEN + sizeof(*family), in test_inet_diag_req()
994 family = NLMSG_DATA(nlh); in test_inet_diag_req()
995 *family = AF_INET; in test_inet_diag_req()
997 rc = sendto(fd, nlh, NLMSG_HDRLEN + sizeof(*family), MSG_DONTWAIT, in test_inet_diag_req()
1001 ", flags=NLM_F_REQUEST, seq=0, pid=0}, {family=AF_INET}}" in test_inet_diag_req()
1003 fd, NLMSG_HDRLEN + (unsigned int) sizeof(*family), in test_inet_diag_req()
1004 NLMSG_HDRLEN + (unsigned int) sizeof(*family), in test_inet_diag_req()
1007 /* family and string */ in test_inet_diag_req()
1008 nlh = nlh0 - (sizeof(*family) + 4); in test_inet_diag_req()
1011 .nlmsg_len = NLMSG_HDRLEN + sizeof(*family) + 4, in test_inet_diag_req()
1016 family = NLMSG_DATA(nlh); in test_inet_diag_req()
1017 *family = AF_INET; in test_inet_diag_req()
1018 memcpy(family + 1, "1234", 4); in test_inet_diag_req()
1020 rc = sendto(fd, nlh, NLMSG_HDRLEN + sizeof(*family) + 4, MSG_DONTWAIT, in test_inet_diag_req()
1027 fd, NLMSG_HDRLEN + (unsigned int) sizeof(*family) + 4, in test_inet_diag_req()
1028 NLMSG_HDRLEN + (unsigned int) sizeof(*family) + 4, in test_inet_diag_req()
1103 uint8_t *family; in test_inet_diag_req_v2() local
1107 /* family only */ in test_inet_diag_req_v2()
1108 nlh = nlh0 - sizeof(*family); in test_inet_diag_req_v2()
1111 .nlmsg_len = NLMSG_HDRLEN + sizeof(*family), in test_inet_diag_req_v2()
1116 family = NLMSG_DATA(nlh); in test_inet_diag_req_v2()
1117 *family = AF_INET; in test_inet_diag_req_v2()
1119 rc = sendto(fd, nlh, NLMSG_HDRLEN + sizeof(*family), MSG_DONTWAIT, in test_inet_diag_req_v2()
1123 ", flags=NLM_F_REQUEST, seq=0, pid=0}, {family=AF_INET}}" in test_inet_diag_req_v2()
1125 fd, NLMSG_HDRLEN + (unsigned int) sizeof(*family), in test_inet_diag_req_v2()
1126 NLMSG_HDRLEN + (unsigned int) sizeof(*family), in test_inet_diag_req_v2()
1129 /* family and string */ in test_inet_diag_req_v2()
1130 nlh = nlh0 - sizeof(*family) - 4; in test_inet_diag_req_v2()
1132 .nlmsg_len = NLMSG_HDRLEN + sizeof(*family) + 4, in test_inet_diag_req_v2()
1137 family = NLMSG_DATA(nlh); in test_inet_diag_req_v2()
1138 *family = AF_INET; in test_inet_diag_req_v2()
1139 memcpy(family + 1, "1234", 4); in test_inet_diag_req_v2()
1141 rc = sendto(fd, nlh, NLMSG_HDRLEN + sizeof(*family) + 4, MSG_DONTWAIT, in test_inet_diag_req_v2()
1148 fd, NLMSG_HDRLEN + (unsigned int) sizeof(*family) + 4, in test_inet_diag_req_v2()
1149 NLMSG_HDRLEN + (unsigned int) sizeof(*family) + 4, in test_inet_diag_req_v2()
1220 uint8_t *family; in test_inet_diag_msg() local
1224 /* family only */ in test_inet_diag_msg()
1225 nlh = nlh0 - sizeof(*family); in test_inet_diag_msg()
1228 .nlmsg_len = NLMSG_HDRLEN + sizeof(*family), in test_inet_diag_msg()
1233 family = NLMSG_DATA(nlh); in test_inet_diag_msg()
1234 *family = AF_INET; in test_inet_diag_msg()
1236 rc = sendto(fd, nlh, NLMSG_HDRLEN + sizeof(*family), MSG_DONTWAIT, in test_inet_diag_msg()
1240 ", flags=NLM_F_DUMP, seq=0, pid=0}, {family=AF_INET}}" in test_inet_diag_msg()
1242 fd, NLMSG_HDRLEN + (unsigned int) sizeof(*family), in test_inet_diag_msg()
1243 NLMSG_HDRLEN + (unsigned int) sizeof(*family), in test_inet_diag_msg()
1246 /* family and string */ in test_inet_diag_msg()
1247 nlh = nlh0 - sizeof(*family) - 4; in test_inet_diag_msg()
1250 .nlmsg_len = NLMSG_HDRLEN + sizeof(*family) + 4, in test_inet_diag_msg()
1255 family = NLMSG_DATA(nlh); in test_inet_diag_msg()
1256 *family = AF_INET; in test_inet_diag_msg()
1257 memcpy(family + 1, "1234", 4); in test_inet_diag_msg()
1259 rc = sendto(fd, nlh, NLMSG_HDRLEN + sizeof(*family) + 4, MSG_DONTWAIT, in test_inet_diag_msg()
1266 fd, NLMSG_HDRLEN + (unsigned int) sizeof(*family) + 4, in test_inet_diag_msg()
1267 NLMSG_HDRLEN + (unsigned int) sizeof(*family) + 4, in test_inet_diag_msg()
1347 uint8_t *family; in test_smc_diag_req() local
1351 /* family only */ in test_smc_diag_req()
1352 nlh = nlh0 - sizeof(*family); in test_smc_diag_req()
1355 .nlmsg_len = NLMSG_HDRLEN + sizeof(*family), in test_smc_diag_req()
1360 family = NLMSG_DATA(nlh); in test_smc_diag_req()
1361 *family = AF_SMC; in test_smc_diag_req()
1363 rc = sendto(fd, nlh, NLMSG_HDRLEN + sizeof(*family), MSG_DONTWAIT, in test_smc_diag_req()
1367 ", flags=NLM_F_REQUEST, seq=0, pid=0}, {family=AF_SMC}}" in test_smc_diag_req()
1369 fd, NLMSG_HDRLEN + (unsigned int) sizeof(*family), in test_smc_diag_req()
1370 NLMSG_HDRLEN + (unsigned int) sizeof(*family), in test_smc_diag_req()
1373 /* family and string */ in test_smc_diag_req()
1374 nlh = nlh0 - sizeof(*family) - 4; in test_smc_diag_req()
1377 .nlmsg_len = NLMSG_HDRLEN + sizeof(*family) + 4, in test_smc_diag_req()
1382 family = NLMSG_DATA(nlh); in test_smc_diag_req()
1383 *family = AF_SMC; in test_smc_diag_req()
1384 memcpy(family + 1, "1234", 4); in test_smc_diag_req()
1386 rc = sendto(fd, nlh, NLMSG_HDRLEN + sizeof(*family) + 4, MSG_DONTWAIT, in test_smc_diag_req()
1393 fd, NLMSG_HDRLEN + (unsigned int) sizeof(*family) + 4, in test_smc_diag_req()
1394 NLMSG_HDRLEN + (unsigned int) sizeof(*family) + 4, in test_smc_diag_req()
1462 uint8_t *family; in test_smc_diag_msg() local
1466 /* family only */ in test_smc_diag_msg()
1467 nlh = nlh0 - sizeof(*family); in test_smc_diag_msg()
1470 .nlmsg_len = NLMSG_HDRLEN + sizeof(*family), in test_smc_diag_msg()
1475 family = NLMSG_DATA(nlh); in test_smc_diag_msg()
1476 *family = AF_SMC; in test_smc_diag_msg()
1478 rc = sendto(fd, nlh, NLMSG_HDRLEN + sizeof(*family), MSG_DONTWAIT, in test_smc_diag_msg()
1482 ", flags=NLM_F_DUMP, seq=0, pid=0}, {family=AF_SMC}}" in test_smc_diag_msg()
1484 fd, NLMSG_HDRLEN + (unsigned int) sizeof(*family), in test_smc_diag_msg()
1485 NLMSG_HDRLEN + (unsigned int) sizeof(*family), in test_smc_diag_msg()
1488 /* family and string */ in test_smc_diag_msg()
1489 nlh = nlh0 - sizeof(*family) - 4; in test_smc_diag_msg()
1492 .nlmsg_len = NLMSG_HDRLEN + sizeof(*family) + 4, in test_smc_diag_msg()
1497 family = NLMSG_DATA(nlh); in test_smc_diag_msg()
1498 *family = AF_SMC; in test_smc_diag_msg()
1499 memcpy(family + 1, "1234", 4); in test_smc_diag_msg()
1501 rc = sendto(fd, nlh, NLMSG_HDRLEN + sizeof(*family) + 4, MSG_DONTWAIT, in test_smc_diag_msg()
1508 fd, NLMSG_HDRLEN + (unsigned int) sizeof(*family) + 4, in test_smc_diag_msg()
1509 NLMSG_HDRLEN + (unsigned int) sizeof(*family) + 4, in test_smc_diag_msg()