Lines Matching refs:hdr

39         assert_return(m->hdr, -EINVAL);
40 assert_return(rtnl_message_type_is_route(m->hdr->nlmsg_type), -EINVAL);
42 rtm = NLMSG_DATA(m->hdr);
57 assert_return(m->hdr, -EINVAL);
58 assert_return(rtnl_message_type_is_route(m->hdr->nlmsg_type), -EINVAL);
60 rtm = NLMSG_DATA(m->hdr);
75 assert_return(m->hdr, -EINVAL);
76 assert_return(rtnl_message_type_is_route(m->hdr->nlmsg_type), -EINVAL);
78 rtm = NLMSG_DATA(m->hdr);
89 assert_return(m->hdr, -EINVAL);
90 assert_return(rtnl_message_type_is_route(m->hdr->nlmsg_type), -EINVAL);
92 rtm = NLMSG_DATA(m->hdr);
103 assert_return(m->hdr, -EINVAL);
104 assert_return(rtnl_message_type_is_route(m->hdr->nlmsg_type), -EINVAL);
107 rtm = NLMSG_DATA(m->hdr);
118 assert_return(m->hdr, -EINVAL);
119 assert_return(rtnl_message_type_is_route(m->hdr->nlmsg_type), -EINVAL);
122 rtm = NLMSG_DATA(m->hdr);
133 assert_return(m->hdr, -EINVAL);
134 assert_return(rtnl_message_type_is_route(m->hdr->nlmsg_type), -EINVAL);
137 rtm = NLMSG_DATA(m->hdr);
148 assert_return(m->hdr, -EINVAL);
149 assert_return(rtnl_message_type_is_route(m->hdr->nlmsg_type), -EINVAL);
152 rtm = NLMSG_DATA(m->hdr);
163 assert_return(m->hdr, -EINVAL);
164 assert_return(rtnl_message_type_is_route(m->hdr->nlmsg_type), -EINVAL);
167 rtm = NLMSG_DATA(m->hdr);
178 assert_return(m->hdr, -EINVAL);
179 assert_return(rtnl_message_type_is_route(m->hdr->nlmsg_type), -EINVAL);
182 rtm = NLMSG_DATA(m->hdr);
193 assert_return(m->hdr, -EINVAL);
194 assert_return(rtnl_message_type_is_route(m->hdr->nlmsg_type), -EINVAL);
197 rtm = NLMSG_DATA(m->hdr);
208 assert_return(m->hdr, -EINVAL);
209 assert_return(rtnl_message_type_is_route(m->hdr->nlmsg_type), -EINVAL);
212 rtm = NLMSG_DATA(m->hdr);
235 (*ret)->hdr->nlmsg_flags |= NLM_F_CREATE | NLM_F_APPEND;
237 rtm = NLMSG_DATA((*ret)->hdr);
252 assert_return(m->hdr, -EINVAL);
253 assert_return(rtnl_message_type_is_neigh(m->hdr->nlmsg_type), -EINVAL);
255 ndm = NLMSG_DATA(m->hdr);
265 assert_return(m->hdr, -EINVAL);
266 assert_return(rtnl_message_type_is_neigh(m->hdr->nlmsg_type), -EINVAL);
268 ndm = NLMSG_DATA(m->hdr);
278 assert_return(m->hdr, -EINVAL);
279 assert_return(rtnl_message_type_is_neigh(m->hdr->nlmsg_type), -EINVAL);
281 ndm = NLMSG_DATA(m->hdr);
291 assert_return(m->hdr, -EINVAL);
292 assert_return(rtnl_message_type_is_neigh(m->hdr->nlmsg_type), -EINVAL);
294 ndm = NLMSG_DATA(m->hdr);
304 assert_return(m->hdr, -EINVAL);
305 assert_return(rtnl_message_type_is_neigh(m->hdr->nlmsg_type), -EINVAL);
308 ndm = NLMSG_DATA(m->hdr);
319 assert_return(m->hdr, -EINVAL);
320 assert_return(rtnl_message_type_is_neigh(m->hdr->nlmsg_type), -EINVAL);
323 ndm = NLMSG_DATA(m->hdr);
345 (*ret)->hdr->nlmsg_flags |= NLM_F_CREATE | NLM_F_APPEND;
347 ndm = NLMSG_DATA((*ret)->hdr);
359 assert_return(m->hdr, -EINVAL);
360 assert_return(rtnl_message_type_is_link(m->hdr->nlmsg_type), -EINVAL);
363 ifi = NLMSG_DATA(m->hdr);
375 assert_return(m->hdr, -EINVAL);
376 assert_return(rtnl_message_type_is_link(m->hdr->nlmsg_type), -EINVAL);
378 ifi = NLMSG_DATA(m->hdr);
389 assert_return(m->hdr, -EINVAL);
390 assert_return(rtnl_message_type_is_link(m->hdr->nlmsg_type), -EINVAL);
392 ifi = NLMSG_DATA(m->hdr);
413 (*ret)->hdr->nlmsg_flags |= NLM_F_CREATE | NLM_F_EXCL;
415 ifi = NLMSG_DATA((*ret)->hdr);
427 assert_return(m->hdr, -EINVAL);
428 assert_return(rtnl_message_type_is_addr(m->hdr->nlmsg_type), -EINVAL);
430 ifa = NLMSG_DATA(m->hdr);
445 assert_return(m->hdr, -EINVAL);
446 assert_return(rtnl_message_type_is_addr(m->hdr->nlmsg_type), -EINVAL);
448 ifa = NLMSG_DATA(m->hdr);
459 assert_return(m->hdr, -EINVAL);
460 assert_return(rtnl_message_type_is_addr(m->hdr->nlmsg_type), -EINVAL);
462 ifa = NLMSG_DATA(m->hdr);
473 assert_return(m->hdr, -EINVAL);
474 assert_return(rtnl_message_type_is_addr(m->hdr->nlmsg_type), -EINVAL);
477 ifa = NLMSG_DATA(m->hdr);
488 assert_return(m->hdr, -EINVAL);
489 assert_return(rtnl_message_type_is_addr(m->hdr->nlmsg_type), -EINVAL);
492 ifa = NLMSG_DATA(m->hdr);
503 assert_return(m->hdr, -EINVAL);
504 assert_return(rtnl_message_type_is_addr(m->hdr->nlmsg_type), -EINVAL);
507 ifa = NLMSG_DATA(m->hdr);
518 assert_return(m->hdr, -EINVAL);
519 assert_return(rtnl_message_type_is_addr(m->hdr->nlmsg_type), -EINVAL);
522 ifa = NLMSG_DATA(m->hdr);
533 assert_return(m->hdr, -EINVAL);
534 assert_return(rtnl_message_type_is_addr(m->hdr->nlmsg_type), -EINVAL);
537 ifa = NLMSG_DATA(m->hdr);
562 (*ret)->hdr->nlmsg_flags |= NLM_F_DUMP;
564 ifa = NLMSG_DATA((*ret)->hdr);
584 (*ret)->hdr->nlmsg_flags |= NLM_F_REPLACE;
593 assert_return(m->hdr, -EINVAL);
594 assert_return(rtnl_message_type_is_link(m->hdr->nlmsg_type), -EINVAL);
597 ifi = NLMSG_DATA(m->hdr);
608 assert_return(m->hdr, -EINVAL);
609 assert_return(rtnl_message_type_is_link(m->hdr->nlmsg_type), -EINVAL);
612 ifi = NLMSG_DATA(m->hdr);
623 assert_return(m->hdr, -EINVAL);
624 assert_return(rtnl_message_type_is_link(m->hdr->nlmsg_type), -EINVAL);
627 ifi = NLMSG_DATA(m->hdr);
638 assert(m->hdr);
640 if (rtnl_message_type_is_link(m->hdr->nlmsg_type)) {
643 ifi = NLMSG_DATA(m->hdr);
648 } else if (rtnl_message_type_is_route(m->hdr->nlmsg_type)) {
651 rtm = NLMSG_DATA(m->hdr);
656 } else if (rtnl_message_type_is_neigh(m->hdr->nlmsg_type)) {
659 ndm = NLMSG_DATA(m->hdr);
664 } else if (rtnl_message_type_is_addr(m->hdr->nlmsg_type)) {
667 ifa = NLMSG_DATA(m->hdr);