Home
last modified time | relevance | path

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

123

/openbmc/linux/tools/testing/selftests/net/mptcp/
H A Dpm_nl_ctl.c60 off += NLMSG_ALIGN(sizeof(*nh)); in init_genl_req()
65 off += NLMSG_ALIGN(sizeof(*gh)); in init_genl_req()
333 off += NLMSG_ALIGN(rta->rta_len); in resolve_mptcp_pm_netlink()
444 off += NLMSG_ALIGN(rta->rta_len); in dsf()
570 off += NLMSG_ALIGN(rta->rta_len); in csf()
669 off += NLMSG_ALIGN(rta->rta_len); in announce_addr()
676 off += NLMSG_ALIGN(rta->rta_len); in announce_addr()
734 off += NLMSG_ALIGN(rta->rta_len); in announce_addr()
746 off += NLMSG_ALIGN(rta->rta_len); in announce_addr()
793 off += NLMSG_ALIGN(rta->rta_len); in add_addr()
[all …]
/openbmc/linux/tools/include/uapi/linux/
H 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)))
/openbmc/linux/include/uapi/linux/
H A Dnetlink.h99 #define NLMSG_ALIGN(len) ( ((len)+NLMSG_ALIGNTO-1) & ~(NLMSG_ALIGNTO-1) ) macro
100 #define NLMSG_HDRLEN ((int) NLMSG_ALIGN(sizeof(struct nlmsghdr)))
102 #define NLMSG_SPACE(len) NLMSG_ALIGN(NLMSG_LENGTH(len))
104 #define NLMSG_NEXT(nlh,len) ((len) -= NLMSG_ALIGN((nlh)->nlmsg_len), \
106 NLMSG_ALIGN((nlh)->nlmsg_len)))
H A Dif_addr.h69 #define IFA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct ifaddrmsg))))
H A Dgenetlink.h19 #define GENL_HDRLEN NLMSG_ALIGN(sizeof(struct genlmsghdr))
H A Drtnetlink.h397 #define RTM_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct rtmsg))))
649 #define TCA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct tcmsg))))
797 #define TA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct tcamsg))))
H A Dtipc_config.h370 #define TIPC_GENL_HDRLEN NLMSG_ALIGN(sizeof(struct tipc_genlmsghdr))
/openbmc/linux/tools/testing/selftests/net/
H 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()
H A Dtun.c84 req.nh.nlmsg_len = NLMSG_ALIGN(NLMSG_LENGTH(sizeof(req.ifm))); in tun_delete()
90 rta = (struct rtattr *)(((char *)&req) + NLMSG_ALIGN(req.nh.nlmsg_len)); in tun_delete()
/openbmc/linux/tools/lib/bpf/
H A Dnlattr.h138 return (struct nlattr *)((void *)req + NLMSG_ALIGN(req->nh.nlmsg_len)); in req_tail()
146 if (NLMSG_ALIGN(req->nh.nlmsg_len) + NLA_ALIGN(NLA_HDRLEN + len) > sizeof(*req)) in nlattr_add()
156 req->nh.nlmsg_len = NLMSG_ALIGN(req->nh.nlmsg_len) + NLA_ALIGN(nla->nla_len); in nlattr_add()
/openbmc/phosphor-networkd/test/
H A Dmock_syscall.cpp130 msgBuf.resize(NLMSG_ALIGN(msgBuf.size()), '\0'); in sendmsg_link_dump()
296 if (NLMSG_ALIGN(ret) + msg.size() > required_buf_size) in recvmsg()
300 ret = NLMSG_ALIGN(ret); in recvmsg()
H A Dtest_netlink.cpp94 char buf[NLMSG_ALIGN(len)]; in TEST()
116 char buf[NLMSG_ALIGN(len)]; in TEST()
/openbmc/linux/include/net/
H A Dnetlink.h564 return NLMSG_ALIGN(nlmsg_msg_size(payload)); in nlmsg_total_size()
603 return (struct nlattr *) (data + NLMSG_ALIGN(hdrlen)); in nlmsg_attrdata()
613 return nlmsg_len(nlh) - NLMSG_ALIGN(hdrlen); in nlmsg_attrlen()
639 int totlen = NLMSG_ALIGN(nlh->nlmsg_len); in nlmsg_next()
960 if (unlikely(skb_tailroom(skb) < NLMSG_ALIGN(size))) in nlmsg_append()
963 if (NLMSG_ALIGN(size) - size) in nlmsg_append()
965 NLMSG_ALIGN(size) - size); in nlmsg_append()
966 return __skb_put(skb, NLMSG_ALIGN(size)); in nlmsg_append()
H A Dgenetlink.h544 return NLMSG_ALIGN(genlmsg_msg_size(payload)); in genlmsg_total_size()
/openbmc/linux/include/uapi/linux/netfilter/
H A Dnfnetlink_compat.h60 + NLMSG_ALIGN(sizeof(struct nfgenmsg))))
/openbmc/phosphor-networkd/src/
H A Dnetlink.hpp50 data.remove_prefix(NLMSG_ALIGN(sizeof(T))); in extractRtData()
H A Dnetlink.cpp43 msgs.remove_prefix(NLMSG_ALIGN(hdr.nlmsg_len)); in processMsg()
/openbmc/linux/drivers/scsi/
H A Dscsi_netlink.c50 rlen = NLMSG_ALIGN(nlh->nlmsg_len); in scsi_nl_rcv_msg()
/openbmc/linux/net/phonet/
H A Dpn_netlink.c30 skb = nlmsg_new(NLMSG_ALIGN(sizeof(struct ifaddrmsg)) + in phonet_address_notify()
196 skb = nlmsg_new(NLMSG_ALIGN(sizeof(struct rtmsg)) + in rtm_phonet_notify()
/openbmc/linux/tools/bpf/bpftool/
H A Dnet.c213 attr = (struct nlattr *) ((void *) t + NLMSG_ALIGN(sizeof(*t))); in __dump_class_nlmsg()
252 attr = (struct nlattr *) ((void *) t + NLMSG_ALIGN(sizeof(*t))); in __dump_qdisc_nlmsg()
291 attr = (struct nlattr *) ((void *) t + NLMSG_ALIGN(sizeof(*t))); in __dump_filter_nlmsg()
330 attr = (struct nlattr *) ((void *) ifi + NLMSG_ALIGN(sizeof(*ifi))); in __dump_link_nlmsg()
/openbmc/linux/net/xfrm/
H A Dxfrm_user.c1354 return NLMSG_ALIGN(4) in xfrm_spdinfo_msgsize()
1491 return NLMSG_ALIGN(4) in xfrm_sadinfo_msgsize()
2204 int len = NLMSG_ALIGN(sizeof(*up)); in xfrm_notify_userpolicy()
2405 return NLMSG_ALIGN(sizeof(struct xfrm_aevent_id)) in xfrm_aevent_msgsize()
2910 return NLMSG_ALIGN(sizeof(struct xfrm_userpolicy_id)) in xfrm_migrate_msgsize()
3197 return NLMSG_ALIGN(sizeof(struct xfrm_user_expire)) in xfrm_expire_msgsize()
3352 len += NLMSG_ALIGN(headlen); in xfrm_notify_sa()
3421 return NLMSG_ALIGN(sizeof(struct xfrm_user_acquire)) in xfrm_acquire_msgsize()
3625 len += NLMSG_ALIGN(headlen); in xfrm_notify_policy()
3729 return NLMSG_ALIGN(sizeof(struct xfrm_user_report)); in xfrm_report_msgsize()
[all …]
/openbmc/linux/drivers/infiniband/core/
H A Dnetlink.c248 msglen = NLMSG_ALIGN(nlh->nlmsg_len); in rdma_nl_rcv_skb()
/openbmc/linux/net/netfilter/
H A Dnfnetlink.c556 msglen = NLMSG_ALIGN(nlh->nlmsg_len); in nfnetlink_rcv_batch()
615 msglen = NLMSG_ALIGN(nlh->nlmsg_len); in nfnetlink_rcv_skb_batch()
/openbmc/linux/net/core/
H A Dsock_diag.c120 return NLMSG_ALIGN(sizeof(struct inet_diag_msg) in sock_diag_nlmsg_size()
/openbmc/linux/tools/accounting/
H A Dprocacct.c147 msg.n.nlmsg_len += NLMSG_ALIGN(na->nla_len); in send_cmd()

123