/linux-6.3-rc2/tools/testing/selftests/net/mptcp/ |
A D | pm_nl_ctl.c | 60 off += NLMSG_ALIGN(sizeof(*nh)); in init_genl_req() 65 off += NLMSG_ALIGN(sizeof(*gh)); in init_genl_req() 322 off += NLMSG_ALIGN(rta->rta_len); in resolve_mptcp_pm_netlink() 433 off += NLMSG_ALIGN(rta->rta_len); in dsf() 559 off += NLMSG_ALIGN(rta->rta_len); in csf() 658 off += NLMSG_ALIGN(rta->rta_len); in announce_addr() 665 off += NLMSG_ALIGN(rta->rta_len); in announce_addr() 723 off += NLMSG_ALIGN(rta->rta_len); in announce_addr() 735 off += NLMSG_ALIGN(rta->rta_len); in announce_addr() 782 off += NLMSG_ALIGN(rta->rta_len); in add_addr() [all …]
|
/linux-6.3-rc2/tools/include/uapi/linux/ |
A D | netlink.h | 90 #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-6.3-rc2/include/uapi/linux/ |
A D | netlink.h | 99 #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)))
|
A D | if_addr.h | 69 #define IFA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct ifaddrmsg))))
|
A D | genetlink.h | 19 #define GENL_HDRLEN NLMSG_ALIGN(sizeof(struct genlmsghdr))
|
A D | rtnetlink.h | 397 #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)))) 796 #define TA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct tcamsg))))
|
A D | tipc_config.h | 370 #define TIPC_GENL_HDRLEN NLMSG_ALIGN(sizeof(struct tipc_genlmsghdr))
|
/linux-6.3-rc2/tools/testing/selftests/net/ |
A D | udpgso.c | 364 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()
|
A D | tun.c | 84 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()
|
/linux-6.3-rc2/tools/lib/bpf/ |
A D | nlattr.h | 138 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()
|
A D | netlink.c | 351 attr = (struct nlattr *) ((void *) ifi + NLMSG_ALIGN(sizeof(*ifi))); in __dump_link_nlmsg() 677 (struct nlattr *)((void *)tc + NLMSG_ALIGN(sizeof(*tc))), in get_tc_info()
|
/linux-6.3-rc2/include/net/ |
A D | netlink.h | 568 return NLMSG_ALIGN(nlmsg_msg_size(payload)); in nlmsg_total_size() 607 return (struct nlattr *) (data + NLMSG_ALIGN(hdrlen)); in nlmsg_attrdata() 617 return nlmsg_len(nlh) - NLMSG_ALIGN(hdrlen); in nlmsg_attrlen() 643 int totlen = NLMSG_ALIGN(nlh->nlmsg_len); in nlmsg_next() 964 if (unlikely(skb_tailroom(skb) < NLMSG_ALIGN(size))) in nlmsg_append() 967 if (NLMSG_ALIGN(size) - size) in nlmsg_append() 969 NLMSG_ALIGN(size) - size); in nlmsg_append() 970 return __skb_put(skb, NLMSG_ALIGN(size)); in nlmsg_append()
|
A D | genetlink.h | 481 return NLMSG_ALIGN(genlmsg_msg_size(payload)); in genlmsg_total_size()
|
/linux-6.3-rc2/tools/bpf/bpftool/ |
A D | net.c | 208 attr = (struct nlattr *) ((void *) t + NLMSG_ALIGN(sizeof(*t))); in __dump_class_nlmsg() 247 attr = (struct nlattr *) ((void *) t + NLMSG_ALIGN(sizeof(*t))); in __dump_qdisc_nlmsg() 286 attr = (struct nlattr *) ((void *) t + NLMSG_ALIGN(sizeof(*t))); in __dump_filter_nlmsg() 325 attr = (struct nlattr *) ((void *) ifi + NLMSG_ALIGN(sizeof(*ifi))); in __dump_link_nlmsg()
|
/linux-6.3-rc2/include/uapi/linux/netfilter/ |
A D | nfnetlink_compat.h | 60 + NLMSG_ALIGN(sizeof(struct nfgenmsg))))
|
/linux-6.3-rc2/drivers/scsi/ |
A D | scsi_netlink.c | 50 rlen = NLMSG_ALIGN(nlh->nlmsg_len); in scsi_nl_rcv_msg()
|
/linux-6.3-rc2/net/phonet/ |
A D | pn_netlink.c | 30 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-6.3-rc2/net/xfrm/ |
A D | xfrm_user.c | 1300 return NLMSG_ALIGN(4) in xfrm_spdinfo_msgsize() 1437 return NLMSG_ALIGN(4) in xfrm_sadinfo_msgsize() 2142 int len = NLMSG_ALIGN(sizeof(*up)); in xfrm_notify_userpolicy() 2343 return NLMSG_ALIGN(sizeof(struct xfrm_aevent_id)) in xfrm_aevent_msgsize() 2848 return NLMSG_ALIGN(sizeof(struct xfrm_userpolicy_id)) in xfrm_migrate_msgsize() 3134 return NLMSG_ALIGN(sizeof(struct xfrm_user_expire)) in xfrm_expire_msgsize() 3289 len += NLMSG_ALIGN(headlen); in xfrm_notify_sa() 3358 return NLMSG_ALIGN(sizeof(struct xfrm_user_acquire)) in xfrm_acquire_msgsize() 3562 len += NLMSG_ALIGN(headlen); in xfrm_notify_policy() 3666 return NLMSG_ALIGN(sizeof(struct xfrm_user_report)); in xfrm_report_msgsize() [all …]
|
/linux-6.3-rc2/drivers/infiniband/core/ |
A D | netlink.c | 248 msglen = NLMSG_ALIGN(nlh->nlmsg_len); in rdma_nl_rcv_skb()
|
A D | addr.c | 167 len += NLMSG_ALIGN(sizeof(*header)); in ib_nl_ip_send_msg() 181 header = skb_put(skb, NLMSG_ALIGN(sizeof(*header))); in ib_nl_ip_send_msg()
|
/linux-6.3-rc2/net/netfilter/ |
A D | nfnetlink.c | 555 msglen = NLMSG_ALIGN(nlh->nlmsg_len); in nfnetlink_rcv_batch() 616 msglen = NLMSG_ALIGN(nlh->nlmsg_len); in nfnetlink_rcv_skb_batch()
|
/linux-6.3-rc2/net/core/ |
A D | sock_diag.c | 120 return NLMSG_ALIGN(sizeof(struct inet_diag_msg) in sock_diag_nlmsg_size()
|
/linux-6.3-rc2/tools/accounting/ |
A D | procacct.c | 147 msg.n.nlmsg_len += NLMSG_ALIGN(na->nla_len); in send_cmd()
|
A D | getdelays.c | 140 msg.n.nlmsg_len += NLMSG_ALIGN(na->nla_len); in send_cmd()
|
/linux-6.3-rc2/net/mctp/ |
A D | device.c | 54 return NLMSG_ALIGN(sizeof(struct ifaddrmsg)) in mctp_addrinfo_size()
|