/linux-6.1.9/lib/ ! |
D | nlattr.c | 376 int minlen = 0, attrlen = nla_len(nla), type = nla_type(nla); in validate_nla() local 390 if (nla_attr_len[pt->type] && attrlen != nla_attr_len[pt->type]) { in validate_nla() 426 if (attrlen > 0) in validate_nla() 431 if (attrlen != sizeof(struct nla_bitfield32)) in validate_nla() 441 minlen = min_t(int, attrlen, pt->len + 1); in validate_nla() 443 minlen = attrlen; in validate_nla() 452 if (attrlen < 1) in validate_nla() 458 if (buf[attrlen - 1] == '\0') in validate_nla() 459 attrlen--; in validate_nla() 461 if (attrlen > pt->len) in validate_nla() [all …]
|
/linux-6.1.9/drivers/net/ethernet/rocker/ ! |
D | rocker_tlv.c | 33 int attrtype, int attrlen, const void *data) in rocker_tlv_put() argument 36 int total_size = rocker_tlv_total_size(attrlen); in rocker_tlv_put() 45 tlv->len = rocker_tlv_attr_size(attrlen); in rocker_tlv_put() 46 memcpy(rocker_tlv_data(tlv), data, attrlen); in rocker_tlv_put() 47 memset((char *) tlv + tlv->len, 0, rocker_tlv_padlen(attrlen)); in rocker_tlv_put()
|
D | rocker_tlv.h | 136 int attrtype, int attrlen, const void *data);
|
/linux-6.1.9/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 …]
|
/linux-6.1.9/include/net/ ! |
D | netlink.h | 529 struct nlattr *__nla_reserve(struct sk_buff *skb, int attrtype, int attrlen); 531 int attrlen, int padattr); 532 void *__nla_reserve_nohdr(struct sk_buff *skb, int attrlen); 533 struct nlattr *nla_reserve(struct sk_buff *skb, int attrtype, int attrlen); 535 int attrlen, int padattr); 536 void *nla_reserve_nohdr(struct sk_buff *skb, int attrlen); 537 void __nla_put(struct sk_buff *skb, int attrtype, int attrlen, 539 void __nla_put_64bit(struct sk_buff *skb, int attrtype, int attrlen, 541 void __nla_put_nohdr(struct sk_buff *skb, int attrlen, const void *data); 542 int nla_put(struct sk_buff *skb, int attrtype, int attrlen, const void *data); [all …]
|
D | mrp.h | 17 u8 attrlen; member
|
/linux-6.1.9/include/uapi/linux/netfilter/ ! |
D | nfnetlink_compat.h | 41 #define NFA_NEXT(nfa,attrlen) ((attrlen) -= NFA_ALIGN((nfa)->nfa_len), \ argument
|
/linux-6.1.9/net/core/ ! |
D | lwtunnel.c | 194 int attrlen; in lwtunnel_valid_encap_type_attr() local 197 attrlen = rtnh_attrlen(rtnh); in lwtunnel_valid_encap_type_attr() 198 if (attrlen > 0) { in lwtunnel_valid_encap_type_attr() 200 nla_entype = nla_find(attrs, attrlen, RTA_ENCAP_TYPE); in lwtunnel_valid_encap_type_attr()
|
/linux-6.1.9/net/netfilter/ ! |
D | nfnetlink.c | 258 int attrlen = nlh->nlmsg_len - min_len; in nfnetlink_rcv_msg() local 275 attr, attrlen, in nfnetlink_rcv_msg() 496 int attrlen = nlh->nlmsg_len - min_len; in nfnetlink_rcv_batch() local 513 attr, attrlen, in nfnetlink_rcv_batch() 609 int attrlen = nlh->nlmsg_len - min_len; in nfnetlink_rcv_skb_batch() local 622 err = nla_parse_deprecated(cda, NFNL_BATCH_MAX, attr, attrlen, in nfnetlink_rcv_skb_batch()
|
/linux-6.1.9/fs/xfs/libxfs/ ! |
D | xfs_attr_remote.h | 9 int xfs_attr3_rmt_blocks(struct xfs_mount *mp, int attrlen);
|
D | xfs_attr_remote.c | 52 int attrlen) in xfs_attr3_rmt_blocks() argument 56 return (attrlen + buflen - 1) / buflen; in xfs_attr3_rmt_blocks() 58 return XFS_B_TO_FSB(mp, attrlen); in xfs_attr3_rmt_blocks()
|
/linux-6.1.9/net/ipv4/ ! |
D | fib_semantics.c | 700 int attrlen; in fib_get_nhs() local 719 attrlen = rtnh_attrlen(rtnh); in fib_get_nhs() 720 if (attrlen > 0) { in fib_get_nhs() 723 nla = nla_find(attrs, attrlen, RTA_GATEWAY); in fib_get_nhs() 724 nlav = nla_find(attrs, attrlen, RTA_VIA); in fib_get_nhs() 744 nla = nla_find(attrs, attrlen, RTA_FLOW); in fib_get_nhs() 753 fib_cfg.fc_encap = nla_find(attrs, attrlen, RTA_ENCAP); in fib_get_nhs() 757 nla = nla_find(attrs, attrlen, RTA_ENCAP_TYPE); in fib_get_nhs() 937 int attrlen; in fib_nh_match() local 945 attrlen = rtnh_attrlen(rtnh); in fib_nh_match() [all …]
|
/linux-6.1.9/fs/nfs/ ! |
D | callback_xdr.c | 108 unsigned int attrlen; in decode_bitmap() local 113 attrlen = ntohl(*p); in decode_bitmap() 114 p = xdr_inline_decode(xdr, attrlen << 2); in decode_bitmap() 117 if (likely(attrlen > 0)) in decode_bitmap() 119 if (attrlen > 1) in decode_bitmap()
|
D | nfs4xdr.c | 1611 uint32_t attrlen = 0; in encode_readdir() local 1629 attrlen = i+1; in encode_readdir() 1635 p = reserve_space(xdr, 12 + (attrlen << 2)); in encode_readdir() 1638 *p++ = cpu_to_be32(attrlen); in encode_readdir() 1639 for (i = 0; i < attrlen; i++) in encode_readdir() 3281 static int decode_attr_length(struct xdr_stream *xdr, uint32_t *attrlen, unsigned int *savep) in decode_attr_length() argument 3288 *attrlen = be32_to_cpup(p); in decode_attr_length() 4297 static int verify_attr_len(struct xdr_stream *xdr, unsigned int savep, uint32_t attrlen) in verify_attr_len() argument 4299 unsigned int attrwords = XDR_QUADLEN(attrlen); in verify_attr_len() 4444 uint32_t attrlen, bitmap[3] = {0}; in decode_server_caps() local [all …]
|
/linux-6.1.9/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()
|
/linux-6.1.9/include/uapi/linux/ ! |
D | rtnetlink.h | 223 #define RTA_NEXT(rta,attrlen) ((attrlen) -= RTA_ALIGN((rta)->rta_len), \ argument
|
/linux-6.1.9/net/ipv6/ ! |
D | route.c | 5245 int attrlen; in ip6_route_multipath_add() local 5267 attrlen = rtnh_attrlen(rtnh); in ip6_route_multipath_add() 5268 if (attrlen > 0) { in ip6_route_multipath_add() 5271 nla = nla_find(attrs, attrlen, RTA_GATEWAY); in ip6_route_multipath_add() 5280 r_cfg.fc_encap = nla_find(attrs, attrlen, RTA_ENCAP); in ip6_route_multipath_add() 5285 nla = nla_find(attrs, attrlen, RTA_ENCAP_TYPE); in ip6_route_multipath_add() 5433 int attrlen; in ip6_route_multipath_del() local 5445 attrlen = rtnh_attrlen(rtnh); in ip6_route_multipath_del() 5446 if (attrlen > 0) { in ip6_route_multipath_del() 5449 nla = nla_find(attrs, attrlen, RTA_GATEWAY); in ip6_route_multipath_del()
|
/linux-6.1.9/fs/btrfs/ ! |
D | send.c | 659 #define TLV_PUT(sctx, attrtype, data, attrlen) \ argument 661 ret = tlv_put(sctx, attrtype, data, attrlen); \
|