/openbmc/linux/tools/lib/bpf/ |
H A D | nlattr.h | 86 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 D | ife.c | 112 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 D | nci_dev.c | 23 #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 D | procacct.c | 51 #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 D | getdelays.c | 39 #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 D | nf_conntrack_proto_dccp.c | 680 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 D | nf_conntrack_proto_sctp.c | 596 NLA_ALIGN(NLA_HDRLEN + 1) + \ 597 NLA_ALIGN(NLA_HDRLEN + 4) + \ 598 NLA_ALIGN(NLA_HDRLEN + 4))
|
H A D | nf_conntrack_proto_tcp.c | 1395 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 D | nfnetlink_log.c | 55 #define NFULNL_COPY_RANGE_MAX (0xFFFF - NLA_HDRLEN)
|
H A D | nfnetlink_queue.c | 57 #define NFQNL_MAX_COPY_RANGE (0xffff - NLA_HDRLEN)
|
/openbmc/linux/lib/ |
H A D | nlattr.c | 43 [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 D | netlink.h | 232 #define NLA_HDRLEN ((int) NLA_ALIGN(sizeof(struct nlattr))) macro
|
/openbmc/qemu/linux-user/ |
H A D | fd-trans.c | 480 #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 D | netlink.h | 250 #define NLA_HDRLEN ((int) NLA_ALIGN(sizeof(struct nlattr))) macro
|
/openbmc/linux/include/net/ |
H A D | netlink.h | 1149 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 D | psample.c | 397 data_len = PSAMPLE_MAX_PACKET_SIZE - meta_len - NLA_HDRLEN in psample_sample_packet()
|
/openbmc/linux/net/core/ |
H A D | bpf_sk_storage.c | 550 BUILD_BUG_ON(U16_MAX - NLA_HDRLEN < BPF_LOCAL_STORAGE_MAX_VALUE_SIZE); in diag_get()
|
H A D | drop_monitor.c | 688 #define NET_DM_MAX_PACKET_SIZE (0xffff - NLA_HDRLEN - NLA_ALIGNTO)
|
H A D | rtnetlink.c | 2996 nla_len(attr) < NLA_HDRLEN) { in do_setlink() 3026 nla_len(attr) < NLA_HDRLEN) { in do_setlink()
|
/openbmc/linux/net/openvswitch/ |
H A D | flow_netlink.c | 2580 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 D | health.c | 714 #define DEVLINK_FMSG_MAX_SIZE (GENLMSG_DEFAULT_SIZE - GENL_HDRLEN - NLA_HDRLEN)
|
/openbmc/linux/net/wireless/ |
H A D | nl80211.c | 18103 link_info_size += NLA_HDRLEN; in nl80211_send_connect_result() 18218 link_info_size += NLA_HDRLEN; in nl80211_send_roamed()
|