/freebsd/sys/netlink/ |
H A D | netlink_message_parser.c | 55 nlmsg_report_err_msg(struct nl_pstate *npt, const char *fmt, ...) in nlmsg_report_err_msg() argument 59 if (npt->err_msg != NULL) in nlmsg_report_err_msg() 61 char *buf = npt_alloc(npt, NL_MAX_ERROR_BUF); in nlmsg_report_err_msg() 68 npt->err_msg = buf; in nlmsg_report_err_msg() 73 nlmsg_report_err_offset(struct nl_pstate *npt, uint32_t off) in nlmsg_report_err_offset() argument 75 if (npt->err_off != 0) in nlmsg_report_err_offset() 77 npt->err_off = off; in nlmsg_report_err_offset() 82 nlmsg_report_cookie(struct nl_pstate *npt, struct nlattr *nla) in nlmsg_report_cookie() argument 86 npt->cookie = nla; in nlmsg_report_cookie() 90 nlmsg_report_cookie_u32(struct nl_pstate *npt, uint32_ argument 126 nl_parse_attrs_raw(struct nlattr * nla_head,int len,const struct nlattr_parser * ps,int pslen,struct nl_pstate * npt,void * target) nl_parse_attrs_raw() argument 197 nlattr_get_flag(struct nlattr * nla,struct nl_pstate * npt,const void * arg,void * target) nlattr_get_flag() argument 210 parse_rta_ip4(void * rta_data,struct nl_pstate * npt,int * perror) parse_rta_ip4() argument 226 parse_rta_ip6(void * rta_data,struct nl_pstate * npt,int * perror) parse_rta_ip6() argument 242 parse_rta_ip(struct rtattr * rta,struct nl_pstate * npt,int * perror) parse_rta_ip() argument 261 nlattr_get_ip(struct nlattr * nla,struct nl_pstate * npt,const void * arg,void * target) nlattr_get_ip() argument 272 parse_rta_via(struct rtattr * rta,struct nl_pstate * npt,int * perror) parse_rta_via() argument 305 nlattr_get_ipvia(struct nlattr * nla,struct nl_pstate * npt,const void * arg,void * target) nlattr_get_ipvia() argument 316 nlattr_get_bool(struct nlattr * nla,struct nl_pstate * npt,const void * arg,void * target) nlattr_get_bool() argument 328 nlattr_get_uint8(struct nlattr * nla,struct nl_pstate * npt,const void * arg,void * target) nlattr_get_uint8() argument 340 nlattr_get_uint16(struct nlattr * nla,struct nl_pstate * npt,const void * arg,void * target) nlattr_get_uint16() argument 352 nlattr_get_uint32(struct nlattr * nla,struct nl_pstate * npt,const void * arg,void * target) nlattr_get_uint32() argument 364 nlattr_get_uint64(struct nlattr * nla,struct nl_pstate * npt,const void * arg,void * target) nlattr_get_uint64() argument 376 nlattr_get_in_addr(struct nlattr * nla,struct nl_pstate * npt,const void * arg,void * target) nlattr_get_in_addr() argument 388 nlattr_get_in6_addr(struct nlattr * nla,struct nl_pstate * npt,const void * arg,void * target) nlattr_get_in6_addr() argument 400 nlattr_get_ifp_internal(struct nlattr * nla,struct nl_pstate * npt,void * target,bool zero_ok) nlattr_get_ifp_internal() argument 431 nlattr_get_ifp(struct nlattr * nla,struct nl_pstate * npt,const void * arg,void * target) nlattr_get_ifp() argument 437 nlattr_get_ifpz(struct nlattr * nla,struct nl_pstate * npt,const void * arg,void * target) nlattr_get_ifpz() argument 443 nlattr_get_chara(struct nlattr * nla,struct nl_pstate * npt,const void * arg,void * target) nlattr_get_chara() argument 460 nlattr_get_string(struct nlattr * nla,struct nl_pstate * npt,const void * arg,void * target) nlattr_get_string() argument 475 nlattr_get_stringn(struct nlattr * nla,struct nl_pstate * npt,const void * arg,void * target) nlattr_get_stringn() argument 490 nlattr_get_bytes(struct nlattr * nla,struct nl_pstate * npt,const void * arg,void * target) nlattr_get_bytes() argument 503 nlattr_get_nla(struct nlattr * nla,struct nl_pstate * npt,const void * arg,void * target) nlattr_get_nla() argument 511 nlattr_get_nested(struct nlattr * nla,struct nl_pstate * npt,const void * arg,void * target) nlattr_get_nested() argument 522 nlattr_get_nested_ptr(struct nlattr * nla,struct nl_pstate * npt,const void * arg,void * target) nlattr_get_nested_ptr() argument 533 nlf_get_ifp(void * src,struct nl_pstate * npt,void * target) nlf_get_ifp() argument 550 nlf_get_ifpz(void * src,struct nl_pstate * npt,void * target) nlf_get_ifpz() argument 567 nlf_get_u8(void * src,struct nl_pstate * npt,void * target) nlf_get_u8() argument 577 nlf_get_u8_u32(void * src,struct nl_pstate * npt,void * target) nlf_get_u8_u32() argument 584 nlf_get_u16(void * src,struct nl_pstate * npt,void * target) nlf_get_u16() argument 591 nlf_get_u32(void * src,struct nl_pstate * npt,void * target) nlf_get_u32() argument [all...] |
H A D | netlink_message_parser.h | 79 npt_alloc(struct nl_pstate *npt, int len) in npt_alloc() argument 81 return (lb_alloc(&npt->lb, len)); in npt_alloc() 86 typedef int parse_field_f(void *hdr, struct nl_pstate *npt, void *target); 94 int nlf_get_ifp(void *src, struct nl_pstate *npt, void *target); 95 int nlf_get_ifpz(void *src, struct nl_pstate *npt, void *target); 96 int nlf_get_u8(void *src, struct nl_pstate *npt, void *target); 97 int nlf_get_u16(void *src, struct nl_pstate *npt, void *target); 98 int nlf_get_u32(void *src, struct nl_pstate *npt, void *target); 99 int nlf_get_u8_u32(void *src, struct nl_pstate *npt, void *target); 102 typedef int parse_attr_f(struct nlattr *attr, struct nl_pstate *npt, 229 nl_parse_header(void * hdr,int len,const struct nlhdr_parser * parser,struct nl_pstate * npt,void * target) nl_parse_header() argument 277 nl_parse_nested(struct nlattr * nla,const struct nlhdr_parser * parser,struct nl_pstate * npt,void * target) nl_parse_nested() argument 315 nl_parse_nlmsg(struct nlmsghdr * hdr,const struct nlhdr_parser * parser,struct nl_pstate * npt,void * target) nl_parse_nlmsg() argument [all...] |
H A D | netlink_io.c | 260 struct nlpcb *nlp, struct nl_pstate *npt) in nl_receive_message() argument 280 npt->hdr = hdr; in nl_receive_message() 289 &hdr, npt); in nl_receive_message() 293 error = handler(hdr, npt); in nl_receive_message() 298 if (!npt->nw->suppress_ack) { in nl_receive_message() 300 nlmsg_ack(nlp, error, hdr, npt); in nl_receive_message() 308 npt_clear(struct nl_pstate *npt) in npt_clear() argument 310 lb_clear(&npt->lb); in npt_clear() 311 npt->error = 0; in npt_clear() 312 npt->err_msg = NULL; in npt_clear() [all …]
|
H A D | netlink_route.c | 67 rtnl_handle_message(struct nlmsghdr *hdr, struct nl_pstate *npt) in rtnl_handle_message() argument 71 struct nlpcb *nlp = npt->nlp; in rtnl_handle_message() 75 NLMSG_REPORT_ERR_MSG(npt, "unknown message type: %d", hdr->nlmsg_type); in rtnl_handle_message() 81 NLMSG_REPORT_ERR_MSG(npt, "unknown message type: %d", hdr->nlmsg_type); in rtnl_handle_message() 103 error = cmd->cb(hdr, nlp, npt); in rtnl_handle_message()
|
H A D | netlink_message_writer.c | 268 struct nl_pstate *npt) in nlmsg_ack() argument 273 struct nl_writer *nw = npt->nw; in nlmsg_ack() 289 if ((npt->err_msg || npt->err_off) && nlp->nl_flags & NLF_EXT_ACK) in nlmsg_ack() 303 if (npt->err_msg != NULL && nlp->nl_flags & NLF_EXT_ACK) in nlmsg_ack() 304 nlattr_add_string(nw, NLMSGERR_ATTR_MSG, npt->err_msg); in nlmsg_ack() 305 if (npt->err_off != 0 && nlp->nl_flags & NLF_EXT_ACK) in nlmsg_ack() 306 nlattr_add_u32(nw, NLMSGERR_ATTR_OFFS, npt->err_off); in nlmsg_ack() 307 if (npt->cookie != NULL) in nlmsg_ack() 308 nlattr_add_raw(nw, npt->cookie); in nlmsg_ack()
|
H A D | netlink_glue.c | 171 struct nl_pstate *npt __unused) in nl_modify_ifp_generic_stub() 177 nl_store_ifp_cookie_stub(struct nl_pstate *npt __unused, struct ifnet *ifp __unused) in nl_store_ifp_cookie_stub() 274 const struct nlattr_bmask *bm , struct nl_pstate *npt) in nl_modify_ifp_generic() argument 276 return (_nl->nl_modify_ifp_generic(ifp, lattrs, bm, npt)); in nl_modify_ifp_generic() 280 nl_store_ifp_cookie(struct nl_pstate *npt, struct ifnet *ifp) in nl_store_ifp_cookie() argument 282 return (_nl->nl_store_ifp_cookie(npt, ifp)); in nl_store_ifp_cookie()
|
H A D | netlink_generic.c | 114 genl_handle_message(struct nlmsghdr *hdr, struct nl_pstate *npt) in genl_handle_message() argument 116 struct nlpcb *nlp = npt->nlp; in genl_handle_message() 156 error = cmd->cmd_cb(hdr, npt); in genl_handle_message() 254 nlctrl_handle_getfamily(struct nlmsghdr *hdr, struct nl_pstate *npt) in nlctrl_handle_getfamily() argument 259 error = nl_parse_nlmsg(hdr, &genl_parser, npt, &attrs); in nlctrl_handle_getfamily() 279 return (dump_family(hdr, &ghdr, gf, npt->nw)); in nlctrl_handle_getfamily() 289 error = dump_family(hdr, &ghdr, gf, npt->nw); in nlctrl_handle_getfamily() 295 if (!nlmsg_end_dump(npt->nw, error, hdr)) { in nlctrl_handle_getfamily()
|
H A D | netlink_var.h | 132 struct nl_pstate *npt); 172 const struct nlattr_bmask *bm, struct nl_pstate *npt); 173 void (*nl_store_ifp_cookie)(struct nl_pstate *npt, struct ifnet *ifp);
|
H A D | ktest_netlink_message_writer.c | 60 struct test_nlbuf_attrs *attrs = npt_alloc(ctx->npt, sizeof(*attrs)); in test_nlbuf_parser() 64 return (nl_parse_nested(nla, &nlbuf_w_parser, ctx->npt, attrs)); in test_nlbuf_parser()
|
H A D | netlink_linux.h | 42 struct nl_pstate *npt);
|
/freebsd/sys/netlink/route/ |
H A D | route_var.h | 41 struct nl_pstate *npt); 84 const struct nlattr_bmask *bm, struct nl_pstate *npt); 85 void _nl_store_ifp_cookie(struct nl_pstate *npt, struct ifnet *ifp); 89 const struct nlattr_bmask *bm, struct nl_pstate *npt) in nl_modify_ifp_generic() argument 91 return (_nl_modify_ifp_generic(ifp, lattrs, bm, npt)); in nl_modify_ifp_generic() 95 nl_store_ifp_cookie(struct nl_pstate *npt, struct ifnet *ifp) in nl_store_ifp_cookie() argument 97 _nl_store_ifp_cookie(npt, ifp); in nl_store_ifp_cookie() 102 const struct nlattr_bmask *bm, struct nl_pstate *npt); 103 void nl_store_ifp_cookie(struct nl_pstate *npt, struct ifnet *ifp); 108 const struct nlattr_bmask *bm, struct nlpcb *nlp, struct nl_pstate *npt); [all …]
|
H A D | iface_drivers.c | 67 const struct nlattr_bmask *bm, struct nl_pstate *npt) in _nl_modify_ifp_generic() argument 72 if (nlp_has_priv(npt->nlp, PRIV_NET_SETIFDESCR)) { in _nl_modify_ifp_generic() 80 nlmsg_report_err_msg(npt, "Not enough privileges to set descr"); in _nl_modify_ifp_generic() 91 if (nlp_has_priv(npt->nlp, PRIV_NET_SETIFMTU)) { in _nl_modify_ifp_generic() 95 nlmsg_report_err_msg(npt, "Not enough privileges to set mtu"); in _nl_modify_ifp_generic() 103 nlmsg_report_err_msg(npt, "unable to set promisc"); in _nl_modify_ifp_generic() 120 _nl_store_ifp_cookie(struct nl_pstate *npt, struct ifnet *ifp) in _nl_store_ifp_cookie() argument 127 struct nlattr *nla_cookie = npt_alloc(npt, nla_len); in _nl_store_ifp_cookie() 143 nlmsg_report_cookie(npt, nla_cookie); in _nl_store_ifp_cookie()
|
H A D | iface.c | 376 check_ifmsg(void *hdr, struct nl_pstate *npt) in check_ifmsg() argument 382 nlmsg_report_err_msg(npt, in check_ifmsg() 452 rtnl_handle_getlink(struct nlmsghdr *hdr, struct nlpcb *nlp, struct nl_pstate *npt) in rtnl_handle_getlink() argument 459 error = nl_parse_nlmsg(hdr, &ifmsg_parser, npt, &attrs); in rtnl_handle_getlink() 465 .nw = npt->nw, in rtnl_handle_getlink() 533 rtnl_handle_dellink(struct nlmsghdr *hdr, struct nlpcb *nlp, struct nl_pstate *npt) in rtnl_handle_dellink() argument 540 error = nl_parse_nlmsg(hdr, &ifmsg_parser, npt, &attrs); in rtnl_handle_dellink() 589 struct nlattr_bmask *bm, struct nlpcb *nlp, struct nl_pstate *npt) in create_link() argument 592 NLMSG_REPORT_ERR_MSG(npt, "empty IFLA_IFNAME attribute"); in create_link() 596 NLMSG_REPORT_ERR_MSG(npt, "empty IFLA_INFO_KIND attribute"); in create_link() [all …]
|
H A D | neigh.c | 342 post_p_neigh(void *_attrs, struct nl_pstate *npt __unused) in post_p_neigh() 361 rtnl_handle_newneigh(struct nlmsghdr *hdr, struct nlpcb *nlp, struct nl_pstate *npt) in rtnl_handle_newneigh() argument 366 error = nl_parse_nlmsg(hdr, &ndmsg_parser, npt, &attrs); in rtnl_handle_newneigh() 372 NLMSG_REPORT_ERR_MSG(npt, "NDA_IFINDEX / ndm_ifindex not set"); in rtnl_handle_newneigh() 374 NLMSG_REPORT_ERR_MSG(npt, "NDA_DST not set"); in rtnl_handle_newneigh() 376 NLMSG_REPORT_ERR_MSG(npt, "NDA_LLADDR not set"); in rtnl_handle_newneigh() 381 NLMSG_REPORT_ERR_MSG(npt, in rtnl_handle_newneigh() 389 NLMSG_REPORT_ERR_MSG(npt, in rtnl_handle_newneigh() 397 NLMSG_REPORT_ERR_MSG(npt, "ndm_flags %X not supported", in rtnl_handle_newneigh() 416 NLMSG_REPORT_ERR_MSG(npt, "unable to calculate lle prepend data"); in rtnl_handle_newneigh() [all …]
|
H A D | rt.c | 419 post_p_rtnh(void *_attrs, struct nl_pstate *npt __unused) in post_p_rtnh() 434 nlattr_get_multipath(struct nlattr *nla, struct nl_pstate *npt, in nlattr_get_multipath() argument 446 mp = npt_alloc(npt, (max_nhops + 2) * sizeof(struct rta_mpath_nh)); in nlattr_get_multipath() 454 NLMSG_REPORT_ERR_MSG(npt, "%s: bad length %u", in nlattr_get_multipath() 460 npt, mpnh); in nlattr_get_multipath() 462 NLMSG_REPORT_ERR_MSG(npt, in nlattr_get_multipath() 472 NLMSG_REPORT_ERR_MSG(npt, "invalid RTA_MULTIPATH attr"); 531 post_p_rtmsg(void *_attrs, struct nl_pstate *npt __unused) 623 struct nlmsghdr *hdr, struct nl_pstate *npt) in handle_rtm_getroute() 633 NLMSG_REPORT_ERR_MSG(npt, "N in handle_rtm_getroute() 611 handle_rtm_getroute(struct nlpcb * nlp,struct nl_parsed_route * attrs,struct nlmsghdr * hdr,struct nl_pstate * npt) handle_rtm_getroute() argument 807 create_nexthop_one(struct nl_parsed_route * attrs,struct rta_mpath_nh * mpnh,struct nl_pstate * npt,struct nhop_object ** pnh) create_nexthop_one() argument 838 create_nexthop_from_attrs(struct nl_parsed_route * attrs,struct nl_pstate * npt,int * perror) create_nexthop_from_attrs() argument 926 rtnl_handle_newroute(struct nlmsghdr * hdr,struct nlpcb * nlp,struct nl_pstate * npt) rtnl_handle_newroute() argument 994 rtnl_handle_delroute(struct nlmsghdr * hdr,struct nlpcb * nlp,struct nl_pstate * npt) rtnl_handle_delroute() argument 1023 rtnl_handle_getroute(struct nlmsghdr * hdr,struct nlpcb * nlp,struct nl_pstate * npt) rtnl_handle_getroute() argument [all...] |
H A D | nexthop.c | 660 nlattr_get_nhg(struct nlattr *nla, struct nl_pstate *npt, const void *arg, void *target) in nlattr_get_nhg() argument 736 post_p_nh(void *_attrs, struct nl_pstate *npt) in post_p_nh() argument 800 struct nl_pstate *npt) in nl_set_nexthop_gw() argument 807 NLMSG_REPORT_ERR_MSG(npt, "interface not set"); in nl_set_nexthop_gw() 819 newnhop(struct nl_parsed_nhop *attrs, struct user_nhop *unhop, struct nl_pstate *npt) in newnhop() argument 827 NLMSG_REPORT_ERR_MSG(npt, "missing NHA_GATEWAY"); in newnhop() 831 NLMSG_REPORT_ERR_MSG(npt, "missing NHA_OIF"); in newnhop() 837 NLMSG_REPORT_ERR_MSG(npt, "Unable to determine default source IP"); in newnhop() 855 error = nl_set_nexthop_gw(nh, attrs->nha_gw, attrs->nha_oif, npt); in newnhop() 882 struct nl_pstate *npt) in rtnl_handle_newnhop() argument [all …]
|
/freebsd/sys/tests/ |
H A D | ktest.c | 96 dump_mod_test(struct nlmsghdr *hdr, struct nl_pstate *npt, in dump_mod_test() argument 99 struct nl_writer *nw = npt->nw; in dump_mod_test() 116 dump_mod_tests(struct nlmsghdr *hdr, struct nl_pstate *npt, in dump_mod_tests() argument 123 int error = dump_mod_test(hdr, npt, mod, test_info); in dump_mod_tests() 132 dump_tests(struct nlmsghdr *hdr, struct nl_pstate *npt) in dump_tests() argument 138 error = nl_parse_nlmsg(hdr, &ktest_parser, npt, &attrs); in dump_tests() 148 error = dump_mod_tests(hdr, npt, mod, &attrs); in dump_tests() 154 if (!nlmsg_end_dump(npt->nw, error, hdr)) { in dump_tests() 163 run_test(struct nlmsghdr *hdr, struct nl_pstate *npt) in run_test() argument 169 error = nl_parse_nlmsg(hdr, &ktest_parser, npt, &attrs); in run_test() [all …]
|
H A D | ktest_example.c | 86 struct test1_attrs *attrs = npt_alloc(ctx->npt, sizeof(*attrs)); in test_with_params_parser() 90 return (nl_parse_nested(nla, &test1_parser, ctx->npt, attrs)); in test_with_params_parser()
|
/freebsd/sys/netpfil/pf/ |
H A D | pf_nl.c | 146 struct nl_pstate *npt) in dump_state() argument 148 struct nl_writer *nw = npt->nw; in dump_state() 241 struct nlmsghdr *hdr, struct nl_pstate *npt) in handle_dumpstates() argument 281 error = dump_state(nlp, hdr, s, npt); in handle_dumpstates() 288 if (!nlmsg_end_dump(npt->nw, error, hdr)) { in handle_dumpstates() 298 struct nlmsghdr *hdr, struct nl_pstate *npt) in handle_getstate() argument 306 ret = dump_state(nlp, hdr, s, npt); in handle_getstate() 314 struct nl_pstate *npt) in dump_creatorid() argument 316 struct nl_writer *nw = npt->nw; in dump_creatorid() 337 pf_handle_getstates(struct nlmsghdr *hdr, struct nl_pstate *npt) in pf_handle_getstates() argument [all …]
|
H A D | pflow.c | 1312 pflow_nl_list(struct nlmsghdr *hdr, struct nl_pstate *npt) in pflow_nl_list() argument 1316 struct nl_writer *nw = npt->nw; in pflow_nl_list() 1351 pflow_nl_create(struct nlmsghdr *hdr, struct nl_pstate *npt) in pflow_nl_create() argument 1353 struct nl_writer *nw = npt->nw; in pflow_nl_create() 1400 pflow_nl_del(struct nlmsghdr *hdr, struct nl_pstate *npt) in pflow_nl_del() argument 1405 error = nl_parse_nlmsg(hdr, &del_parser, npt, &d); in pflow_nl_del() 1455 pflow_nl_get(struct nlmsghdr *hdr, struct nl_pstate *npt) in pflow_nl_get() argument 1460 struct nl_writer *nw = npt->nw; in pflow_nl_get() 1464 error = nl_parse_nlmsg(hdr, &get_parser, npt, &g); in pflow_nl_get() 1524 pflow_postparse_sockaddr(void *parsed_args, struct nl_pstate *npt __unused) in pflow_postparse_sockaddr() [all …]
|
/freebsd/sys/compat/linux/ |
H A D | linux_netlink.c | 76 rtnl_neigh_from_linux(struct nlmsghdr *hdr, struct nl_pstate *npt) in rtnl_neigh_from_linux() argument 92 rtnl_ifaddr_from_linux(struct nlmsghdr *hdr, struct nl_pstate *npt) in rtnl_ifaddr_from_linux() argument 112 rtnl_route_from_linux(struct nlmsghdr *hdr, struct nl_pstate *npt) in rtnl_route_from_linux() argument 158 rtnl_from_linux(struct nlmsghdr *hdr, struct nl_pstate *npt) in rtnl_from_linux() argument 165 return (rtnl_route_from_linux(hdr, npt)); in rtnl_from_linux() 167 return (rtnl_neigh_from_linux(hdr, npt)); in rtnl_from_linux() 169 return (rtnl_ifaddr_from_linux(hdr, npt)); in rtnl_from_linux() 186 struct nl_pstate *npt) in nlmsg_from_linux() argument 190 return (rtnl_from_linux(*hdr, npt)); in nlmsg_from_linux()
|
/freebsd/crypto/openssh/openbsd-compat/ |
H A D | getcwd.c | 194 char *npt; in getcwd() local 201 if ((npt = realloc(pt, ptsize *= 2)) == NULL) in getcwd() 203 bpt = npt + (bpt - pt); in getcwd() 204 pt = npt; in getcwd()
|
/freebsd/sys/amd64/vmm/amd/ |
H A D | npt.c | 41 SYSCTL_NODE(_hw_vmm, OID_AUTO, npt, CTLFLAG_RW | CTLFLAG_MPSAFE, NULL,
|
/freebsd/sys/netinet/ |
H A D | ip_carp.c | 2721 nlattr_get_carp_key(struct nlattr *nla, struct nl_pstate *npt, const void *arg, void *target) in nlattr_get_carp_key() argument 2732 struct nl_pstate *npt; member 2740 struct nl_pstate *npt = nlsa->npt; in carp_nl_send() local 2741 struct nl_writer *nw = npt->nw; in carp_nl_send() 2826 carp_nl_get(struct nlmsghdr *hdr, struct nl_pstate *npt) in carp_nl_get() argument 2835 error = nl_parse_nlmsg(hdr, &carp_parser, npt, &attrs); in carp_nl_get() 2851 args.npt = npt; in carp_nl_get() 2857 error = carp_ioctl_get(ifp, nlp_get_cred(npt->nlp), &carpr, in carp_nl_get() 2861 if (! nlmsg_end_dump(npt->nw, error, hdr)) in carp_nl_get() 2872 carp_nl_set(struct nlmsghdr *hdr, struct nl_pstate *npt) in carp_nl_set() argument [all …]
|
/freebsd/sys/net/ |
H A D | if_vlan.c | 1254 struct nl_pstate *npt = ifd->npt; in vlan_clone_create_nl() local 1269 nlmsg_report_err_msg(npt, "vlan id is required, guessing not supported"); in vlan_clone_create_nl() 1273 error = nl_parse_nested(lattrs->ifla_idata, &vlan_parser, npt, &attrs); in vlan_clone_create_nl() 1277 nlmsg_report_err_msg(npt, "Invalid VID: %d", attrs.vlan_id); in vlan_clone_create_nl() 1281 nlmsg_report_err_msg(npt, "Unsupported ethertype: 0x%04X", attrs.vlan_proto); in vlan_clone_create_nl() 1298 nlmsg_report_err_msg(npt, "unable to find parent interface %u", lattrs->ifi_index); in vlan_clone_create_nl() 1319 error = nl_parse_nested(lattrs->ifla_idata, &vlan_parser, ifd->npt, &attrs); in vlan_clone_modify_nl() 1328 nlmsg_report_err_msg(ifd->npt, "unable to find parent interface %u", in vlan_clone_modify_nl() 1341 return (nl_modify_ifp_generic(ifp, ifd->lattrs, ifd->bm, ifd->npt)); in vlan_clone_modify_nl()
|