Home
last modified time | relevance | path

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

12

/Linux-v4.19/include/net/
Dnetlink.h253 struct nlattr *nla_find(const struct nlattr *head, int len, int attrtype);
259 struct nlattr *__nla_reserve(struct sk_buff *skb, int attrtype, int attrlen);
260 struct nlattr *__nla_reserve_64bit(struct sk_buff *skb, int attrtype,
263 struct nlattr *nla_reserve(struct sk_buff *skb, int attrtype, int attrlen);
264 struct nlattr *nla_reserve_64bit(struct sk_buff *skb, int attrtype,
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,
272 int nla_put(struct sk_buff *skb, int attrtype, int attrlen, const void *data);
273 int nla_put_64bit(struct sk_buff *skb, int attrtype, int attrlen,
411 int hdrlen, int attrtype) in nlmsg_find_attr() argument
[all …]
Dife.h15 void *ife_tlv_meta_decode(void *skbdata, const void *ifehdr_end, u16 *attrtype,
17 int ife_tlv_meta_encode(void *skbdata, u16 attrtype, u16 dlen,
34 static inline void *ife_tlv_meta_decode(void *skbdata, u16 *attrtype, u16 *dlen, in ife_tlv_meta_decode() argument
40 static inline int ife_tlv_meta_encode(void *skbdata, u16 attrtype, u16 dlen, in ife_tlv_meta_encode() argument
Dgarp.h15 u8 attrtype; member
Dmrp.h12 u8 attrtype; member
/Linux-v4.19/drivers/net/ethernet/rocker/
Drocker_tlv.h140 int attrtype, int attrlen, const void *data);
143 rocker_tlv_put_u8(struct rocker_desc_info *desc_info, int attrtype, u8 value) in rocker_tlv_put_u8() argument
147 return rocker_tlv_put(desc_info, attrtype, sizeof(u8), &tmp); in rocker_tlv_put_u8()
151 rocker_tlv_put_u16(struct rocker_desc_info *desc_info, int attrtype, u16 value) in rocker_tlv_put_u16() argument
155 return rocker_tlv_put(desc_info, attrtype, sizeof(u16), &tmp); in rocker_tlv_put_u16()
159 rocker_tlv_put_be16(struct rocker_desc_info *desc_info, int attrtype, __be16 value) in rocker_tlv_put_be16() argument
163 return rocker_tlv_put(desc_info, attrtype, sizeof(__be16), &tmp); in rocker_tlv_put_be16()
167 rocker_tlv_put_u32(struct rocker_desc_info *desc_info, int attrtype, u32 value) in rocker_tlv_put_u32() argument
171 return rocker_tlv_put(desc_info, attrtype, sizeof(u32), &tmp); in rocker_tlv_put_u32()
175 rocker_tlv_put_be32(struct rocker_desc_info *desc_info, int attrtype, __be32 value) in rocker_tlv_put_be32() argument
[all …]
Drocker_tlv.c37 int attrtype, int attrlen, const void *data) in rocker_tlv_put() argument
48 tlv->type = attrtype; in rocker_tlv_put()
/Linux-v4.19/lib/
Dnlattr.c284 struct nlattr *nla_find(const struct nlattr *head, int len, int attrtype) in nla_find() argument
290 if (nla_type(nla) == attrtype) in nla_find()
429 struct nlattr *__nla_reserve(struct sk_buff *skb, int attrtype, int attrlen) in __nla_reserve() argument
434 nla->nla_type = attrtype; in __nla_reserve()
457 struct nlattr *__nla_reserve_64bit(struct sk_buff *skb, int attrtype, in __nla_reserve_64bit() argument
463 return __nla_reserve(skb, attrtype, attrlen); in __nla_reserve_64bit()
495 struct nlattr *nla_reserve(struct sk_buff *skb, int attrtype, int attrlen) in nla_reserve() argument
500 return __nla_reserve(skb, attrtype, attrlen); in nla_reserve()
518 struct nlattr *nla_reserve_64bit(struct sk_buff *skb, int attrtype, int attrlen, in nla_reserve_64bit() argument
530 return __nla_reserve_64bit(skb, attrtype, attrlen, padattr); in nla_reserve_64bit()
[all …]
/Linux-v4.19/net/ife/
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-v4.19/drivers/block/drbd/
Ddrbd_nla.c43 struct nlattr *drbd_nla_find_nested(int maxtype, struct nlattr *nla, int attrtype) in drbd_nla_find_nested() argument
54 return nla_find_nested(nla, attrtype); in drbd_nla_find_nested()
Ddrbd_nla.h7 extern struct nlattr *drbd_nla_find_nested(int maxtype, struct nlattr *nla, int attrtype);
/Linux-v4.19/net/core/
Dsock_diag.c59 int sock_diag_put_meminfo(struct sock *sk, struct sk_buff *skb, int attrtype) in sock_diag_put_meminfo() argument
65 return nla_put(skb, attrtype, sizeof(mem), &mem); in sock_diag_put_meminfo()
70 struct sk_buff *skb, int attrtype) in sock_diag_put_filterinfo() argument
79 nla_reserve(skb, attrtype, 0); in sock_diag_put_filterinfo()
94 attr = nla_reserve(skb, attrtype, flen); in sock_diag_put_filterinfo()
/Linux-v4.19/net/802/
Dgarp.c265 static int garp_pdu_append_msg(struct garp_applicant *app, u8 attrtype) in garp_pdu_append_msg() argument
272 gm->attrtype = attrtype; in garp_pdu_append_msg()
273 garp_cb(app->pdu)->cur_type = attrtype; in garp_pdu_append_msg()
429 u8 attrtype) in garp_pdu_parse_attr() argument
447 if (attrtype > app->app->maxattr) in garp_pdu_parse_attr()
474 attr = garp_attr_lookup(app, ga->data, dlen, attrtype); in garp_pdu_parse_attr()
488 if (gm->attrtype == 0) in garp_pdu_parse_msg()
493 if (garp_pdu_parse_attr(app, skb, gm->attrtype) < 0) in garp_pdu_parse_msg()
Dmrp.c358 u8 attrtype, u8 attrlen) in mrp_pdu_append_msg_hdr() argument
372 mh->attrtype = attrtype; in mrp_pdu_append_msg_hdr()
412 mrp_cb(app->pdu)->mh->attrtype != attr->type || in mrp_pdu_append_vecattr_event()
642 mrp_cb(skb)->mh->attrtype); in mrp_pdu_parse_vecattr_event()
755 if (mrp_cb(skb)->mh->attrtype == 0 || in mrp_pdu_parse_msg()
756 mrp_cb(skb)->mh->attrtype > app->app->maxattr || in mrp_pdu_parse_msg()
/Linux-v4.19/net/batman-adv/
Dnetlink.h31 int batadv_netlink_get_ifindex(const struct nlmsghdr *nlh, int attrtype);
Dnetlink.c117 batadv_netlink_get_ifindex(const struct nlmsghdr *nlh, int attrtype) in batadv_netlink_get_ifindex() argument
119 struct nlattr *attr = nlmsg_find_attr(nlh, GENL_HDRLEN, attrtype); in batadv_netlink_get_ifindex()
/Linux-v4.19/include/linux/
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()
Dsock_diag.h34 struct sk_buff *skb, int attrtype);
/Linux-v4.19/net/openvswitch/
Dflow_netlink.h74 int ovs_nla_add_action(struct sw_flow_actions **sfa, int attrtype,
Dflow_netlink.c2343 int attrtype, void *data, int len, bool log) in __add_action() argument
2351 a->nla_type = attrtype; in __add_action()
2361 int ovs_nla_add_action(struct sw_flow_actions **sfa, int attrtype, void *data, in ovs_nla_add_action() argument
2366 a = __add_action(sfa, attrtype, data, len, log); in ovs_nla_add_action()
2372 int attrtype, bool log) in add_nested_action_start() argument
2377 err = ovs_nla_add_action(sfa, attrtype, NULL, 0, log); in add_nested_action_start()
/Linux-v4.19/drivers/net/
Dgeneve.c1234 int attrtype; in geneve_nl2info() local
1244 attrtype = IFLA_GENEVE_REMOTE; in geneve_nl2info()
1261 attrtype = IFLA_GENEVE_REMOTE6; in geneve_nl2info()
1301 attrtype = IFLA_GENEVE_ID; in geneve_nl2info()
1325 attrtype = IFLA_GENEVE_PORT; in geneve_nl2info()
1333 attrtype = IFLA_GENEVE_COLLECT_METADATA; in geneve_nl2info()
1341 attrtype = IFLA_GENEVE_UDP_CSUM; in geneve_nl2info()
1351 attrtype = IFLA_GENEVE_UDP_ZERO_CSUM6_TX; in geneve_nl2info()
1366 attrtype = IFLA_GENEVE_UDP_ZERO_CSUM6_RX; in geneve_nl2info()
1380 NL_SET_ERR_MSG_ATTR(extack, data[attrtype], in geneve_nl2info()
/Linux-v4.19/drivers/infiniband/core/
Daddr.c151 int attrtype; in ib_nl_ip_send_msg() local
156 attrtype = RDMA_NLA_F_MANDATORY | LS_NLA_TYPE_IPV4; in ib_nl_ip_send_msg()
159 attrtype = RDMA_NLA_F_MANDATORY | LS_NLA_TYPE_IPV6; in ib_nl_ip_send_msg()
179 nla_put(skb, attrtype, size, daddr); in ib_nl_ip_send_msg()
/Linux-v4.19/net/ipv6/
Dseg6_iptunnel.c55 static int nla_put_srh(struct sk_buff *skb, int attrtype, in nla_put_srh() argument
64 nla = nla_reserve(skb, attrtype, len); in nla_put_srh()
/Linux-v4.19/net/mpls/
Dinternal.h204 int nla_put_labels(struct sk_buff *skb, int attrtype, u8 labels,
/Linux-v4.19/fs/btrfs/
Dsend.c605 #define TLV_PUT(sctx, attrtype, data, attrlen) \ argument
607 ret = tlv_put(sctx, attrtype, data, attrlen); \
612 #define TLV_PUT_INT(sctx, attrtype, bits, value) \ argument
614 ret = tlv_put_u##bits(sctx, attrtype, value); \
619 #define TLV_PUT_U8(sctx, attrtype, data) TLV_PUT_INT(sctx, attrtype, 8, data) argument
620 #define TLV_PUT_U16(sctx, attrtype, data) TLV_PUT_INT(sctx, attrtype, 16, data) argument
621 #define TLV_PUT_U32(sctx, attrtype, data) TLV_PUT_INT(sctx, attrtype, 32, data) argument
622 #define TLV_PUT_U64(sctx, attrtype, data) TLV_PUT_INT(sctx, attrtype, 64, data) argument
623 #define TLV_PUT_STRING(sctx, attrtype, str, len) \ argument
625 ret = tlv_put_string(sctx, attrtype, str, len); \
[all …]
/Linux-v4.19/net/bridge/
Dbr_netlink.c703 int attrtype, unsigned long mask) in br_set_port_flag() argument
708 if (!tb[attrtype]) in br_set_port_flag()
711 if (nla_get_u8(tb[attrtype])) in br_set_port_flag()

12