Home
last modified time | relevance | path

Searched refs:attrlen (Results 1 – 6 of 6) sorted by relevance

/net/802/
Dmrp.c358 u8 attrtype, u8 attrlen) in mrp_pdu_append_msg_hdr() argument
373 mh->attrlen = attrlen; in mrp_pdu_append_msg_hdr()
379 const void *firstattrvalue, u8 attrlen) in mrp_pdu_append_vecattr_hdr() argument
383 if (skb_tailroom(app->pdu) < sizeof(*vah) + attrlen) in mrp_pdu_append_vecattr_hdr()
386 sizeof(*vah) + attrlen); in mrp_pdu_append_vecattr_hdr()
388 memcpy(vah->firstattrvalue, firstattrvalue, attrlen); in mrp_pdu_append_vecattr_hdr()
390 memcpy(mrp_cb(app->pdu)->attrvalue, firstattrvalue, attrlen); in mrp_pdu_append_vecattr_hdr()
414 mrp_cb(app->pdu)->mh->attrlen != attr->len) { in mrp_pdu_append_vecattr_event()
642 mrp_cb(skb)->mh->attrlen, in mrp_pdu_parse_vecattr_event()
698 if (sizeof(struct mrp_skb_cb) + mrp_cb(skb)->mh->attrlen > in mrp_pdu_parse_vecattr()
[all …]
/net/ipv4/
Dfib_semantics.c474 int attrlen; in fib_get_nhs() local
484 attrlen = rtnh_attrlen(rtnh); in fib_get_nhs()
485 if (attrlen > 0) { in fib_get_nhs()
488 nla = nla_find(attrs, attrlen, RTA_GATEWAY); in fib_get_nhs()
491 nla = nla_find(attrs, attrlen, RTA_FLOW); in fib_get_nhs()
531 int attrlen; in fib_nh_match() local
539 attrlen = rtnh_attrlen(rtnh); in fib_nh_match()
540 if (attrlen > 0) { in fib_nh_match()
543 nla = nla_find(attrs, attrlen, RTA_GATEWAY); in fib_nh_match()
547 nla = nla_find(attrs, attrlen, RTA_FLOW); in fib_nh_match()
/net/netfilter/
Dnfnetlink.c193 int attrlen = nlh->nlmsg_len - min_len; in nfnetlink_rcv_msg() local
197 attr, attrlen, ss->cb[cb_id].policy); in nfnetlink_rcv_msg()
371 int attrlen = nlh->nlmsg_len - min_len; in nfnetlink_rcv_batch() local
374 attr, attrlen, ss->cb[cb_id].policy); in nfnetlink_rcv_batch()
/net/decnet/
Ddn_fib.c170 int attrlen = nhlen - sizeof(struct rtnexthop); in dn_fib_get_nhs() local
171 if (attrlen < 0 || (nhlen -= nhp->rtnh_len) < 0) in dn_fib_get_nhs()
178 if (attrlen) { in dn_fib_get_nhs()
181 gw_attr = nla_find((struct nlattr *) (nhp + 1), attrlen, RTA_GATEWAY); in dn_fib_get_nhs()
Ddn_table.c249 int attrlen = nhlen - sizeof(struct rtnexthop); in dn_fib_nh_match() local
252 if (attrlen < 0 || (nhlen -= nhp->rtnh_len) < 0) in dn_fib_nh_match()
256 if (attrlen) { in dn_fib_nh_match()
259 gw_attr = nla_find((struct nlattr *) (nhp + 1), attrlen, RTA_GATEWAY); in dn_fib_nh_match()
/net/ipv6/
Droute.c2424 int attrlen; in ip6_route_multipath() local
2437 attrlen = rtnh_attrlen(rtnh); in ip6_route_multipath()
2438 if (attrlen > 0) { in ip6_route_multipath()
2441 nla = nla_find(attrs, attrlen, RTA_GATEWAY); in ip6_route_multipath()