Lines Matching refs:RTA_DATA
85 (char *)RTA_DATA(attrs)); in nl_error()
87 memcpy(&off, RTA_DATA(attrs), 4); in nl_error()
148 fprintf(stderr, ",token:%u", *(__u32 *)RTA_DATA(attrs)); in capture_events()
150 fprintf(stderr, ",family:%u", *(__u16 *)RTA_DATA(attrs)); in capture_events()
152 fprintf(stderr, ",loc_id:%u", *(__u8 *)RTA_DATA(attrs)); in capture_events()
154 fprintf(stderr, ",rem_id:%u", *(__u8 *)RTA_DATA(attrs)); in capture_events()
156 u_int32_t saddr4 = ntohl(*(__u32 *)RTA_DATA(attrs)); in capture_events()
164 if (inet_ntop(AF_INET6, RTA_DATA(attrs), buf, in capture_events()
168 u_int32_t daddr4 = ntohl(*(__u32 *)RTA_DATA(attrs)); in capture_events()
176 if (inet_ntop(AF_INET6, RTA_DATA(attrs), buf, in capture_events()
181 ntohs(*(__u16 *)RTA_DATA(attrs))); in capture_events()
184 ntohs(*(__u16 *)RTA_DATA(attrs))); in capture_events()
186 fprintf(stderr, ",backup:%u", *(__u8 *)RTA_DATA(attrs)); in capture_events()
188 fprintf(stderr, ",error:%u", *(__u8 *)RTA_DATA(attrs)); in capture_events()
190 fprintf(stderr, ",server_side:%u", *(__u8 *)RTA_DATA(attrs)); in capture_events()
270 *pm_family = *(__u16 *)RTA_DATA(attrs); in genl_parse_getfamily()
273 grps = RTA_DATA(attrs); in genl_parse_getfamily()
277 grp = RTA_DATA(grps); in genl_parse_getfamily()
283 *events_mcast_grp = *(__u32 *)RTA_DATA(grp); in genl_parse_getfamily()
285 !strcmp(RTA_DATA(grp), MPTCP_PM_EV_GRP_NAME)) in genl_parse_getfamily()
326 memcpy(RTA_DATA(rta), MPTCP_PM_NAME, namelen); in resolve_mptcp_pm_netlink()
402 if (inet_pton(AF_INET, params[arg], RTA_DATA(rta))) { in dsf()
406 } else if (inet_pton(AF_INET6, params[arg], RTA_DATA(rta))) { in dsf()
418 memcpy(RTA_DATA(rta), &family, 2); in dsf()
426 memcpy(RTA_DATA(rta), &port, 2); in dsf()
437 memcpy(RTA_DATA(rta), &token, 4); in dsf()
517 if (inet_pton(AF_INET, params[arg], RTA_DATA(rta))) { in csf()
521 } else if (inet_pton(AF_INET6, params[arg], RTA_DATA(rta))) { in csf()
533 memcpy(RTA_DATA(rta), &family, 2); in csf()
542 memcpy(RTA_DATA(rta), &port, 2); in csf()
552 memcpy(RTA_DATA(rta), &id, 1); in csf()
560 memcpy(RTA_DATA(rta), &flags, 4); in csf()
571 memcpy(RTA_DATA(rta), &token, 4); in csf()
608 memcpy(RTA_DATA(rta), &id, 1); in remove_addr()
618 memcpy(RTA_DATA(rta), &token, 4); in remove_addr()
661 if (inet_pton(AF_INET, argv[2], RTA_DATA(rta))) { in announce_addr()
665 } else if (inet_pton(AF_INET6, argv[2], RTA_DATA(rta))) { in announce_addr()
677 memcpy(RTA_DATA(rta), &family, 2); in announce_addr()
690 memcpy(RTA_DATA(rta), &id, 1); in announce_addr()
706 memcpy(RTA_DATA(rta), &ifindex, 4); in announce_addr()
719 memcpy(RTA_DATA(rta), &port, 2); in announce_addr()
735 memcpy(RTA_DATA(rta), &flags, 4); in announce_addr()
747 memcpy(RTA_DATA(rta), &token, 4); in announce_addr()
785 if (inet_pton(AF_INET, argv[2], RTA_DATA(rta))) { in add_addr()
789 } else if (inet_pton(AF_INET6, argv[2], RTA_DATA(rta))) { in add_addr()
801 memcpy(RTA_DATA(rta), &family, 2); in add_addr()
836 memcpy(RTA_DATA(rta), &flags, 4); in add_addr()
846 memcpy(RTA_DATA(rta), &id, 1); in add_addr()
861 memcpy(RTA_DATA(rta), &ifindex, 4); in add_addr()
875 memcpy(RTA_DATA(rta), &port, 2); in add_addr()
922 memcpy(RTA_DATA(rta), &id, 1); in del_addr()
928 if (inet_pton(AF_INET, argv[3], RTA_DATA(rta))) { in del_addr()
932 } else if (inet_pton(AF_INET6, argv[3], RTA_DATA(rta))) { in del_addr()
945 memcpy(RTA_DATA(rta), &family, 2); in del_addr()
964 memcpy(&family, RTA_DATA(attrs), 2); in print_addr()
966 memcpy(&port, RTA_DATA(attrs), 2); in print_addr()
971 inet_ntop(AF_INET, RTA_DATA(attrs), str, sizeof(str)); in print_addr()
980 inet_ntop(AF_INET6, RTA_DATA(attrs), str, sizeof(str)); in print_addr()
986 memcpy(&id, RTA_DATA(attrs), 1); in print_addr()
990 memcpy(&flags, RTA_DATA(attrs), 4); in print_addr()
1037 memcpy(&ifindex, RTA_DATA(attrs), 4); in print_addr()
1070 print_addr((void *)RTA_DATA(attrs), in print_addrs()
1112 memcpy(RTA_DATA(rta), &id, 1); in get_addr()
1121 memcpy(RTA_DATA(rta), &token, 4); in get_addr()
1160 memcpy(RTA_DATA(rta), &token, 4); in dump_addrs()
1210 memcpy(&max, RTA_DATA(attrs), 4); in print_limits()
1249 memcpy(RTA_DATA(rta), &rcv_addr, 4); in get_set_limits()
1255 memcpy(RTA_DATA(rta), &subflows, 4); in get_set_limits()
1357 memcpy(RTA_DATA(rta), &id, 1); in set_flags()
1362 if (inet_pton(AF_INET, argv[arg], RTA_DATA(rta))) { in set_flags()
1366 } else if (inet_pton(AF_INET6, argv[arg], RTA_DATA(rta))) { in set_flags()
1379 memcpy(RTA_DATA(rta), &family, 2); in set_flags()
1415 memcpy(RTA_DATA(rta), &flags, 4); in set_flags()
1430 memcpy(RTA_DATA(rta), &port, 2); in set_flags()
1453 memcpy(RTA_DATA(rta), &token, 4); in set_flags()
1467 if (inet_pton(AF_INET, rip, RTA_DATA(rta))) { in set_flags()
1471 } else if (inet_pton(AF_INET6, rip, RTA_DATA(rta))) { in set_flags()
1484 memcpy(RTA_DATA(rta), &family, 2); in set_flags()
1491 memcpy(RTA_DATA(rta), &rport, 2); in set_flags()