Lines Matching refs:pm_family
239 static int genl_parse_getfamily(struct nlmsghdr *nlh, int *pm_family, in genl_parse_getfamily() argument
270 *pm_family = *(__u16 *)RTA_DATA(attrs); in genl_parse_getfamily()
308 static int resolve_mptcp_pm_netlink(int fd, int *pm_family, int *events_mcast_grp) in resolve_mptcp_pm_netlink() argument
330 return genl_parse_getfamily((void *)data, pm_family, events_mcast_grp); in resolve_mptcp_pm_netlink()
333 int dsf(int fd, int pm_family, int argc, char *argv[]) in dsf() argument
352 off = init_genl_req(data, pm_family, MPTCP_PM_CMD_SUBFLOW_DESTROY, in dsf()
445 int csf(int fd, int pm_family, int argc, char *argv[]) in csf() argument
467 off = init_genl_req(data, pm_family, MPTCP_PM_CMD_SUBFLOW_CREATE, in csf()
579 int remove_addr(int fd, int pm_family, int argc, char *argv[]) in remove_addr() argument
593 off = init_genl_req(data, pm_family, MPTCP_PM_CMD_REMOVE, in remove_addr()
628 int announce_addr(int fd, int pm_family, int argc, char *argv[]) in announce_addr() argument
645 off = init_genl_req(data, pm_family, MPTCP_PM_CMD_ANNOUNCE, in announce_addr()
755 int add_addr(int fd, int pm_family, int argc, char *argv[]) in add_addr() argument
771 off = init_genl_req(data, pm_family, MPTCP_PM_CMD_ADD_ADDR, in add_addr()
886 int del_addr(int fd, int pm_family, int argc, char *argv[]) in del_addr() argument
900 off = init_genl_req(data, pm_family, MPTCP_PM_CMD_DEL_ADDR, in del_addr()
1050 static void print_addrs(struct nlmsghdr *nh, int pm_family, int total_len) in print_addrs() argument
1061 if (nh->nlmsg_type != pm_family) in print_addrs()
1077 int get_addr(int fd, int pm_family, int argc, char *argv[]) in get_addr() argument
1091 off = init_genl_req(data, pm_family, MPTCP_PM_CMD_GET_ADDR, in get_addr()
1125 print_addrs(nh, pm_family, do_nl_req(fd, nh, off, sizeof(data))); in get_addr()
1129 int dump_addrs(int fd, int pm_family, int argc, char *argv[]) in dump_addrs() argument
1148 off = init_genl_req(data, pm_family, MPTCP_PM_CMD_GET_ADDR, in dump_addrs()
1164 print_addrs(nh, pm_family, do_nl_req(fd, nh, off, sizeof(data))); in dump_addrs()
1168 int flush_addrs(int fd, int pm_family, int argc, char *argv[]) in flush_addrs() argument
1178 off = init_genl_req(data, pm_family, MPTCP_PM_CMD_FLUSH_ADDRS, in flush_addrs()
1185 static void print_limits(struct nlmsghdr *nh, int pm_family, int total_len) in print_limits() argument
1197 if (nh->nlmsg_type != pm_family) in print_limits()
1220 int get_set_limits(int fd, int pm_family, int argc, char *argv[]) in get_set_limits() argument
1241 off = init_genl_req(data, pm_family, cmd, MPTCP_PM_VER); in get_set_limits()
1264 print_limits(nh, pm_family, len); in get_set_limits()
1316 int set_flags(int fd, int pm_family, int argc, char *argv[]) in set_flags() argument
1336 off = init_genl_req(data, pm_family, MPTCP_PM_CMD_SET_FLAGS, in set_flags()
1505 int pm_family; in main() local
1515 resolve_mptcp_pm_netlink(fd, &pm_family, &events_mcast_grp); in main()
1518 return add_addr(fd, pm_family, argc, argv); in main()
1520 return announce_addr(fd, pm_family, argc, argv); in main()
1522 return remove_addr(fd, pm_family, argc, argv); in main()
1524 return csf(fd, pm_family, argc, argv); in main()
1526 return dsf(fd, pm_family, argc, argv); in main()
1528 return del_addr(fd, pm_family, argc, argv); in main()
1530 return flush_addrs(fd, pm_family, argc, argv); in main()
1532 return get_addr(fd, pm_family, argc, argv); in main()
1534 return dump_addrs(fd, pm_family, argc, argv); in main()
1536 return get_set_limits(fd, pm_family, argc, argv); in main()
1538 return set_flags(fd, pm_family, argc, argv); in main()