• Home
  • Raw
  • Download

Lines Matching refs:off

42 	int off = 0;  in init_genl_req()  local
47 off += NLMSG_ALIGN(sizeof(*nh)); in init_genl_req()
49 gh = (void *)(data + off); in init_genl_req()
52 off += NLMSG_ALIGN(sizeof(*gh)); in init_genl_req()
53 return off; in init_genl_req()
60 uint32_t off; in nl_error() local
75 memcpy(&off, RTA_DATA(attrs), 4); in nl_error()
77 (int)off); in nl_error()
156 int off = 0; in resolve_mptcp_pm_netlink() local
160 off = init_genl_req(data, GENL_ID_CTRL, CTRL_CMD_GETFAMILY, 0); in resolve_mptcp_pm_netlink()
162 rta = (void *)(data + off); in resolve_mptcp_pm_netlink()
167 off += NLMSG_ALIGN(rta->rta_len); in resolve_mptcp_pm_netlink()
169 do_nl_req(fd, nh, off, sizeof(data)); in resolve_mptcp_pm_netlink()
184 int off = 0; in add_addr() local
189 off = init_genl_req(data, pm_family, MPTCP_PM_CMD_ADD_ADDR, in add_addr()
195 nest_start = off; in add_addr()
196 nest = (void *)(data + off); in add_addr()
199 off += NLMSG_ALIGN(nest->rta_len); in add_addr()
202 rta = (void *)(data + off); in add_addr()
213 off += NLMSG_ALIGN(rta->rta_len); in add_addr()
216 rta = (void *)(data + off); in add_addr()
220 off += NLMSG_ALIGN(rta->rta_len); in add_addr()
251 rta = (void *)(data + off); in add_addr()
255 off += NLMSG_ALIGN(rta->rta_len); in add_addr()
261 rta = (void *)(data + off); in add_addr()
265 off += NLMSG_ALIGN(rta->rta_len); in add_addr()
276 rta = (void *)(data + off); in add_addr()
280 off += NLMSG_ALIGN(rta->rta_len); in add_addr()
290 rta = (void *)(data + off); in add_addr()
294 off += NLMSG_ALIGN(rta->rta_len); in add_addr()
298 nest->rta_len = off - nest_start; in add_addr()
300 do_nl_req(fd, nh, off, 0); in add_addr()
314 int off = 0; in del_addr() local
318 off = init_genl_req(data, pm_family, MPTCP_PM_CMD_DEL_ADDR, in del_addr()
330 nest_start = off; in del_addr()
331 nest = (void *)(data + off); in del_addr()
334 off += NLMSG_ALIGN(nest->rta_len); in del_addr()
337 rta = (void *)(data + off); in del_addr()
341 off += NLMSG_ALIGN(rta->rta_len); in del_addr()
345 rta = (void *)(data + off); in del_addr()
357 off += NLMSG_ALIGN(rta->rta_len); in del_addr()
360 rta = (void *)(data + off); in del_addr()
364 off += NLMSG_ALIGN(rta->rta_len); in del_addr()
366 nest->rta_len = off - nest_start; in del_addr()
368 do_nl_req(fd, nh, off, 0); in del_addr()
497 int off = 0; in get_addr() local
501 off = init_genl_req(data, pm_family, MPTCP_PM_CMD_GET_ADDR, in get_addr()
510 nest_start = off; in get_addr()
511 nest = (void *)(data + off); in get_addr()
514 off += NLMSG_ALIGN(nest->rta_len); in get_addr()
517 rta = (void *)(data + off); in get_addr()
521 off += NLMSG_ALIGN(rta->rta_len); in get_addr()
522 nest->rta_len = off - nest_start; in get_addr()
524 print_addrs(nh, pm_family, do_nl_req(fd, nh, off, sizeof(data))); in get_addr()
535 int off = 0; in dump_addrs() local
539 off = init_genl_req(data, pm_family, MPTCP_PM_CMD_GET_ADDR, in dump_addrs()
544 nh->nlmsg_len = off; in dump_addrs()
546 print_addrs(nh, pm_family, do_nl_req(fd, nh, off, sizeof(data))); in dump_addrs()
556 int off = 0; in flush_addrs() local
560 off = init_genl_req(data, pm_family, MPTCP_PM_CMD_FLUSH_ADDRS, in flush_addrs()
563 do_nl_req(fd, nh, off, 0); in flush_addrs()
610 int off = 0; in get_set_limits() local
623 off = init_genl_req(data, pm_family, cmd, MPTCP_PM_VER); in get_set_limits()
627 struct rtattr *rta = (void *)(data + off); in get_set_limits()
632 off += NLMSG_ALIGN(rta->rta_len); in get_set_limits()
634 rta = (void *)(data + off); in get_set_limits()
638 off += NLMSG_ALIGN(rta->rta_len); in get_set_limits()
644 len = do_nl_req(fd, nh, off, len); in get_set_limits()
660 int off = 0; in set_flags() local
665 off = init_genl_req(data, pm_family, MPTCP_PM_CMD_SET_FLAGS, in set_flags()
671 nest_start = off; in set_flags()
672 nest = (void *)(data + off); in set_flags()
675 off += NLMSG_ALIGN(nest->rta_len); in set_flags()
678 rta = (void *)(data + off); in set_flags()
690 off += NLMSG_ALIGN(rta->rta_len); in set_flags()
693 rta = (void *)(data + off); in set_flags()
697 off += NLMSG_ALIGN(rta->rta_len); in set_flags()
717 rta = (void *)(data + off); in set_flags()
721 off += NLMSG_ALIGN(rta->rta_len); in set_flags()
726 nest->rta_len = off - nest_start; in set_flags()
728 do_nl_req(fd, nh, off, 0); in set_flags()