Home
last modified time | relevance | path

Searched refs:attrtype (Results 1 – 25 of 41) sorted by relevance

12

/linux/include/net/
A Dnetlink.h805 int hdrlen, int attrtype) in nlmsg_find_attr() argument
808 nlmsg_attrlen(nlh, hdrlen), attrtype); in nlmsg_find_attr()
1246 return nla_put(skb, attrtype, sizeof(u8), &tmp); in nla_put_u8()
1259 return nla_put(skb, attrtype, sizeof(u16), &tmp); in nla_put_u16()
1311 return nla_put(skb, attrtype, sizeof(u32), &tmp); in nla_put_u32()
1424 return nla_put(skb, attrtype, sizeof(s8), &tmp); in nla_put_s8()
1437 return nla_put(skb, attrtype, sizeof(s16), &tmp); in nla_put_s16()
1487 return nla_put(skb, attrtype, 0, NULL); in nla_put_flag()
1517 return nla_put_be32(skb, attrtype, tmp); in nla_put_in_addr()
1763 int attrtype) in nla_nest_start_noflag() argument
[all …]
A Dife.h14 void *ife_tlv_meta_decode(void *skbdata, const void *ifehdr_end, u16 *attrtype,
16 int ife_tlv_meta_encode(void *skbdata, u16 attrtype, u16 dlen,
33 static inline void *ife_tlv_meta_decode(void *skbdata, u16 *attrtype, u16 *dlen, in ife_tlv_meta_decode() argument
39 static inline int ife_tlv_meta_encode(void *skbdata, u16 attrtype, u16 dlen, in ife_tlv_meta_encode() argument
A Dgarp.h15 u8 attrtype; member
A Dvxlan.h463 static inline void vxlan_flag_attr_error(int attrtype, in vxlan_flag_attr_error() argument
471 switch (attrtype) { in vxlan_flag_attr_error()
A Dmrp.h12 u8 attrtype; member
/linux/drivers/net/ethernet/rocker/
A Drocker_tlv.h136 int attrtype, int attrlen, const void *data);
139 rocker_tlv_put_u8(struct rocker_desc_info *desc_info, int attrtype, u8 value) in rocker_tlv_put_u8() argument
143 return rocker_tlv_put(desc_info, attrtype, sizeof(u8), &tmp); in rocker_tlv_put_u8()
147 rocker_tlv_put_u16(struct rocker_desc_info *desc_info, int attrtype, u16 value) in rocker_tlv_put_u16() argument
151 return rocker_tlv_put(desc_info, attrtype, sizeof(u16), &tmp); in rocker_tlv_put_u16()
159 return rocker_tlv_put(desc_info, attrtype, sizeof(__be16), &tmp); in rocker_tlv_put_be16()
167 return rocker_tlv_put(desc_info, attrtype, sizeof(u32), &tmp); in rocker_tlv_put_u32()
175 return rocker_tlv_put(desc_info, attrtype, sizeof(__be32), &tmp); in rocker_tlv_put_be32()
183 return rocker_tlv_put(desc_info, attrtype, sizeof(u64), &tmp); in rocker_tlv_put_u64()
187 rocker_tlv_nest_start(struct rocker_desc_info *desc_info, int attrtype) in rocker_tlv_nest_start() argument
[all …]
A Drocker_tlv.c33 int attrtype, int attrlen, const void *data) in rocker_tlv_put() argument
44 tlv->type = attrtype; in rocker_tlv_put()
/linux/lib/
A Dnlattr.c704 if (nla_type(nla) == attrtype) in nla_find()
860 nla->nla_type = attrtype; in __nla_reserve()
888 return __nla_reserve(skb, attrtype, attrlen); in __nla_reserve_64bit()
925 return __nla_reserve(skb, attrtype, attrlen); in nla_reserve()
955 return __nla_reserve_64bit(skb, attrtype, attrlen, padattr); in nla_reserve_64bit()
988 void __nla_put(struct sk_buff *skb, int attrtype, int attrlen, in __nla_put() argument
993 nla = __nla_reserve(skb, attrtype, attrlen); in __nla_put()
1014 nla = __nla_reserve_64bit(skb, attrtype, attrlen, padattr); in __nla_put_64bit()
1052 __nla_put(skb, attrtype, attrlen, data); in nla_put()
1068 int nla_put_64bit(struct sk_buff *skb, int attrtype, int attrlen, in nla_put_64bit() argument
[all …]
/linux/net/ife/
A Dife.c126 void *ife_tlv_meta_decode(void *skbdata, const void *ifehdr_end, u16 *attrtype, in ife_tlv_meta_decode() argument
136 *attrtype = ntohs(tlv->type); in ife_tlv_meta_decode()
158 int ife_tlv_meta_encode(void *skbdata, u16 attrtype, u16 dlen, const void *dval) in ife_tlv_meta_encode() argument
163 u32 htlv = attrtype << 16 | (dlen + NLA_HDRLEN); in ife_tlv_meta_encode()
/linux/net/core/
A Dsock_diag.c61 int sock_diag_put_meminfo(struct sock *sk, struct sk_buff *skb, int attrtype) in sock_diag_put_meminfo() argument
67 return nla_put(skb, attrtype, sizeof(mem), &mem); in sock_diag_put_meminfo()
72 struct sk_buff *skb, int attrtype) in sock_diag_put_filterinfo() argument
81 nla_reserve(skb, attrtype, 0); in sock_diag_put_filterinfo()
96 attr = nla_reserve(skb, attrtype, flen); in sock_diag_put_filterinfo()
/linux/net/802/
A Dgarp.c275 static int garp_pdu_append_msg(struct garp_applicant *app, u8 attrtype) in garp_pdu_append_msg() argument
282 gm->attrtype = attrtype; in garp_pdu_append_msg()
283 garp_cb(app->pdu)->cur_type = attrtype; in garp_pdu_append_msg()
439 u8 attrtype) in garp_pdu_parse_attr() argument
457 if (attrtype > app->app->maxattr) in garp_pdu_parse_attr()
484 attr = garp_attr_lookup(app, ga->data, dlen, attrtype); in garp_pdu_parse_attr()
498 if (gm->attrtype == 0) in garp_pdu_parse_msg()
503 if (garp_pdu_parse_attr(app, skb, gm->attrtype) < 0) in garp_pdu_parse_msg()
A Dmrp.c368 u8 attrtype, u8 attrlen) in mrp_pdu_append_msg_hdr() argument
382 mh->attrtype = attrtype; in mrp_pdu_append_msg_hdr()
422 mrp_cb(app->pdu)->mh->attrtype != attr->type || in mrp_pdu_append_vecattr_event()
652 mrp_cb(skb)->mh->attrtype); in mrp_pdu_parse_vecattr_event()
765 if (mrp_cb(skb)->mh->attrtype == 0 || in mrp_pdu_parse_msg()
766 mrp_cb(skb)->mh->attrtype > app->app->maxattr || in mrp_pdu_parse_msg()
/linux/drivers/block/drbd/
A Ddrbd_nla.c44 struct nlattr *drbd_nla_find_nested(int maxtype, struct nlattr *nla, int attrtype) in drbd_nla_find_nested() argument
55 return nla_find_nested(nla, attrtype); in drbd_nla_find_nested()
A Ddrbd_nla.h7 extern struct nlattr *drbd_nla_find_nested(int maxtype, struct nlattr *nla, int attrtype);
/linux/net/ethtool/
A Dbitset.h16 int ethnl_put_bitset(struct sk_buff *skb, int attrtype,
20 int ethnl_put_bitset32(struct sk_buff *skb, int attrtype, const u32 *val,
A Dbitset.c232 int ethnl_put_bitset32(struct sk_buff *skb, int attrtype, const u32 *val, in ethnl_put_bitset32() argument
239 nest = nla_nest_start(skb, attrtype); in ethnl_put_bitset32()
734 int ethnl_put_bitset(struct sk_buff *skb, int attrtype, in ethnl_put_bitset() argument
762 ret = ethnl_put_bitset32(skb, attrtype, val32, mask32, nbits, names, in ethnl_put_bitset()
816 int ethnl_put_bitset(struct sk_buff *skb, int attrtype, in ethnl_put_bitset() argument
821 return ethnl_put_bitset32(skb, attrtype, (const u32 *)val, in ethnl_put_bitset()
A Dnetlink.h18 u16 attrtype);
47 static inline int ethnl_put_strz(struct sk_buff *skb, u16 attrtype, in ethnl_put_strz() argument
53 attr = nla_reserve(skb, attrtype, len + 1); in ethnl_put_strz()
A Dpause.c63 static int ethtool_put_stat(struct sk_buff *skb, u64 val, u16 attrtype, in ethtool_put_stat() argument
68 if (nla_put_u64_64bit(skb, attrtype, val, padtype)) in ethtool_put_stat()
/linux/net/batman-adv/
A Dnetlink.h18 int batadv_netlink_get_ifindex(const struct nlmsghdr *nlh, int attrtype);
/linux/include/linux/
A Dgenl_magic_struct.h66 static inline int nla_put_u64_0pad(struct sk_buff *skb, int attrtype, u64 value) in nla_put_u64_0pad() argument
68 return nla_put_64bit(skb, attrtype, sizeof(u64), &value, 0); in nla_put_u64_0pad()
A Dsock_diag.h46 struct sk_buff *skb, int attrtype);
/linux/drivers/net/
A Dgeneve.c1415 int attrtype; in geneve_nl2info() local
1425 attrtype = IFLA_GENEVE_REMOTE; in geneve_nl2info()
1442 attrtype = IFLA_GENEVE_REMOTE6; in geneve_nl2info()
1482 attrtype = IFLA_GENEVE_ID; in geneve_nl2info()
1516 attrtype = IFLA_GENEVE_PORT; in geneve_nl2info()
1524 attrtype = IFLA_GENEVE_COLLECT_METADATA; in geneve_nl2info()
1532 attrtype = IFLA_GENEVE_UDP_CSUM; in geneve_nl2info()
1542 attrtype = IFLA_GENEVE_UDP_ZERO_CSUM6_TX; in geneve_nl2info()
1557 attrtype = IFLA_GENEVE_UDP_ZERO_CSUM6_RX; in geneve_nl2info()
1571 NL_SET_ERR_MSG_ATTR(extack, data[attrtype], in geneve_nl2info()
/linux/drivers/infiniband/core/
A Daddr.c156 int attrtype; in ib_nl_ip_send_msg() local
161 attrtype = RDMA_NLA_F_MANDATORY | LS_NLA_TYPE_IPV4; in ib_nl_ip_send_msg()
164 attrtype = RDMA_NLA_F_MANDATORY | LS_NLA_TYPE_IPV6; in ib_nl_ip_send_msg()
184 nla_put(skb, attrtype, size, daddr); in ib_nl_ip_send_msg()
/linux/net/openvswitch/
A Dflow_netlink.h60 int ovs_nla_add_action(struct sw_flow_actions **sfa, int attrtype,
/linux/net/ipv6/
A Drpl_iptunnel.c297 static int nla_put_rpl_srh(struct sk_buff *skb, int attrtype, in nla_put_rpl_srh() argument
306 nla = nla_reserve(skb, attrtype, len); in nla_put_rpl_srh()

Completed in 34 milliseconds

12