| /kernel/linux/linux-5.10/tools/testing/selftests/net/mptcp/ |
| D | pm_nl_ctl.c | 46 off += NLMSG_ALIGN(sizeof(*nh)); in init_genl_req() 51 off += NLMSG_ALIGN(sizeof(*gh)); in init_genl_req() 149 char data[NLMSG_ALIGN(sizeof(struct nlmsghdr)) + in resolve_mptcp_pm_netlink() 150 NLMSG_ALIGN(sizeof(struct genlmsghdr)) + in resolve_mptcp_pm_netlink() 166 off += NLMSG_ALIGN(rta->rta_len); in resolve_mptcp_pm_netlink() 174 char data[NLMSG_ALIGN(sizeof(struct nlmsghdr)) + in add_addr() 175 NLMSG_ALIGN(sizeof(struct genlmsghdr)) + in add_addr() 198 off += NLMSG_ALIGN(nest->rta_len); in add_addr() 212 off += NLMSG_ALIGN(rta->rta_len); in add_addr() 219 off += NLMSG_ALIGN(rta->rta_len); in add_addr() [all …]
|
| /kernel/linux/linux-5.10/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)))
|
| /kernel/linux/patches/linux-4.19/prebuilts/usr/include/linux/ |
| D | netlink.h | 66 #define NLMSG_ALIGN(len) ( ((len)+NLMSG_ALIGNTO-1) & ~(NLMSG_ALIGNTO-1) ) macro 67 #define NLMSG_HDRLEN ((int) NLMSG_ALIGN(sizeof(struct nlmsghdr))) 69 #define NLMSG_SPACE(len) NLMSG_ALIGN(NLMSG_LENGTH(len)) 71 #define NLMSG_NEXT(nlh,len) ((len) -= NLMSG_ALIGN((nlh)->nlmsg_len), \ 72 (struct nlmsghdr*)(((char*)(nlh)) + NLMSG_ALIGN((nlh)->nlmsg_len)))
|
| D | netfilter_decnet.h | 37 #define NFDN_RTMSG(r) ((unsigned char *)(r) + NLMSG_ALIGN(sizeof(struct nf_dn_rtmsg)))
|
| D | if_addr.h | 51 #define IFA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct ifaddrmsg))))
|
| D | genetlink.h | 18 #define GENL_HDRLEN NLMSG_ALIGN(sizeof(struct genlmsghdr))
|
| D | rtnetlink.h | 253 #define RTM_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct rtmsg)))) 422 #define TCA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct tcmsg)))) 540 #define TA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct tcamsg))))
|
| /kernel/linux/linux-5.10/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)))
|
| D | netfilter_decnet.h | 53 #define NFDN_RTMSG(r) ((unsigned char *)(r) + NLMSG_ALIGN(sizeof(struct nf_dn_rtmsg)))
|
| D | if_addr.h | 68 #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 | 375 #define RTM_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct rtmsg)))) 624 #define TCA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct tcmsg)))) 765 #define TA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct tcamsg))))
|
| /kernel/linux/patches/linux-5.10/prebuilts/usr/include/linux/ |
| D | netlink.h | 79 #define NLMSG_ALIGN(len) (((len) + NLMSG_ALIGNTO - 1) & ~(NLMSG_ALIGNTO - 1)) macro 80 #define NLMSG_HDRLEN ((int) NLMSG_ALIGN(sizeof(struct nlmsghdr))) 82 #define NLMSG_SPACE(len) NLMSG_ALIGN(NLMSG_LENGTH(len)) 84 …fine NLMSG_NEXT(nlh,len) ((len) -= NLMSG_ALIGN((nlh)->nlmsg_len), (struct nlmsghdr *) (((char *) (…
|
| D | netfilter_decnet.h | 44 #define NFDN_RTMSG(r) ((unsigned char *) (r) + NLMSG_ALIGN(sizeof(struct nf_dn_rtmsg)))
|
| D | if_addr.h | 64 #define IFA_RTA(r) ((struct rtattr *) (((char *) (r)) + NLMSG_ALIGN(sizeof(struct ifaddrmsg))))
|
| D | genetlink.h | 31 #define GENL_HDRLEN NLMSG_ALIGN(sizeof(struct genlmsghdr))
|
| D | rtnetlink.h | 285 #define RTM_RTA(r) ((struct rtattr *) (((char *) (r)) + NLMSG_ALIGN(sizeof(struct rtmsg)))) 453 #define TCA_RTA(r) ((struct rtattr *) (((char *) (r)) + NLMSG_ALIGN(sizeof(struct tcmsg)))) 572 #define TA_RTA(r) ((struct rtattr *) (((char *) (r)) + NLMSG_ALIGN(sizeof(struct tcamsg))))
|
| /kernel/linux/linux-5.10/tools/testing/selftests/net/ |
| 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()
|
| /kernel/linux/linux-5.10/net/decnet/netfilter/ |
| D | dn_rtmsg.c | 40 size = NLMSG_ALIGN(rt_skb->len) + in dnrmg_build_message() 41 NLMSG_ALIGN(sizeof(struct nf_dn_rtmsg)); in dnrmg_build_message()
|
| /kernel/linux/linux-5.10/tools/bpf/bpftool/ |
| D | net.c | 206 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()
|
| /kernel/linux/patches/linux-5.10/prebuilts/usr/include/linux/netfilter/ |
| D | nfnetlink_compat.h | 48 #define NFM_NFA(n) ((struct nfattr *) (((char *) (n)) + NLMSG_ALIGN(sizeof(struct nfgenmsg))))
|
| /kernel/linux/linux-5.10/include/uapi/linux/netfilter/ |
| D | nfnetlink_compat.h | 60 + NLMSG_ALIGN(sizeof(struct nfgenmsg))))
|
| /kernel/linux/patches/linux-4.19/prebuilts/usr/include/linux/netfilter/ |
| D | nfnetlink_compat.h | 44 + NLMSG_ALIGN(sizeof(struct nfgenmsg))))
|
| /kernel/linux/linux-5.10/drivers/scsi/ |
| D | scsi_netlink.c | 50 rlen = NLMSG_ALIGN(nlh->nlmsg_len); in scsi_nl_rcv_msg()
|
| /kernel/linux/linux-5.10/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 ifaddrmsg)) + in rtm_phonet_notify()
|