Lines Matching full:off
49 int off = 0; in init_genl_req() local
54 off += NLMSG_ALIGN(sizeof(*nh)); in init_genl_req()
56 gh = (void *)(data + off); in init_genl_req()
59 off += NLMSG_ALIGN(sizeof(*gh)); in init_genl_req()
60 return off; in init_genl_req()
67 uint32_t off; in nl_error() local
87 memcpy(&off, RTA_DATA(attrs), 4); in nl_error()
88 fprintf(stderr, "netlink err off %d\n", in nl_error()
89 (int)off); in nl_error()
316 int off = 0; in resolve_mptcp_pm_netlink() local
320 off = init_genl_req(data, GENL_ID_CTRL, CTRL_CMD_GETFAMILY, 0); in resolve_mptcp_pm_netlink()
322 rta = (void *)(data + off); in resolve_mptcp_pm_netlink()
327 off += NLMSG_ALIGN(rta->rta_len); in resolve_mptcp_pm_netlink()
329 do_nl_req(fd, nh, off, sizeof(data)); in resolve_mptcp_pm_netlink()
343 int off = 0; in dsf() local
352 off = init_genl_req(data, pm_family, MPTCP_PM_CMD_SUBFLOW_DESTROY, in dsf()
393 addr_start = off; in dsf()
394 addr = (void *)(data + off); in dsf()
398 off += NLMSG_ALIGN(addr->rta_len); in dsf()
401 rta = (void *)(data + off); in dsf()
412 off += NLMSG_ALIGN(rta->rta_len); in dsf()
415 rta = (void *)(data + off); in dsf()
419 off += NLMSG_ALIGN(rta->rta_len); in dsf()
423 rta = (void *)(data + off); in dsf()
427 off += NLMSG_ALIGN(rta->rta_len); in dsf()
429 addr->rta_len = off - addr_start; in dsf()
434 rta = (void *)(data + off); in dsf()
438 off += NLMSG_ALIGN(rta->rta_len); in dsf()
440 do_nl_req(fd, nh, off, 0); in dsf()
460 int off = 0; in csf() local
467 off = init_genl_req(data, pm_family, MPTCP_PM_CMD_SUBFLOW_CREATE, in csf()
508 addr_start = off; in csf()
509 addr = (void *)(data + off); in csf()
513 off += NLMSG_ALIGN(addr->rta_len); in csf()
516 rta = (void *)(data + off); in csf()
527 off += NLMSG_ALIGN(rta->rta_len); in csf()
530 rta = (void *)(data + off); in csf()
534 off += NLMSG_ALIGN(rta->rta_len); in csf()
539 rta = (void *)(data + off); in csf()
543 off += NLMSG_ALIGN(rta->rta_len); in csf()
549 rta = (void *)(data + off); in csf()
553 off += NLMSG_ALIGN(rta->rta_len); in csf()
557 rta = (void *)(data + off); in csf()
561 off += NLMSG_ALIGN(rta->rta_len); in csf()
563 addr->rta_len = off - addr_start; in csf()
568 rta = (void *)(data + off); in csf()
572 off += NLMSG_ALIGN(rta->rta_len); in csf()
574 do_nl_req(fd, nh, off, 0); in csf()
588 int off = 0; in remove_addr() local
593 off = init_genl_req(data, pm_family, MPTCP_PM_CMD_REMOVE, in remove_addr()
605 rta = (void *)(data + off); in remove_addr()
609 off += NLMSG_ALIGN(rta->rta_len); in remove_addr()
615 rta = (void *)(data + off); in remove_addr()
619 off += NLMSG_ALIGN(rta->rta_len); in remove_addr()
624 do_nl_req(fd, nh, off, 0); in remove_addr()
640 int off = 0; in announce_addr() local
645 off = init_genl_req(data, pm_family, MPTCP_PM_CMD_ANNOUNCE, in announce_addr()
652 addr_start = off; in announce_addr()
653 addr = (void *)(data + off); in announce_addr()
656 off += NLMSG_ALIGN(addr->rta_len); in announce_addr()
660 rta = (void *)(data + off); in announce_addr()
671 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()
687 rta = (void *)(data + off); in announce_addr()
691 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()
716 rta = (void *)(data + off); in announce_addr()
720 off += NLMSG_ALIGN(rta->rta_len); in announce_addr()
732 rta = (void *)(data + off); in announce_addr()
736 off += NLMSG_ALIGN(rta->rta_len); in announce_addr()
738 addr->rta_len = off - addr_start; in announce_addr()
744 rta = (void *)(data + off); in announce_addr()
748 off += NLMSG_ALIGN(rta->rta_len); in announce_addr()
750 do_nl_req(fd, nh, off, 0); in announce_addr()
766 int off = 0; in add_addr() local
771 off = init_genl_req(data, pm_family, MPTCP_PM_CMD_ADD_ADDR, in add_addr()
777 nest_start = off; in add_addr()
778 nest = (void *)(data + off); in add_addr()
781 off += NLMSG_ALIGN(nest->rta_len); in add_addr()
784 rta = (void *)(data + off); in add_addr()
795 off += NLMSG_ALIGN(rta->rta_len); in add_addr()
798 rta = (void *)(data + off); in add_addr()
802 off += NLMSG_ALIGN(rta->rta_len); in add_addr()
833 rta = (void *)(data + off); in add_addr()
837 off += NLMSG_ALIGN(rta->rta_len); in add_addr()
843 rta = (void *)(data + off); in add_addr()
847 off += NLMSG_ALIGN(rta->rta_len); in add_addr()
858 rta = (void *)(data + off); in add_addr()
862 off += NLMSG_ALIGN(rta->rta_len); in add_addr()
872 rta = (void *)(data + off); in add_addr()
876 off += NLMSG_ALIGN(rta->rta_len); in add_addr()
880 nest->rta_len = off - nest_start; in add_addr()
882 do_nl_req(fd, nh, off, 0); in add_addr()
896 int off = 0; in del_addr() local
900 off = init_genl_req(data, pm_family, MPTCP_PM_CMD_DEL_ADDR, in del_addr()
912 nest_start = off; in del_addr()
913 nest = (void *)(data + off); in del_addr()
916 off += NLMSG_ALIGN(nest->rta_len); in del_addr()
919 rta = (void *)(data + off); in del_addr()
923 off += NLMSG_ALIGN(rta->rta_len); in del_addr()
927 rta = (void *)(data + off); in del_addr()
939 off += NLMSG_ALIGN(rta->rta_len); in del_addr()
942 rta = (void *)(data + off); in del_addr()
946 off += NLMSG_ALIGN(rta->rta_len); in del_addr()
948 nest->rta_len = off - nest_start; in del_addr()
950 do_nl_req(fd, nh, off, 0); in del_addr()
1087 int off = 0; in get_addr() local
1091 off = init_genl_req(data, pm_family, MPTCP_PM_CMD_GET_ADDR, in get_addr()
1102 nest_start = off; in get_addr()
1103 nest = (void *)(data + off); in get_addr()
1106 off += NLMSG_ALIGN(nest->rta_len); in get_addr()
1109 rta = (void *)(data + off); in get_addr()
1113 off += NLMSG_ALIGN(rta->rta_len); in get_addr()
1114 nest->rta_len = off - nest_start; in get_addr()
1118 rta = (void *)(data + off); in get_addr()
1122 off += NLMSG_ALIGN(rta->rta_len); in get_addr()
1125 print_addrs(nh, pm_family, do_nl_req(fd, nh, off, sizeof(data))); in get_addr()
1138 int off = 0; in dump_addrs() local
1148 off = init_genl_req(data, pm_family, MPTCP_PM_CMD_GET_ADDR, in dump_addrs()
1153 nh->nlmsg_len = off; in dump_addrs()
1157 rta = (void *)(data + off); in dump_addrs()
1161 off += NLMSG_ALIGN(rta->rta_len); in dump_addrs()
1164 print_addrs(nh, pm_family, do_nl_req(fd, nh, off, sizeof(data))); in dump_addrs()
1174 int off = 0; in flush_addrs() local
1178 off = init_genl_req(data, pm_family, MPTCP_PM_CMD_FLUSH_ADDRS, in flush_addrs()
1181 do_nl_req(fd, nh, off, 0); in flush_addrs()
1228 int off = 0; in get_set_limits() local
1241 off = init_genl_req(data, pm_family, cmd, MPTCP_PM_VER); in get_set_limits()
1245 struct rtattr *rta = (void *)(data + off); in get_set_limits()
1250 off += NLMSG_ALIGN(rta->rta_len); in get_set_limits()
1252 rta = (void *)(data + off); in get_set_limits()
1256 off += NLMSG_ALIGN(rta->rta_len); in get_set_limits()
1262 len = do_nl_req(fd, nh, off, len); in get_set_limits()
1331 int off = 0; in set_flags() local
1336 off = init_genl_req(data, pm_family, MPTCP_PM_CMD_SET_FLAGS, in set_flags()
1342 nest_start = off; in set_flags()
1343 nest = (void *)(data + off); in set_flags()
1346 off += NLMSG_ALIGN(nest->rta_len); in set_flags()
1354 rta = (void *)(data + off); in set_flags()
1358 off += NLMSG_ALIGN(rta->rta_len); in set_flags()
1361 rta = (void *)(data + off); in set_flags()
1373 off += NLMSG_ALIGN(rta->rta_len); in set_flags()
1376 rta = (void *)(data + off); in set_flags()
1380 off += NLMSG_ALIGN(rta->rta_len); in set_flags()
1412 rta = (void *)(data + off); in set_flags()
1416 off += NLMSG_ALIGN(rta->rta_len); in set_flags()
1427 rta = (void *)(data + off); in set_flags()
1431 off += NLMSG_ALIGN(rta->rta_len); in set_flags()
1446 nest->rta_len = off - nest_start; in set_flags()
1450 rta = (void *)(data + off); in set_flags()
1454 off += NLMSG_ALIGN(rta->rta_len); in set_flags()
1459 nest_start = off; in set_flags()
1460 nest = (void *)(data + off); in set_flags()
1463 off += NLMSG_ALIGN(nest->rta_len); in set_flags()
1466 rta = (void *)(data + off); in set_flags()
1478 off += NLMSG_ALIGN(rta->rta_len); in set_flags()
1481 rta = (void *)(data + off); in set_flags()
1485 off += NLMSG_ALIGN(rta->rta_len); in set_flags()
1488 rta = (void *)(data + off); in set_flags()
1492 off += NLMSG_ALIGN(rta->rta_len); in set_flags()
1495 nest->rta_len = off - nest_start; in set_flags()
1498 do_nl_req(fd, nh, off, 0); in set_flags()