Home
last modified time | relevance | path

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

/linux-6.12.1/tools/lib/bpf/
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()
/linux-6.12.1/net/ife/
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()
/linux-6.12.1/tools/testing/selftests/nci/
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()
215 group_na = (struct nlattr *)((char *)nested_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()
[all …]
/linux-6.12.1/tools/net/ynl/lib/
Dynl-priv.h189 return attr->nla_len - NLA_HDRLEN; in ynl_attr_data_len()
194 return (unsigned char *)attr + NLA_HDRLEN; in ynl_attr_data()
250 o = nlh->nlmsg_len + NLA_HDRLEN + NLMSG_ALIGN(size) > nlh->nlmsg_pid; in __ynl_attr_put_overflow()
269 nlh->nlmsg_len += NLA_HDRLEN; in ynl_attr_nest_start()
291 attr->nla_len = NLA_HDRLEN + size; in ynl_attr_put()
312 attr->nla_len = NLA_HDRLEN + NLA_ALIGN(len); in ynl_attr_put_str()
/linux-6.12.1/tools/accounting/
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()
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()
/linux-6.12.1/net/netfilter/
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))
Dnf_conntrack_proto_sctp.c596 NLA_ALIGN(NLA_HDRLEN + 1) + \
597 NLA_ALIGN(NLA_HDRLEN + 4) + \
598 NLA_ALIGN(NLA_HDRLEN + 4))
Dnf_conntrack_proto_tcp.c1396 NLA_ALIGN(NLA_HDRLEN + 1) + \
1397 NLA_ALIGN(NLA_HDRLEN + 1) + \
1398 NLA_ALIGN(NLA_HDRLEN + sizeof(struct nf_ct_tcp_flags)) + \
1399 NLA_ALIGN(NLA_HDRLEN + sizeof(struct nf_ct_tcp_flags)))
Dnfnetlink_log.c55 #define NFULNL_COPY_RANGE_MAX (0xFFFF - NLA_HDRLEN)
Dnfnetlink_queue.c57 #define NFQNL_MAX_COPY_RANGE (0xffff - NLA_HDRLEN)
/linux-6.12.1/lib/
Dnlattr.c43 [NLA_NESTED] = NLA_HDRLEN,
103 if (nla_len(entry) < NLA_HDRLEN) { in nla_validate_array()
509 if (attrlen < NLA_HDRLEN) in validate_nla()
531 if (attrlen < NLA_HDRLEN) in validate_nla()
/linux-6.12.1/tools/include/uapi/linux/
Dnetlink.h232 #define NLA_HDRLEN ((int) NLA_ALIGN(sizeof(struct nlattr))) macro
/linux-6.12.1/include/uapi/linux/
Dnetlink.h250 #define NLA_HDRLEN ((int) NLA_ALIGN(sizeof(struct nlattr))) macro
/linux-6.12.1/include/net/
Dnetlink.h1211 return NLA_HDRLEN + payload; in nla_attr_size()
1247 return (char *) nla + NLA_HDRLEN; in nla_data()
1256 return nla->nla_len - NLA_HDRLEN; in nla_len()
/linux-6.12.1/net/psample/
Dpsample.c406 data_len = PSAMPLE_MAX_PACKET_SIZE - meta_len - NLA_HDRLEN in psample_sample_packet()
/linux-6.12.1/net/core/
Dbpf_sk_storage.c546 BUILD_BUG_ON(U16_MAX - NLA_HDRLEN < BPF_LOCAL_STORAGE_MAX_VALUE_SIZE); in diag_get()
Ddrop_monitor.c691 #define NET_DM_MAX_PACKET_SIZE (0xffff - NLA_HDRLEN - NLA_ALIGNTO)
Drtnetlink.c3021 nla_len(attr) < NLA_HDRLEN) { in do_setlink()
3051 nla_len(attr) < NLA_HDRLEN) { in do_setlink()
/linux-6.12.1/net/devlink/
Dhealth.c719 #define DEVLINK_FMSG_MAX_SIZE (GENLMSG_DEFAULT_SIZE - GENL_HDRLEN - NLA_HDRLEN)
/linux-6.12.1/net/openvswitch/
Dflow_netlink.c2593 if (!actions || (nla_len(actions) && nla_len(actions) < NLA_HDRLEN)) in validate_and_copy_sample()
2667 if (!actions || (nla_len(actions) && nla_len(actions) < NLA_HDRLEN)) { in validate_and_copy_dec_ttl()
2702 if (nla_len(attr) && nla_len(attr) < NLA_HDRLEN) in validate_and_copy_clone()
/linux-6.12.1/net/wireless/
Dnl80211.c18220 link_info_size += NLA_HDRLEN; in nl80211_send_connect_result()
18335 link_info_size += NLA_HDRLEN; in nl80211_send_roamed()