Home
last modified time | relevance | path

Searched refs:NLA_HDRLEN (Results 1 – 22 of 22) sorted by relevance

/openbmc/linux/tools/lib/bpf/
H A Dnlattr.h86 return (void *)nla + NLA_HDRLEN; in libbpf_nla_data()
120 return nla->nla_len - NLA_HDRLEN; in libbpf_nla_len()
133 return (struct nlattr *)((void *)nla + NLA_HDRLEN); in nla_data()
146 if (NLMSG_ALIGN(req->nh.nlmsg_len) + NLA_ALIGN(NLA_HDRLEN + len) > sizeof(*req)) in nlattr_add()
153 nla->nla_len = NLA_HDRLEN + len; in nlattr_add()
/openbmc/linux/net/ife/
H A Dife.c112 if (tlvlen < NLA_HDRLEN) in __ife_tlv_meta_valid()
136 *dlen = ntohs(tlv->len) - NLA_HDRLEN; in ife_tlv_meta_decode()
163 char *dptr = (char *) tlv + NLA_HDRLEN; in ife_tlv_meta_encode()
164 u32 htlv = attrtype << 16 | (dlen + NLA_HDRLEN); in ife_tlv_meta_encode()
167 memset(dptr, 0, totlen - NLA_HDRLEN); in ife_tlv_meta_encode()
/openbmc/linux/tools/testing/selftests/nci/
H A Dnci_dev.c23 #define NLA_DATA(na) ((void *)((char *)(na) + NLA_HDRLEN))
24 #define NLA_PAYLOAD(len) ((len) - NLA_HDRLEN)
134 na->nla_len = nla_len[cnt] + NLA_HDRLEN; in send_cmd_mt_nla()
139 prv_len = NLA_ALIGN(nla_len[cnt]) + NLA_HDRLEN; in send_cmd_mt_nla()
214 nested_na = (struct nlattr *)((char *)na + NLA_HDRLEN); in get_family_id()
222 NLA_HDRLEN); in get_family_id()
227 NLA_HDRLEN; in get_family_id()
680 targetidx = *(int *)((char *)na + NLA_HDRLEN); in get_taginfo()
682 sel_res = *(__u8 *)((char *)na + NLA_HDRLEN); in get_taginfo()
684 protocol = *(__u32 *)((char *)na + NLA_HDRLEN); in get_taginfo()
[all …]
/openbmc/linux/tools/accounting/
H A Dprocacct.c51 #define NLA_DATA(na) ((void *)((char *)(na) + NLA_HDRLEN))
52 #define NLA_PAYLOAD(len) (len - NLA_HDRLEN)
145 na->nla_len = nla_len + 1 + NLA_HDRLEN; in send_cmd()
H A Dgetdelays.c39 #define NLA_DATA(na) ((void *)((char*)(na) + NLA_HDRLEN))
40 #define NLA_PAYLOAD(len) (len - NLA_HDRLEN)
138 na->nla_len = nla_len + NLA_HDRLEN; in send_cmd()
/openbmc/linux/net/netfilter/
H A Dnf_conntrack_proto_dccp.c680 NLA_ALIGN(NLA_HDRLEN + 1) + \
681 NLA_ALIGN(NLA_HDRLEN + 1) + \
682 NLA_ALIGN(NLA_HDRLEN + sizeof(u64)) + \
683 NLA_ALIGN(NLA_HDRLEN + 0))
H A Dnf_conntrack_proto_sctp.c596 NLA_ALIGN(NLA_HDRLEN + 1) + \
597 NLA_ALIGN(NLA_HDRLEN + 4) + \
598 NLA_ALIGN(NLA_HDRLEN + 4))
H A Dnf_conntrack_proto_tcp.c1395 NLA_ALIGN(NLA_HDRLEN + 1) + \
1396 NLA_ALIGN(NLA_HDRLEN + 1) + \
1397 NLA_ALIGN(NLA_HDRLEN + sizeof(struct nf_ct_tcp_flags)) + \
1398 NLA_ALIGN(NLA_HDRLEN + sizeof(struct nf_ct_tcp_flags)))
H A Dnfnetlink_log.c55 #define NFULNL_COPY_RANGE_MAX (0xFFFF - NLA_HDRLEN)
H A Dnfnetlink_queue.c57 #define NFQNL_MAX_COPY_RANGE (0xffff - NLA_HDRLEN)
/openbmc/linux/lib/
H A Dnlattr.c43 [NLA_NESTED] = NLA_HDRLEN,
103 if (nla_len(entry) < NLA_HDRLEN) { in nla_validate_array()
487 if (attrlen < NLA_HDRLEN) in validate_nla()
509 if (attrlen < NLA_HDRLEN) in validate_nla()
/openbmc/linux/tools/include/uapi/linux/
H A Dnetlink.h232 #define NLA_HDRLEN ((int) NLA_ALIGN(sizeof(struct nlattr))) macro
/openbmc/qemu/linux-user/
H A Dfd-trans.c480 #define NLA_DATA(nla) ((void *)((char *)(nla)) + NLA_HDRLEN)
681 li_context->len = nlattr->nla_len - NLA_HDRLEN; in host_to_target_data_linkinfo_nlattr()
685 li_context->slave_len = nlattr->nla_len - NLA_HDRLEN; in host_to_target_data_linkinfo_nlattr()
740 for (i = 0; i < (nlattr->nla_len - NLA_HDRLEN) / sizeof(*u32); in host_to_target_data_inet_nlattr()
775 for (i = 0; i < (nlattr->nla_len - NLA_HDRLEN) / sizeof(*u32); in host_to_target_data_inet6_nlattr()
792 for (i = 0; i < (nlattr->nla_len - NLA_HDRLEN) / sizeof(*u64); in host_to_target_data_inet6_nlattr()
/openbmc/linux/include/uapi/linux/
H A Dnetlink.h250 #define NLA_HDRLEN ((int) NLA_ALIGN(sizeof(struct nlattr))) macro
/openbmc/linux/include/net/
H A Dnetlink.h1149 return NLA_HDRLEN + payload; in nla_attr_size()
1185 return (char *) nla + NLA_HDRLEN; in nla_data()
1194 return nla->nla_len - NLA_HDRLEN; in nla_len()
/openbmc/linux/net/psample/
H A Dpsample.c397 data_len = PSAMPLE_MAX_PACKET_SIZE - meta_len - NLA_HDRLEN in psample_sample_packet()
/openbmc/linux/net/core/
H A Dbpf_sk_storage.c550 BUILD_BUG_ON(U16_MAX - NLA_HDRLEN < BPF_LOCAL_STORAGE_MAX_VALUE_SIZE); in diag_get()
H A Ddrop_monitor.c688 #define NET_DM_MAX_PACKET_SIZE (0xffff - NLA_HDRLEN - NLA_ALIGNTO)
H A Drtnetlink.c2996 nla_len(attr) < NLA_HDRLEN) { in do_setlink()
3026 nla_len(attr) < NLA_HDRLEN) { in do_setlink()
/openbmc/linux/net/openvswitch/
H A Dflow_netlink.c2580 if (!actions || (nla_len(actions) && nla_len(actions) < NLA_HDRLEN)) in validate_and_copy_sample()
2654 if (!actions || (nla_len(actions) && nla_len(actions) < NLA_HDRLEN)) { in validate_and_copy_dec_ttl()
2689 if (nla_len(attr) && nla_len(attr) < NLA_HDRLEN) in validate_and_copy_clone()
/openbmc/linux/net/devlink/
H A Dhealth.c714 #define DEVLINK_FMSG_MAX_SIZE (GENLMSG_DEFAULT_SIZE - GENL_HDRLEN - NLA_HDRLEN)
/openbmc/linux/net/wireless/
H A Dnl80211.c18103 link_info_size += NLA_HDRLEN; in nl80211_send_connect_result()
18218 link_info_size += NLA_HDRLEN; in nl80211_send_roamed()