Home
last modified time | relevance | path

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

/linux/lib/
A Dnlattr.c412 if (attrlen > 0) in validate_nla()
429 minlen = attrlen; in validate_nla()
438 if (attrlen < 1) in validate_nla()
445 attrlen--; in validate_nla()
461 if (attrlen == 0) in validate_nla()
483 if (attrlen == 0) in validate_nla()
509 if (attrlen < pt->len) in validate_nla()
519 if (attrlen < minlen) in validate_nla()
831 while (attrlen > 0 && buf[attrlen - 1] == '\0') in nla_strcmp()
832 attrlen--; in nla_strcmp()
[all …]
/linux/drivers/net/ethernet/rocker/
A Drocker_tlv.c33 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()
A Drocker_tlv.h136 int attrtype, int attrlen, const void *data);
/linux/net/802/
A Dmrp.c368 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
395 vah = __skb_put(app->pdu, sizeof(*vah) + 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()
711 mrp_cb(skb)->mh->attrlen) < 0) in mrp_pdu_parse_vecattr()
713 *offset += mrp_cb(skb)->mh->attrlen; in mrp_pdu_parse_vecattr()
737 mrp_cb(skb)->mh->attrlen); in mrp_pdu_parse_vecattr()
747 mrp_cb(skb)->mh->attrlen); in mrp_pdu_parse_vecattr()
[all …]
/linux/include/net/
A Dnetlink.h516 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);
528 int nla_put_64bit(struct sk_buff *skb, int attrtype, int attrlen,
530 int nla_put_nohdr(struct sk_buff *skb, int attrlen, const void *data);
[all …]
A Dmrp.h13 u8 attrlen; member
/linux/include/uapi/linux/netfilter/
A Dnfnetlink_compat.h41 #define NFA_NEXT(nfa,attrlen) ((attrlen) -= NFA_ALIGN((nfa)->nfa_len), \ argument
/linux/net/core/
A Dlwtunnel.c191 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()
/linux/net/netfilter/
A Dnfnetlink.c254 int attrlen = nlh->nlmsg_len - min_len; in nfnetlink_rcv_msg() local
271 attr, attrlen, in nfnetlink_rcv_msg()
491 int attrlen = nlh->nlmsg_len - min_len; in nfnetlink_rcv_batch() local
508 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()
/linux/net/ipv4/
A Dfib_semantics.c689 int attrlen; in fib_get_nhs() local
708 attrlen = rtnh_attrlen(rtnh); in fib_get_nhs()
709 if (attrlen > 0) { in fib_get_nhs()
712 nla = nla_find(attrs, attrlen, RTA_GATEWAY); in fib_get_nhs()
713 nlav = nla_find(attrs, attrlen, RTA_VIA); in fib_get_nhs()
733 nla = nla_find(attrs, attrlen, RTA_FLOW); in fib_get_nhs()
919 int attrlen; in fib_nh_match() local
927 attrlen = rtnh_attrlen(rtnh); in fib_nh_match()
928 if (attrlen > 0) { in fib_nh_match()
933 nlav = nla_find(attrs, attrlen, RTA_VIA); in fib_nh_match()
[all …]
/linux/fs/xfs/libxfs/
A Dxfs_attr_remote.h9 int xfs_attr3_rmt_blocks(struct xfs_mount *mp, int attrlen);
A Dxfs_attr_remote.c52 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/net/decnet/
A Ddn_fib.c170 int attrlen; in dn_fib_get_nhs() local
179 attrlen = rtnh_attrlen(nhp); in dn_fib_get_nhs()
180 if (attrlen > 0) { in dn_fib_get_nhs()
183 gw_attr = nla_find((struct nlattr *) (nhp + 1), attrlen, RTA_GATEWAY); in dn_fib_get_nhs()
A Ddn_table.c252 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()
/linux/fs/nfs/
A Dcallback_xdr.c108 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()
A Dnfs4xdr.c1610 uint32_t attrlen = 0; in encode_readdir() local
1629 attrlen = i+1; in encode_readdir()
1638 *p++ = cpu_to_be32(attrlen); in encode_readdir()
1639 for (i = 0; i < attrlen; i++) in encode_readdir()
3272 *attrlen = be32_to_cpup(p); in decode_attr_length()
4395 uint32_t attrlen, bitmap[3] = {0}; in decode_server_caps() local
4427 uint32_t attrlen, bitmap[3] = {0}; in decode_statfs() local
4720 uint32_t attrlen, in decode_getfattr_generic() local
4875 uint32_t attrlen, bitmap[3]; in decode_fsinfo() local
5353 uint32_t attrlen, in decode_getacl() local
[all …]
/linux/net/mpls/
A Daf_mpls.c847 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/include/uapi/linux/
A Drtnetlink.h214 #define RTA_NEXT(rta,attrlen) ((attrlen) -= RTA_ALIGN((rta)->rta_len), \ argument
/linux/net/ipv6/
A Droute.c5252 int attrlen; in ip6_route_multipath_add() local
5274 attrlen = rtnh_attrlen(rtnh); in ip6_route_multipath_add()
5275 if (attrlen > 0) { in ip6_route_multipath_add()
5278 nla = nla_find(attrs, attrlen, RTA_GATEWAY); in ip6_route_multipath_add()
5287 r_cfg.fc_encap = nla_find(attrs, attrlen, RTA_ENCAP); in ip6_route_multipath_add()
5292 nla = nla_find(attrs, attrlen, RTA_ENCAP_TYPE); in ip6_route_multipath_add()
5440 int attrlen; in ip6_route_multipath_del() local
5452 attrlen = rtnh_attrlen(rtnh); in ip6_route_multipath_del()
5453 if (attrlen > 0) { in ip6_route_multipath_del()
5456 nla = nla_find(attrs, attrlen, RTA_GATEWAY); in ip6_route_multipath_del()
/linux/fs/nfsd/
A Dnfs4xdr.c2836 __be32 attrlen; in nfsd4_encode_fattr() local
3339 attrlen = htonl(xdr->buf->len - attrlen_offset - 4); in nfsd4_encode_fattr()
3340 write_bytes_to_xdr_buf(xdr->buf, attrlen_offset, &attrlen, 4); in nfsd4_encode_fattr()
/linux/fs/btrfs/
A Dsend.c635 #define TLV_PUT(sctx, attrtype, data, attrlen) \ argument
637 ret = tlv_put(sctx, attrtype, data, attrlen); \

Completed in 82 milliseconds