Searched refs:attrlen (Results 1 – 6 of 6) sorted by relevance
/net/802/ |
D | mrp.c | 368 u8 attrtype, u8 attrlen) in mrp_pdu_append_msg_hdr() argument 383 mh->attrlen = attrlen; in mrp_pdu_append_msg_hdr() 389 const void *firstattrvalue, u8 attrlen) in mrp_pdu_append_vecattr_hdr() argument 393 if (skb_tailroom(app->pdu) < sizeof(*vah) + attrlen) in mrp_pdu_append_vecattr_hdr() 395 vah = __skb_put(app->pdu, sizeof(*vah) + attrlen); in mrp_pdu_append_vecattr_hdr() 397 memcpy(vah->firstattrvalue, firstattrvalue, attrlen); in mrp_pdu_append_vecattr_hdr() 399 memcpy(mrp_cb(app->pdu)->attrvalue, firstattrvalue, attrlen); in mrp_pdu_append_vecattr_hdr() 423 mrp_cb(app->pdu)->mh->attrlen != attr->len) { in mrp_pdu_append_vecattr_event() 655 mrp_cb(skb)->mh->attrlen, in mrp_pdu_parse_vecattr_event() 711 if (sizeof(struct mrp_skb_cb) + mrp_cb(skb)->mh->attrlen > in mrp_pdu_parse_vecattr() [all …]
|
/net/core/ |
D | lwtunnel.c | 191 int attrlen; in lwtunnel_valid_encap_type_attr() local 194 attrlen = rtnh_attrlen(rtnh); in lwtunnel_valid_encap_type_attr() 195 if (attrlen > 0) { in lwtunnel_valid_encap_type_attr() 197 nla_entype = nla_find(attrs, attrlen, RTA_ENCAP_TYPE); in lwtunnel_valid_encap_type_attr()
|
/net/netfilter/ |
D | nfnetlink.c | 254 int attrlen = nlh->nlmsg_len - min_len; in nfnetlink_rcv_msg() local 271 attr, attrlen, in nfnetlink_rcv_msg() 492 int attrlen = nlh->nlmsg_len - min_len; in nfnetlink_rcv_batch() local 509 attr, attrlen, in nfnetlink_rcv_batch() 604 int attrlen = nlh->nlmsg_len - min_len; in nfnetlink_rcv_skb_batch() local 617 err = nla_parse_deprecated(cda, NFNL_BATCH_MAX, attr, attrlen, in nfnetlink_rcv_skb_batch()
|
/net/ipv4/ |
D | fib_semantics.c | 699 int attrlen; in fib_get_nhs() local 718 attrlen = rtnh_attrlen(rtnh); in fib_get_nhs() 719 if (attrlen > 0) { in fib_get_nhs() 722 nla = nla_find(attrs, attrlen, RTA_GATEWAY); in fib_get_nhs() 723 nlav = nla_find(attrs, attrlen, RTA_VIA); in fib_get_nhs() 743 nla = nla_find(attrs, attrlen, RTA_FLOW); in fib_get_nhs() 752 fib_cfg.fc_encap = nla_find(attrs, attrlen, RTA_ENCAP); in fib_get_nhs() 756 nla = nla_find(attrs, attrlen, RTA_ENCAP_TYPE); in fib_get_nhs() 936 int attrlen; in fib_nh_match() local 944 attrlen = rtnh_attrlen(rtnh); in fib_nh_match() [all …]
|
/net/mpls/ |
D | af_mpls.c | 847 int attrlen; in mpls_count_nexthops() local 850 attrlen = rtnh_attrlen(rtnh); in mpls_count_nexthops() 851 nla = nla_find(attrs, attrlen, RTA_VIA); in mpls_count_nexthops() 862 nla = nla_find(attrs, attrlen, RTA_NEWDST); in mpls_count_nexthops() 895 int attrlen; in mpls_nh_build_multi() local 910 attrlen = rtnh_attrlen(rtnh); in mpls_nh_build_multi() 911 if (attrlen > 0) { in mpls_nh_build_multi() 914 nla_via = nla_find(attrs, attrlen, RTA_VIA); in mpls_nh_build_multi() 915 nla_newdst = nla_find(attrs, attrlen, RTA_NEWDST); in mpls_nh_build_multi()
|
/net/ipv6/ |
D | route.c | 5237 int attrlen; in ip6_route_multipath_add() local 5259 attrlen = rtnh_attrlen(rtnh); in ip6_route_multipath_add() 5260 if (attrlen > 0) { in ip6_route_multipath_add() 5263 nla = nla_find(attrs, attrlen, RTA_GATEWAY); in ip6_route_multipath_add() 5272 r_cfg.fc_encap = nla_find(attrs, attrlen, RTA_ENCAP); in ip6_route_multipath_add() 5277 nla = nla_find(attrs, attrlen, RTA_ENCAP_TYPE); in ip6_route_multipath_add() 5425 int attrlen; in ip6_route_multipath_del() local 5437 attrlen = rtnh_attrlen(rtnh); in ip6_route_multipath_del() 5438 if (attrlen > 0) { in ip6_route_multipath_del() 5441 nla = nla_find(attrs, attrlen, RTA_GATEWAY); in ip6_route_multipath_del()
|