Home
last modified time | relevance | path

Searched refs:NLMSG_ALIGN (Results 1 – 25 of 57) sorted by relevance

123

/linux/tools/testing/selftests/net/mptcp/
A Dpm_nl_ctl.c47 off += NLMSG_ALIGN(sizeof(*nh)); in init_genl_req()
52 off += NLMSG_ALIGN(sizeof(*gh)); in init_genl_req()
167 off += NLMSG_ALIGN(rta->rta_len); in resolve_mptcp_pm_netlink()
199 off += NLMSG_ALIGN(nest->rta_len); in add_addr()
213 off += NLMSG_ALIGN(rta->rta_len); in add_addr()
220 off += NLMSG_ALIGN(rta->rta_len); in add_addr()
334 off += NLMSG_ALIGN(nest->rta_len); in del_addr()
341 off += NLMSG_ALIGN(rta->rta_len); in del_addr()
357 off += NLMSG_ALIGN(rta->rta_len); in del_addr()
521 off += NLMSG_ALIGN(rta->rta_len); in get_addr()
[all …]
/linux/tools/include/uapi/linux/
A Dnetlink.h90 #define NLMSG_ALIGN(len) ( ((len)+NLMSG_ALIGNTO-1) & ~(NLMSG_ALIGNTO-1) ) macro
91 #define NLMSG_HDRLEN ((int) NLMSG_ALIGN(sizeof(struct nlmsghdr)))
93 #define NLMSG_SPACE(len) NLMSG_ALIGN(NLMSG_LENGTH(len))
95 #define NLMSG_NEXT(nlh,len) ((len) -= NLMSG_ALIGN((nlh)->nlmsg_len), \
96 (struct nlmsghdr*)(((char*)(nlh)) + NLMSG_ALIGN((nlh)->nlmsg_len)))
/linux/include/uapi/linux/
A Dnetlink.h90 #define NLMSG_ALIGN(len) ( ((len)+NLMSG_ALIGNTO-1) & ~(NLMSG_ALIGNTO-1) ) macro
91 #define NLMSG_HDRLEN ((int) NLMSG_ALIGN(sizeof(struct nlmsghdr)))
93 #define NLMSG_SPACE(len) NLMSG_ALIGN(NLMSG_LENGTH(len))
95 #define NLMSG_NEXT(nlh,len) ((len) -= NLMSG_ALIGN((nlh)->nlmsg_len), \
97 NLMSG_ALIGN((nlh)->nlmsg_len)))
A Dnetfilter_decnet.h53 #define NFDN_RTMSG(r) ((unsigned char *)(r) + NLMSG_ALIGN(sizeof(struct nf_dn_rtmsg)))
A Dif_addr.h68 #define IFA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct ifaddrmsg))))
A Drtnetlink.h388 #define RTM_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct rtmsg))))
639 #define TCA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct tcmsg))))
780 #define TA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct tcamsg))))
A Dgenetlink.h19 #define GENL_HDRLEN NLMSG_ALIGN(sizeof(struct genlmsghdr))
A Dtipc_config.h374 #define TIPC_GENL_HDRLEN NLMSG_ALIGN(sizeof(struct tipc_genlmsghdr))
/linux/tools/testing/selftests/net/
A Dudpgso.c364 char data[NLMSG_ALIGN(sizeof(*nh)) + in set_route_mtu()
365 NLMSG_ALIGN(sizeof(*rt)) + in set_route_mtu()
366 NLMSG_ALIGN(RTA_LENGTH(sizeof(addr6))) + in set_route_mtu()
367 NLMSG_ALIGN(RTA_LENGTH(sizeof(int))) + in set_route_mtu()
368 NLMSG_ALIGN(RTA_LENGTH(0) + RTA_LENGTH(sizeof(int)))]; in set_route_mtu()
382 off += NLMSG_ALIGN(sizeof(*nh)); in set_route_mtu()
391 off += NLMSG_ALIGN(sizeof(*rt)); in set_route_mtu()
400 off += NLMSG_ALIGN(rta->rta_len); in set_route_mtu()
406 off += NLMSG_ALIGN(rta->rta_len); in set_route_mtu()
412 off += NLMSG_ALIGN(rta->rta_len); in set_route_mtu()
/linux/tools/lib/bpf/
A Dnlattr.h126 return (struct nlattr *)((void *)req + NLMSG_ALIGN(req->nh.nlmsg_len)); in req_tail()
134 if (NLMSG_ALIGN(req->nh.nlmsg_len) + NLA_ALIGN(NLA_HDRLEN + len) > sizeof(*req)) in nlattr_add()
144 req->nh.nlmsg_len = NLMSG_ALIGN(req->nh.nlmsg_len) + NLA_ALIGN(nla->nla_len); in nlattr_add()
A Dnetlink.c253 attr = (struct nlattr *) ((void *) ifi + NLMSG_ALIGN(sizeof(*ifi))); in __dump_link_nlmsg()
527 (struct nlattr *)((void *)tc + NLMSG_ALIGN(sizeof(*tc))), in get_tc_info()
/linux/net/decnet/netfilter/
A Ddn_rtmsg.c40 size = NLMSG_ALIGN(rt_skb->len) + in dnrmg_build_message()
41 NLMSG_ALIGN(sizeof(struct nf_dn_rtmsg)); in dnrmg_build_message()
/linux/tools/bpf/bpftool/
A Dnet.c206 attr = (struct nlattr *) ((void *) t + NLMSG_ALIGN(sizeof(*t))); in __dump_class_nlmsg()
245 attr = (struct nlattr *) ((void *) t + NLMSG_ALIGN(sizeof(*t))); in __dump_qdisc_nlmsg()
284 attr = (struct nlattr *) ((void *) t + NLMSG_ALIGN(sizeof(*t))); in __dump_filter_nlmsg()
323 attr = (struct nlattr *) ((void *) ifi + NLMSG_ALIGN(sizeof(*ifi))); in __dump_link_nlmsg()
/linux/include/uapi/linux/netfilter/
A Dnfnetlink_compat.h60 + NLMSG_ALIGN(sizeof(struct nfgenmsg))))
/linux/net/phonet/
A Dpn_netlink.c30 skb = nlmsg_new(NLMSG_ALIGN(sizeof(struct ifaddrmsg)) + in phonet_address_notify()
196 skb = nlmsg_new(NLMSG_ALIGN(sizeof(struct ifaddrmsg)) + in rtm_phonet_notify()
/linux/drivers/scsi/
A Dscsi_netlink.c50 rlen = NLMSG_ALIGN(nlh->nlmsg_len); in scsi_nl_rcv_msg()
/linux/include/net/
A Dnetlink.h552 return NLMSG_ALIGN(nlmsg_msg_size(payload)); in nlmsg_total_size()
591 return (struct nlattr *) (data + NLMSG_ALIGN(hdrlen)); in nlmsg_attrdata()
601 return nlmsg_len(nlh) - NLMSG_ALIGN(hdrlen); in nlmsg_attrlen()
627 int totlen = NLMSG_ALIGN(nlh->nlmsg_len); in nlmsg_next()
A Dgenetlink.h399 return NLMSG_ALIGN(genlmsg_msg_size(payload)); in genlmsg_total_size()
/linux/net/xfrm/
A Dxfrm_user.c1181 return NLMSG_ALIGN(4) in xfrm_spdinfo_msgsize()
1308 return NLMSG_ALIGN(4) in xfrm_sadinfo_msgsize()
1967 int len = NLMSG_ALIGN(sizeof(*up)); in xfrm_notify_userpolicy()
2173 return NLMSG_ALIGN(sizeof(struct xfrm_aevent_id)) in xfrm_aevent_msgsize()
2655 return NLMSG_ALIGN(sizeof(struct xfrm_userpolicy_id)) in xfrm_migrate_msgsize()
2940 return NLMSG_ALIGN(sizeof(struct xfrm_user_expire)) in xfrm_expire_msgsize()
3092 len += NLMSG_ALIGN(headlen); in xfrm_notify_sa()
3161 return NLMSG_ALIGN(sizeof(struct xfrm_user_acquire)) in xfrm_acquire_msgsize()
3361 len += NLMSG_ALIGN(headlen); in xfrm_notify_policy()
3463 return NLMSG_ALIGN(sizeof(struct xfrm_user_report)); in xfrm_report_msgsize()
[all …]
/linux/net/netfilter/
A Dnfnetlink.c549 msglen = NLMSG_ALIGN(nlh->nlmsg_len); in nfnetlink_rcv_batch()
610 msglen = NLMSG_ALIGN(nlh->nlmsg_len); in nfnetlink_rcv_skb_batch()
/linux/drivers/infiniband/core/
A Dnetlink.c248 msglen = NLMSG_ALIGN(nlh->nlmsg_len); in rdma_nl_rcv_skb()
A Daddr.c168 len += NLMSG_ALIGN(sizeof(*header)); in ib_nl_ip_send_msg()
182 header = skb_put(skb, NLMSG_ALIGN(sizeof(*header))); in ib_nl_ip_send_msg()
/linux/net/core/
A Dsock_diag.c116 return NLMSG_ALIGN(sizeof(struct inet_diag_msg) in sock_diag_nlmsg_size()
/linux/tools/accounting/
A Dgetdelays.c141 msg.n.nlmsg_len += NLMSG_ALIGN(na->nla_len); in send_cmd()
/linux/net/netlink/
A Daf_netlink.c2174 nlh = skb_put(skb, NLMSG_ALIGN(size)); in __nlmsg_put()
2180 if (!__builtin_constant_p(size) || NLMSG_ALIGN(size) - size != 0) in __nlmsg_put()
2181 memset(nlmsg_data(nlh) + len, 0, NLMSG_ALIGN(size) - size); in __nlmsg_put()
2505 msglen = NLMSG_ALIGN(nlh->nlmsg_len); in netlink_rcv_skb()

Completed in 49 milliseconds

123