Lines Matching full:off
55 int off = 0; in init_genl_req() local
60 off += NLMSG_ALIGN(sizeof(*nh)); in init_genl_req()
62 gh = (void *)(data + off); in init_genl_req()
65 off += NLMSG_ALIGN(sizeof(*gh)); in init_genl_req()
66 return off; in init_genl_req()
73 uint32_t off; in nl_error() local
88 memcpy(&off, RTA_DATA(attrs), 4); in nl_error()
89 fprintf(stderr, "netlink err off %d\n", in nl_error()
90 (int)off); in nl_error()
311 int off = 0; in resolve_mptcp_pm_netlink() local
315 off = init_genl_req(data, GENL_ID_CTRL, CTRL_CMD_GETFAMILY, 0); in resolve_mptcp_pm_netlink()
317 rta = (void *)(data + off); in resolve_mptcp_pm_netlink()
322 off += NLMSG_ALIGN(rta->rta_len); in resolve_mptcp_pm_netlink()
324 do_nl_req(fd, nh, off, sizeof(data)); in resolve_mptcp_pm_netlink()
338 int off = 0; in dsf() local
347 off = init_genl_req(data, pm_family, MPTCP_PM_CMD_SUBFLOW_DESTROY, in dsf()
388 addr_start = off; in dsf()
389 addr = (void *)(data + off); in dsf()
393 off += NLMSG_ALIGN(addr->rta_len); in dsf()
396 rta = (void *)(data + off); in dsf()
407 off += NLMSG_ALIGN(rta->rta_len); in dsf()
410 rta = (void *)(data + off); in dsf()
414 off += NLMSG_ALIGN(rta->rta_len); in dsf()
418 rta = (void *)(data + off); in dsf()
422 off += NLMSG_ALIGN(rta->rta_len); in dsf()
424 addr->rta_len = off - addr_start; in dsf()
429 rta = (void *)(data + off); in dsf()
433 off += NLMSG_ALIGN(rta->rta_len); in dsf()
435 do_nl_req(fd, nh, off, 0); in dsf()
454 int off = 0; in csf() local
461 off = init_genl_req(data, pm_family, MPTCP_PM_CMD_SUBFLOW_CREATE, in csf()
502 addr_start = off; in csf()
503 addr = (void *)(data + off); in csf()
507 off += NLMSG_ALIGN(addr->rta_len); in csf()
510 rta = (void *)(data + off); in csf()
521 off += NLMSG_ALIGN(rta->rta_len); in csf()
524 rta = (void *)(data + off); in csf()
528 off += NLMSG_ALIGN(rta->rta_len); in csf()
533 rta = (void *)(data + off); in csf()
537 off += NLMSG_ALIGN(rta->rta_len); in csf()
543 rta = (void *)(data + off); in csf()
547 off += NLMSG_ALIGN(rta->rta_len); in csf()
550 addr->rta_len = off - addr_start; in csf()
555 rta = (void *)(data + off); in csf()
559 off += NLMSG_ALIGN(rta->rta_len); in csf()
561 do_nl_req(fd, nh, off, 0); in csf()
575 int off = 0; in remove_addr() local
580 off = init_genl_req(data, pm_family, MPTCP_PM_CMD_REMOVE, in remove_addr()
592 rta = (void *)(data + off); in remove_addr()
596 off += NLMSG_ALIGN(rta->rta_len); in remove_addr()
602 rta = (void *)(data + off); in remove_addr()
606 off += NLMSG_ALIGN(rta->rta_len); in remove_addr()
611 do_nl_req(fd, nh, off, 0); in remove_addr()
627 int off = 0; in announce_addr() local
632 off = init_genl_req(data, pm_family, MPTCP_PM_CMD_ANNOUNCE, in announce_addr()
639 addr_start = off; in announce_addr()
640 addr = (void *)(data + off); in announce_addr()
643 off += NLMSG_ALIGN(addr->rta_len); in announce_addr()
647 rta = (void *)(data + off); in announce_addr()
658 off += NLMSG_ALIGN(rta->rta_len); in announce_addr()
661 rta = (void *)(data + off); in announce_addr()
665 off += NLMSG_ALIGN(rta->rta_len); in announce_addr()
674 rta = (void *)(data + off); in announce_addr()
678 off += NLMSG_ALIGN(rta->rta_len); in announce_addr()
690 rta = (void *)(data + off); in announce_addr()
694 off += NLMSG_ALIGN(rta->rta_len); in announce_addr()
703 rta = (void *)(data + off); in announce_addr()
707 off += NLMSG_ALIGN(rta->rta_len); in announce_addr()
719 rta = (void *)(data + off); in announce_addr()
723 off += NLMSG_ALIGN(rta->rta_len); in announce_addr()
725 addr->rta_len = off - addr_start; in announce_addr()
731 rta = (void *)(data + off); in announce_addr()
735 off += NLMSG_ALIGN(rta->rta_len); in announce_addr()
737 do_nl_req(fd, nh, off, 0); in announce_addr()
753 int off = 0; in add_addr() local
758 off = init_genl_req(data, pm_family, MPTCP_PM_CMD_ADD_ADDR, in add_addr()
764 nest_start = off; in add_addr()
765 nest = (void *)(data + off); in add_addr()
768 off += NLMSG_ALIGN(nest->rta_len); in add_addr()
771 rta = (void *)(data + off); in add_addr()
782 off += NLMSG_ALIGN(rta->rta_len); in add_addr()
785 rta = (void *)(data + off); in add_addr()
789 off += NLMSG_ALIGN(rta->rta_len); in add_addr()
820 rta = (void *)(data + off); in add_addr()
824 off += NLMSG_ALIGN(rta->rta_len); in add_addr()
830 rta = (void *)(data + off); in add_addr()
834 off += NLMSG_ALIGN(rta->rta_len); in add_addr()
845 rta = (void *)(data + off); in add_addr()
849 off += NLMSG_ALIGN(rta->rta_len); in add_addr()
859 rta = (void *)(data + off); in add_addr()
863 off += NLMSG_ALIGN(rta->rta_len); in add_addr()
867 nest->rta_len = off - nest_start; in add_addr()
869 do_nl_req(fd, nh, off, 0); in add_addr()
883 int off = 0; in del_addr() local
887 off = init_genl_req(data, pm_family, MPTCP_PM_CMD_DEL_ADDR, in del_addr()
899 nest_start = off; in del_addr()
900 nest = (void *)(data + off); in del_addr()
903 off += NLMSG_ALIGN(nest->rta_len); in del_addr()
906 rta = (void *)(data + off); in del_addr()
910 off += NLMSG_ALIGN(rta->rta_len); in del_addr()
914 rta = (void *)(data + off); in del_addr()
926 off += NLMSG_ALIGN(rta->rta_len); in del_addr()
929 rta = (void *)(data + off); in del_addr()
933 off += NLMSG_ALIGN(rta->rta_len); in del_addr()
935 nest->rta_len = off - nest_start; in del_addr()
937 do_nl_req(fd, nh, off, 0); in del_addr()
1073 int off = 0; in get_addr() local
1077 off = init_genl_req(data, pm_family, MPTCP_PM_CMD_GET_ADDR, in get_addr()
1086 nest_start = off; in get_addr()
1087 nest = (void *)(data + off); in get_addr()
1090 off += NLMSG_ALIGN(nest->rta_len); in get_addr()
1093 rta = (void *)(data + off); in get_addr()
1097 off += NLMSG_ALIGN(rta->rta_len); in get_addr()
1098 nest->rta_len = off - nest_start; in get_addr()
1100 print_addrs(nh, pm_family, do_nl_req(fd, nh, off, sizeof(data))); in get_addr()
1111 int off = 0; in dump_addrs() local
1115 off = init_genl_req(data, pm_family, MPTCP_PM_CMD_GET_ADDR, in dump_addrs()
1120 nh->nlmsg_len = off; in dump_addrs()
1122 print_addrs(nh, pm_family, do_nl_req(fd, nh, off, sizeof(data))); in dump_addrs()
1132 int off = 0; in flush_addrs() local
1136 off = init_genl_req(data, pm_family, MPTCP_PM_CMD_FLUSH_ADDRS, in flush_addrs()
1139 do_nl_req(fd, nh, off, 0); in flush_addrs()
1186 int off = 0; in get_set_limits() local
1199 off = init_genl_req(data, pm_family, cmd, MPTCP_PM_VER); in get_set_limits()
1203 struct rtattr *rta = (void *)(data + off); in get_set_limits()
1208 off += NLMSG_ALIGN(rta->rta_len); in get_set_limits()
1210 rta = (void *)(data + off); in get_set_limits()
1214 off += NLMSG_ALIGN(rta->rta_len); in get_set_limits()
1220 len = do_nl_req(fd, nh, off, len); in get_set_limits()
1289 int off = 0; in set_flags() local
1294 off = init_genl_req(data, pm_family, MPTCP_PM_CMD_SET_FLAGS, in set_flags()
1300 nest_start = off; in set_flags()
1301 nest = (void *)(data + off); in set_flags()
1304 off += NLMSG_ALIGN(nest->rta_len); in set_flags()
1312 rta = (void *)(data + off); in set_flags()
1316 off += NLMSG_ALIGN(rta->rta_len); in set_flags()
1319 rta = (void *)(data + off); in set_flags()
1331 off += NLMSG_ALIGN(rta->rta_len); in set_flags()
1334 rta = (void *)(data + off); in set_flags()
1338 off += NLMSG_ALIGN(rta->rta_len); in set_flags()
1370 rta = (void *)(data + off); in set_flags()
1374 off += NLMSG_ALIGN(rta->rta_len); in set_flags()
1385 rta = (void *)(data + off); in set_flags()
1389 off += NLMSG_ALIGN(rta->rta_len); in set_flags()
1404 nest->rta_len = off - nest_start; in set_flags()
1408 rta = (void *)(data + off); in set_flags()
1412 off += NLMSG_ALIGN(rta->rta_len); in set_flags()
1417 nest_start = off; in set_flags()
1418 nest = (void *)(data + off); in set_flags()
1421 off += NLMSG_ALIGN(nest->rta_len); in set_flags()
1424 rta = (void *)(data + off); in set_flags()
1436 off += NLMSG_ALIGN(rta->rta_len); in set_flags()
1439 rta = (void *)(data + off); in set_flags()
1443 off += NLMSG_ALIGN(rta->rta_len); in set_flags()
1446 rta = (void *)(data + off); in set_flags()
1450 off += NLMSG_ALIGN(rta->rta_len); in set_flags()
1453 nest->rta_len = off - nest_start; in set_flags()
1456 do_nl_req(fd, nh, off, 0); in set_flags()