/kernel/linux/linux-5.10/lib/ |
D | nlattr.c | 363 int minlen = 0, attrlen = nla_len(nla), type = nla_type(nla); in validate_nla() local 376 if (nla_attr_len[pt->type] && attrlen != nla_attr_len[pt->type]) { in validate_nla() 412 if (attrlen > 0) in validate_nla() 417 if (attrlen != sizeof(struct nla_bitfield32)) in validate_nla() 427 minlen = min_t(int, attrlen, pt->len + 1); in validate_nla() 429 minlen = attrlen; in validate_nla() 438 if (attrlen < 1) in validate_nla() 444 if (buf[attrlen - 1] == '\0') in validate_nla() 445 attrlen--; in validate_nla() 447 if (attrlen > pt->len) in validate_nla() [all …]
|
/kernel/linux/linux-5.10/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);
|
/kernel/liteos_a/drivers/char/perf/src/ |
D | perf.c | 96 int attrlen = sizeof(PerfConfigAttr); in PerfConfig() local 98 if (buflen != attrlen) { in PerfConfig() 99 PRINT_ERR("PerfConfigAttr is %d bytes not %d\n", attrlen, buflen); in PerfConfig() 103 ret = LOS_CopyToKernel(&attr, attrlen, buffer, buflen); in PerfConfig()
|
/kernel/linux/linux-5.10/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() 651 mrp_cb(skb)->mh->attrlen, in mrp_pdu_parse_vecattr_event() 707 if (sizeof(struct mrp_skb_cb) + mrp_cb(skb)->mh->attrlen > in mrp_pdu_parse_vecattr() [all …]
|
/kernel/linux/linux-5.10/include/net/ |
D | netlink.h | 514 struct nlattr *__nla_reserve(struct sk_buff *skb, int attrtype, int attrlen); 516 int attrlen, int padattr); 517 void *__nla_reserve_nohdr(struct sk_buff *skb, int attrlen); 518 struct nlattr *nla_reserve(struct sk_buff *skb, int attrtype, int attrlen); 520 int attrlen, int padattr); 521 void *nla_reserve_nohdr(struct sk_buff *skb, int attrlen); 522 void __nla_put(struct sk_buff *skb, int attrtype, int attrlen, 524 void __nla_put_64bit(struct sk_buff *skb, int attrtype, int attrlen, 526 void __nla_put_nohdr(struct sk_buff *skb, int attrlen, const void *data); 527 int nla_put(struct sk_buff *skb, int attrtype, int attrlen, const void *data); [all …]
|
D | mrp.h | 13 u8 attrlen; member
|
/kernel/linux/patches/linux-4.19/prebuilts/usr/include/linux/netfilter/ |
D | nfnetlink_compat.h | 26 #define NFA_NEXT(nfa,attrlen) ((attrlen) -= NFA_ALIGN((nfa)->nfa_len), \ argument
|
/kernel/linux/patches/linux-5.10/prebuilts/usr/include/linux/netfilter/ |
D | nfnetlink_compat.h | 37 #define NFA_NEXT(nfa,attrlen) ((attrlen) -= NFA_ALIGN((nfa)->nfa_len), (struct nfattr *) (((char *)… argument
|
/kernel/linux/linux-5.10/include/uapi/linux/netfilter/ |
D | nfnetlink_compat.h | 41 #define NFA_NEXT(nfa,attrlen) ((attrlen) -= NFA_ALIGN((nfa)->nfa_len), \ argument
|
/kernel/linux/linux-5.10/net/core/ |
D | lwtunnel.c | 186 int attrlen; in lwtunnel_valid_encap_type_attr() local 189 attrlen = rtnh_attrlen(rtnh); in lwtunnel_valid_encap_type_attr() 190 if (attrlen > 0) { in lwtunnel_valid_encap_type_attr() 192 nla_entype = nla_find(attrs, attrlen, RTA_ENCAP_TYPE); in lwtunnel_valid_encap_type_attr()
|
/kernel/linux/linux-5.10/net/netfilter/ |
D | nfnetlink.c | 223 int attrlen = nlh->nlmsg_len - min_len; in nfnetlink_rcv_msg() local 233 attr, attrlen, in nfnetlink_rcv_msg() 440 int attrlen = nlh->nlmsg_len - min_len; in nfnetlink_rcv_batch() local 450 attr, attrlen, in nfnetlink_rcv_batch() 550 int attrlen = nlh->nlmsg_len - min_len; in nfnetlink_rcv_skb_batch() local 563 err = nla_parse_deprecated(cda, NFNL_BATCH_MAX, attr, attrlen, in nfnetlink_rcv_skb_batch()
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/net/ipv4/ |
D | fib_semantics.c | 697 int attrlen; in fib_get_nhs() local 716 attrlen = rtnh_attrlen(rtnh); in fib_get_nhs() 717 if (attrlen > 0) { in fib_get_nhs() 720 nla = nla_find(attrs, attrlen, RTA_GATEWAY); in fib_get_nhs() 721 nlav = nla_find(attrs, attrlen, RTA_VIA); in fib_get_nhs() 741 nla = nla_find(attrs, attrlen, RTA_FLOW); in fib_get_nhs() 750 fib_cfg.fc_encap = nla_find(attrs, attrlen, RTA_ENCAP); in fib_get_nhs() 754 nla = nla_find(attrs, attrlen, RTA_ENCAP_TYPE); in fib_get_nhs() 932 int attrlen; in fib_nh_match() local 940 attrlen = rtnh_attrlen(rtnh); in fib_nh_match() [all …]
|
/kernel/linux/linux-5.10/net/decnet/ |
D | dn_fib.c | 171 int attrlen; in dn_fib_get_nhs() local 180 attrlen = rtnh_attrlen(nhp); in dn_fib_get_nhs() 181 if (attrlen > 0) { in dn_fib_get_nhs() 184 gw_attr = nla_find((struct nlattr *) (nhp + 1), attrlen, RTA_GATEWAY); in dn_fib_get_nhs()
|
D | dn_table.c | 252 int attrlen = nhlen - sizeof(struct rtnexthop); in dn_fib_nh_match() local 255 if (attrlen < 0 || (nhlen -= nhp->rtnh_len) < 0) in dn_fib_nh_match() 259 if (attrlen) { in dn_fib_nh_match() 262 gw_attr = nla_find((struct nlattr *) (nhp + 1), attrlen, RTA_GATEWAY); in dn_fib_nh_match()
|
/kernel/linux/linux-5.10/fs/nfs/ |
D | callback_xdr.c | 109 unsigned int attrlen; in decode_bitmap() local 114 attrlen = ntohl(*p); in decode_bitmap() 115 p = xdr_inline_decode(xdr, attrlen << 2); in decode_bitmap() 118 if (likely(attrlen > 0)) in decode_bitmap() 120 if (attrlen > 1) in decode_bitmap()
|
D | nfs4xdr.c | 1598 uint32_t attrlen = 0; in encode_readdir() local 1617 attrlen = i+1; in encode_readdir() 1623 p = reserve_space(xdr, 12 + (attrlen << 2)); in encode_readdir() 1626 *p++ = cpu_to_be32(attrlen); in encode_readdir() 1627 for (i = 0; i < attrlen; i++) in encode_readdir() 3252 static int decode_attr_length(struct xdr_stream *xdr, uint32_t *attrlen, unsigned int *savep) in decode_attr_length() argument 3259 *attrlen = be32_to_cpup(p); in decode_attr_length() 4232 static int verify_attr_len(struct xdr_stream *xdr, unsigned int savep, uint32_t attrlen) in verify_attr_len() argument 4234 unsigned int attrwords = XDR_QUADLEN(attrlen); in verify_attr_len() 4379 uint32_t attrlen, bitmap[3] = {0}; in decode_server_caps() local [all …]
|
/kernel/linux/linux-5.10/include/uapi/linux/ |
D | rtnetlink.h | 207 #define RTA_NEXT(rta,attrlen) ((attrlen) -= RTA_ALIGN((rta)->rta_len), \ argument
|
/kernel/linux/patches/linux-4.19/prebuilts/usr/include/linux/ |
D | rtnetlink.h | 144 #define RTA_NEXT(rta,attrlen) ((attrlen) -= RTA_ALIGN((rta)->rta_len), \ argument
|
/kernel/linux/patches/linux-5.10/prebuilts/usr/include/linux/ |
D | rtnetlink.h | 173 #define RTA_NEXT(rta,attrlen) ((attrlen) -= RTA_ALIGN((rta)->rta_len), (struct rtattr *) (((char *)… argument
|
/kernel/linux/linux-5.10/net/mpls/ |
D | af_mpls.c | 845 int attrlen; in mpls_count_nexthops() local 848 attrlen = rtnh_attrlen(rtnh); in mpls_count_nexthops() 849 nla = nla_find(attrs, attrlen, RTA_VIA); in mpls_count_nexthops() 860 nla = nla_find(attrs, attrlen, RTA_NEWDST); in mpls_count_nexthops() 893 int attrlen; in mpls_nh_build_multi() local 908 attrlen = rtnh_attrlen(rtnh); in mpls_nh_build_multi() 909 if (attrlen > 0) { in mpls_nh_build_multi() 912 nla_via = nla_find(attrs, attrlen, RTA_VIA); in mpls_nh_build_multi() 913 nla_newdst = nla_find(attrs, attrlen, RTA_NEWDST); in mpls_nh_build_multi()
|
/kernel/linux/linux-5.10/net/ipv6/ |
D | route.c | 5141 int attrlen; in ip6_route_multipath_add() local 5163 attrlen = rtnh_attrlen(rtnh); in ip6_route_multipath_add() 5164 if (attrlen > 0) { in ip6_route_multipath_add() 5167 nla = nla_find(attrs, attrlen, RTA_GATEWAY); in ip6_route_multipath_add() 5176 r_cfg.fc_encap = nla_find(attrs, attrlen, RTA_ENCAP); in ip6_route_multipath_add() 5181 nla = nla_find(attrs, attrlen, RTA_ENCAP_TYPE); in ip6_route_multipath_add() 5329 int attrlen; in ip6_route_multipath_del() local 5341 attrlen = rtnh_attrlen(rtnh); in ip6_route_multipath_del() 5342 if (attrlen > 0) { in ip6_route_multipath_del() 5345 nla = nla_find(attrs, attrlen, RTA_GATEWAY); in ip6_route_multipath_del()
|
/kernel/linux/linux-5.10/fs/nfsd/ |
D | nfs4xdr.c | 2712 __be32 attrlen; in nfsd4_encode_fattr() local 3225 attrlen = htonl(xdr->buf->len - attrlen_offset - 4); in nfsd4_encode_fattr() 3226 write_bytes_to_xdr_buf(xdr->buf, attrlen_offset, &attrlen, 4); in nfsd4_encode_fattr()
|