Home
last modified time | relevance | path

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

/linux-4.19.296/lib/
Dnlattr.c75 int minlen = 0, attrlen = nla_len(nla), type = nla_type(nla); in validate_nla() local
84 if (nla_attr_len[pt->type] && attrlen != nla_attr_len[pt->type]) { in validate_nla()
91 if (attrlen > 0) in validate_nla()
96 if (attrlen != sizeof(struct nla_bitfield32)) in validate_nla()
103 minlen = min_t(int, attrlen, pt->len + 1); in validate_nla()
105 minlen = attrlen; in validate_nla()
112 if (attrlen < 1) in validate_nla()
118 if (buf[attrlen - 1] == '\0') in validate_nla()
119 attrlen--; in validate_nla()
121 if (attrlen > pt->len) in validate_nla()
[all …]
/linux-4.19.296/include/net/
Dnetlink.h259 struct nlattr *__nla_reserve(struct sk_buff *skb, int attrtype, int attrlen);
261 int attrlen, int padattr);
262 void *__nla_reserve_nohdr(struct sk_buff *skb, int attrlen);
263 struct nlattr *nla_reserve(struct sk_buff *skb, int attrtype, int attrlen);
265 int attrlen, int padattr);
266 void *nla_reserve_nohdr(struct sk_buff *skb, int attrlen);
267 void __nla_put(struct sk_buff *skb, int attrtype, int attrlen,
269 void __nla_put_64bit(struct sk_buff *skb, int attrtype, int attrlen,
271 void __nla_put_nohdr(struct sk_buff *skb, int attrlen, const void *data);
272 int nla_put(struct sk_buff *skb, int attrtype, int attrlen, const void *data);
[all …]
Dmrp.h13 u8 attrlen; member
/linux-4.19.296/include/uapi/linux/netfilter/
Dnfnetlink_compat.h41 #define NFA_NEXT(nfa,attrlen) ((attrlen) -= NFA_ALIGN((nfa)->nfa_len), \ argument
/linux-4.19.296/fs/xfs/libxfs/
Dxfs_attr_remote.h9 int xfs_attr3_rmt_blocks(struct xfs_mount *mp, int attrlen);
Dxfs_attr_remote.c42 int attrlen) in xfs_attr3_rmt_blocks() argument
46 return (attrlen + buflen - 1) / buflen; in xfs_attr3_rmt_blocks()
48 return XFS_B_TO_FSB(mp, attrlen); in xfs_attr3_rmt_blocks()
/linux-4.19.296/fs/nfs/
Dcallback_xdr.c118 unsigned int attrlen; in decode_bitmap() local
123 attrlen = ntohl(*p); in decode_bitmap()
124 p = read_buf(xdr, attrlen << 2); in decode_bitmap()
127 if (likely(attrlen > 0)) in decode_bitmap()
129 if (attrlen > 1) in decode_bitmap()
Dnfs4xdr.c1598 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()
3265 static int decode_attr_length(struct xdr_stream *xdr, uint32_t *attrlen, unsigned int *savep) in decode_attr_length() argument
3272 *attrlen = be32_to_cpup(p); in decode_attr_length()
4323 static int verify_attr_len(struct xdr_stream *xdr, unsigned int savep, uint32_t attrlen) in verify_attr_len() argument
4325 unsigned int attrwords = XDR_QUADLEN(attrlen); in verify_attr_len()
4480 uint32_t attrlen, bitmap[3] = {0}; in decode_server_caps() local
[all …]
/linux-4.19.296/include/uapi/linux/
Drtnetlink.h186 #define RTA_NEXT(rta,attrlen) ((attrlen) -= RTA_ALIGN((rta)->rta_len), \ argument
/linux-4.19.296/fs/nfsd/
Dnfs4xdr.c2409 __be32 attrlen; in nfsd4_encode_fattr() local
2913 attrlen = htonl(xdr->buf->len - attrlen_offset - 4); in nfsd4_encode_fattr()
2914 write_bytes_to_xdr_buf(xdr->buf, attrlen_offset, &attrlen, 4); in nfsd4_encode_fattr()
/linux-4.19.296/fs/btrfs/
Dsend.c615 #define TLV_PUT(sctx, attrtype, data, attrlen) \ argument
617 ret = tlv_put(sctx, attrtype, data, attrlen); \