Searched refs:NLA_HDRLEN (Results 1 – 22 of 22) sorted by relevance
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()
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()
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()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 …]
189 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()
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()
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()
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))
596 NLA_ALIGN(NLA_HDRLEN + 1) + \597 NLA_ALIGN(NLA_HDRLEN + 4) + \598 NLA_ALIGN(NLA_HDRLEN + 4))
1396 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)))
55 #define NFULNL_COPY_RANGE_MAX (0xFFFF - NLA_HDRLEN)
57 #define NFQNL_MAX_COPY_RANGE (0xffff - NLA_HDRLEN)
43 [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()
232 #define NLA_HDRLEN ((int) NLA_ALIGN(sizeof(struct nlattr))) macro
250 #define NLA_HDRLEN ((int) NLA_ALIGN(sizeof(struct nlattr))) macro
1211 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()
406 data_len = PSAMPLE_MAX_PACKET_SIZE - meta_len - NLA_HDRLEN in psample_sample_packet()
546 BUILD_BUG_ON(U16_MAX - NLA_HDRLEN < BPF_LOCAL_STORAGE_MAX_VALUE_SIZE); in diag_get()
691 #define NET_DM_MAX_PACKET_SIZE (0xffff - NLA_HDRLEN - NLA_ALIGNTO)
3021 nla_len(attr) < NLA_HDRLEN) { in do_setlink()3051 nla_len(attr) < NLA_HDRLEN) { in do_setlink()
719 #define DEVLINK_FMSG_MAX_SIZE (GENLMSG_DEFAULT_SIZE - GENL_HDRLEN - NLA_HDRLEN)
2593 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()
18220 link_info_size += NLA_HDRLEN; in nl80211_send_connect_result()18335 link_info_size += NLA_HDRLEN; in nl80211_send_roamed()