/linux-6.12.1/tools/testing/selftests/net/mptcp/ |
D | pm_nl_ctl.c | 54 off += NLMSG_ALIGN(sizeof(*nh)); in init_genl_req() 59 off += NLMSG_ALIGN(sizeof(*gh)); in init_genl_req() 101 u_int8_t buffer[NLMSG_ALIGN(sizeof(struct nlmsghdr)) + in capture_events() 102 NLMSG_ALIGN(sizeof(struct genlmsghdr)) + 1024]; in capture_events() 118 res_len = NLMSG_ALIGN(sizeof(struct nlmsghdr)) + in capture_events() 119 NLMSG_ALIGN(sizeof(struct genlmsghdr)) + 1024; in capture_events() 310 char data[NLMSG_ALIGN(sizeof(struct nlmsghdr)) + in resolve_mptcp_pm_netlink() 311 NLMSG_ALIGN(sizeof(struct genlmsghdr)) + in resolve_mptcp_pm_netlink() 327 off += NLMSG_ALIGN(rta->rta_len); in resolve_mptcp_pm_netlink() 335 char data[NLMSG_ALIGN(sizeof(struct nlmsghdr)) + in dsf() [all …]
|
/linux-6.12.1/tools/testing/selftests/bpf/ |
D | netlink_helpers.c | 211 status -= NLMSG_ALIGN(len); in __rtnl_talk_iov() 212 h = (struct nlmsghdr *)((char *)h + NLMSG_ALIGN(len)); in __rtnl_talk_iov() 249 status -= NLMSG_ALIGN(len); in __rtnl_talk_iov() 250 h = (struct nlmsghdr *)((char *)h + NLMSG_ALIGN(len)); in __rtnl_talk_iov() 318 if (NLMSG_ALIGN(n->nlmsg_len) + RTA_ALIGN(len) > maxlen) { in addattr_l() 328 n->nlmsg_len = NLMSG_ALIGN(n->nlmsg_len) + RTA_ALIGN(len); in addattr_l() 334 if (NLMSG_ALIGN(n->nlmsg_len) + NLMSG_ALIGN(len) > maxlen) { in addraw_l() 341 memset((void *) NLMSG_TAIL(n) + len, 0, NLMSG_ALIGN(len) - len); in addraw_l() 342 n->nlmsg_len = NLMSG_ALIGN(n->nlmsg_len) + NLMSG_ALIGN(len); in addraw_l()
|
D | netlink_helpers.h | 24 ((struct rtattr *) (((void *) (nmsg)) + NLMSG_ALIGN((nmsg)->nlmsg_len)))
|
D | xsk.c | 409 rta = (struct rtattr *)(((char *)&req) + NLMSG_ALIGN(req.nh.nlmsg_len)); in xsk_set_mtu() 412 req.nh.nlmsg_len = NLMSG_ALIGN(req.nh.nlmsg_len) + RTA_LENGTH(sizeof(mtu)); in xsk_set_mtu()
|
/linux-6.12.1/tools/include/uapi/linux/ |
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.12.1/include/uapi/linux/ |
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)))
|
D | if_addr.h | 69 #define IFA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct ifaddrmsg))))
|
D | genetlink.h | 19 #define GENL_HDRLEN NLMSG_ALIGN(sizeof(struct genlmsghdr))
|
D | rtnetlink.h | 397 #define RTM_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct rtmsg)))) 653 #define TCA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct tcmsg)))) 801 #define TA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct tcamsg))))
|
D | tipc_config.h | 370 #define TIPC_GENL_HDRLEN NLMSG_ALIGN(sizeof(struct tipc_genlmsghdr))
|
/linux-6.12.1/tools/lib/bpf/ |
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()
|
/linux-6.12.1/tools/net/ynl/lib/ |
D | ynl-priv.h | 176 nlh->nlmsg_len += NLMSG_ALIGN(size); in ynl_nlmsg_put_extra_header() 240 attr = (struct nlattr *)((char *)start + NLMSG_ALIGN(skip)); in ynl_attr_first() 250 o = nlh->nlmsg_len + NLA_HDRLEN + NLMSG_ALIGN(size) > nlh->nlmsg_pid; in __ynl_attr_put_overflow() 295 nlh->nlmsg_len += NLMSG_ALIGN(attr->nla_len); in ynl_attr_put() 314 nlh->nlmsg_len += NLMSG_ALIGN(attr->nla_len); in ynl_attr_put_str()
|
/linux-6.12.1/include/net/ |
D | netlink.h | 580 return NLMSG_ALIGN(nlmsg_msg_size(payload)); in nlmsg_total_size() 619 return (struct nlattr *) (data + NLMSG_ALIGN(hdrlen)); in nlmsg_attrdata() 629 return nlmsg_len(nlh) - NLMSG_ALIGN(hdrlen); in nlmsg_attrlen() 655 int totlen = NLMSG_ALIGN(nlh->nlmsg_len); in nlmsg_next() 976 if (unlikely(skb_tailroom(skb) < NLMSG_ALIGN(size))) in nlmsg_append() 979 if (NLMSG_ALIGN(size) - size) in nlmsg_append() 981 NLMSG_ALIGN(size) - size); in nlmsg_append() 982 return __skb_put(skb, NLMSG_ALIGN(size)); in nlmsg_append()
|
D | genetlink.h | 597 return NLMSG_ALIGN(genlmsg_msg_size(payload)); in genlmsg_total_size()
|
/linux-6.12.1/tools/testing/selftests/net/ |
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.12.1/include/uapi/linux/netfilter/ |
D | nfnetlink_compat.h | 60 + NLMSG_ALIGN(sizeof(struct nfgenmsg))))
|
/linux-6.12.1/drivers/scsi/ |
D | scsi_netlink.c | 50 rlen = NLMSG_ALIGN(nlh->nlmsg_len); in scsi_nl_rcv_msg()
|
/linux-6.12.1/net/phonet/ |
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 rtmsg)) + in rtm_phonet_notify()
|
/linux-6.12.1/tools/bpf/bpftool/ |
D | net.c | 219 attr = (struct nlattr *) ((void *) t + NLMSG_ALIGN(sizeof(*t))); in __dump_class_nlmsg() 258 attr = (struct nlattr *) ((void *) t + NLMSG_ALIGN(sizeof(*t))); in __dump_qdisc_nlmsg() 297 attr = (struct nlattr *) ((void *) t + NLMSG_ALIGN(sizeof(*t))); in __dump_filter_nlmsg() 336 attr = (struct nlattr *) ((void *) ifi + NLMSG_ALIGN(sizeof(*ifi))); in __dump_link_nlmsg()
|
/linux-6.12.1/net/xfrm/ |
D | xfrm_user.c | 1469 return NLMSG_ALIGN(4) in xfrm_spdinfo_msgsize() 1606 return NLMSG_ALIGN(4) in xfrm_sadinfo_msgsize() 2322 int len = NLMSG_ALIGN(sizeof(*up)); in xfrm_notify_userpolicy() 2385 int len = NLMSG_ALIGN(sizeof(struct xfrm_userpolicy_default)); in xfrm_get_default() 2523 return NLMSG_ALIGN(sizeof(struct xfrm_aevent_id)) in xfrm_aevent_msgsize() 3035 return NLMSG_ALIGN(sizeof(struct xfrm_userpolicy_id)) in xfrm_migrate_msgsize() 3349 return NLMSG_ALIGN(sizeof(struct xfrm_user_expire)) + in xfrm_expire_msgsize() 3427 int len = NLMSG_ALIGN(sizeof(struct xfrm_usersa_flush)); in xfrm_notify_sa_flush() 3517 len += NLMSG_ALIGN(headlen); in xfrm_notify_sa() 3586 return NLMSG_ALIGN(sizeof(struct xfrm_user_acquire)) in xfrm_acquire_msgsize() [all …]
|
/linux-6.12.1/drivers/infiniband/core/ |
D | netlink.c | 248 msglen = NLMSG_ALIGN(nlh->nlmsg_len); in rdma_nl_rcv_skb()
|
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.12.1/net/netfilter/ |
D | nfnetlink.c | 561 msglen = NLMSG_ALIGN(nlh->nlmsg_len); in nfnetlink_rcv_batch() 623 msglen = NLMSG_ALIGN(nlh->nlmsg_len); in nfnetlink_rcv_skb_batch()
|
/linux-6.12.1/net/core/ |
D | sock_diag.c | 121 return NLMSG_ALIGN(sizeof(struct inet_diag_msg) in sock_diag_nlmsg_size()
|
/linux-6.12.1/tools/accounting/ |
D | procacct.c | 147 msg.n.nlmsg_len += NLMSG_ALIGN(na->nla_len); in send_cmd()
|