| /linux/tools/testing/selftests/bpf/prog_tests/ |
| H A D | xfrm_info.c | 171 static struct rtattr *rtattr_add(struct nlmsghdr *nh, unsigned short type, in rtattr_add() 174 struct rtattr *rta = in rtattr_add() 175 (struct rtattr *)((uint8_t *)nh + RTA_ALIGN(nh->nlmsg_len)); in rtattr_add() 182 static struct rtattr *rtattr_add_str(struct nlmsghdr *nh, unsigned short type, in rtattr_add_str() 185 struct rtattr *rta = rtattr_add(nh, type, strlen(s)); in rtattr_add_str() 191 static struct rtattr *rtattr_begin(struct nlmsghdr *nh, unsigned short type) in rtattr_begin() 196 static void rtattr_end(struct nlmsghdr *nh, struct rtattr *attr) in rtattr_end() 210 struct rtattr *link_info, *info_data; in setup_xfrmi_external_dev()
|
| H A D | tc_redirect.c | 166 struct rtattr *linkinfo, *data, *peer_info; in create_netkit()
|
| /linux/tools/testing/selftests/net/mptcp/ |
| H A D | mptcp_diag.c | 124 struct rtattr rta_proto; in send_query() 159 static void parse_rtattr_flags(struct rtattr *tb[], int max, struct rtattr *rta, in parse_rtattr_flags() 164 memset(tb, 0, sizeof(struct rtattr *) * (max + 1)); in parse_rtattr_flags() 209 static void print_subflow_info(struct rtattr *tb[]) in print_subflow_info() 268 struct rtattr *tb[INET_DIAG_MAX + 1]; in parse_nlmsg() 270 parse_rtattr_flags(tb, INET_DIAG_MAX, (struct rtattr *)(r + 1), in parse_nlmsg() 289 struct rtattr *ulpinfo[INET_ULP_INFO_MAX + 1] = { 0 }; in parse_nlmsg() 295 struct rtattr *sfinfo[MPTCP_SUBFLOW_ATTR_MAX + 1] = { 0 }; in parse_nlmsg()
|
| H A D | pm_nl_ctl.c | 80 struct rtattr *attrs = (struct rtattr *)NLMSG_DATA(nh); in nl_error() 107 struct rtattr *attrs; in capture_events() 150 attrs = (struct rtattr *) ((char *) ghdr + GENL_HDRLEN); in capture_events() 258 struct rtattr *attrs; in genl_parse_getfamily() 259 struct rtattr *grps; in genl_parse_getfamily() 260 struct rtattr *grp; in genl_parse_getfamily() 278 attrs = (struct rtattr *) ((char *) ghdr + GENL_HDRLEN); in genl_parse_getfamily() 328 struct rtattr *rta; in resolve_mptcp_pm_netlink() 352 struct rtattr *rt in dsf() [all...] |
| /linux/tools/testing/selftests/bpf/ |
| H A D | netlink_helpers.h | 24 ((struct rtattr *) (((void *) (nmsg)) + NLMSG_ALIGN((nmsg)->nlmsg_len))) 44 struct rtattr *addattr_nest(struct nlmsghdr *n, int maxlen, int type); 45 int addattr_nest_end(struct nlmsghdr *n, struct rtattr *nest);
|
| H A D | netlink_helpers.c | 316 struct rtattr *rta; in addattr_l() 346 struct rtattr *addattr_nest(struct nlmsghdr *n, int maxlen, int type) in addattr_nest() 348 struct rtattr *nest = NLMSG_TAIL(n); in addattr_nest() 354 int addattr_nest_end(struct nlmsghdr *n, struct rtattr *nest) in addattr_nest_end()
|
| H A D | xsk.c | 396 struct rtattr *rta; in xsk_set_mtu() 409 rta = (struct rtattr *)(((char *)&req) + NLMSG_ALIGN(req.nh.nlmsg_len)); in xsk_set_mtu()
|
| /linux/tools/testing/selftests/net/tcp_ao/lib/ |
| H A D | netlink.c | 60 static inline struct rtattr *rtattr_hdr(struct nlmsghdr *nh) in rtattr_hdr() 62 return (struct rtattr *)((char *)(nh) + RTA_ALIGN((nh)->nlmsg_len)); in rtattr_hdr() 69 struct rtattr *attr = rtattr_hdr(nh); in rtattr_pack() 85 static struct rtattr *_rtattr_begin(struct nlmsghdr *nh, size_t req_sz, in _rtattr_begin() 88 struct rtattr *ret = rtattr_hdr(nh); in _rtattr_begin() 96 static inline struct rtattr *rtattr_begin(struct nlmsghdr *nh, size_t req_sz, in rtattr_begin() 102 static inline void rtattr_end(struct nlmsghdr *nh, struct rtattr *attr) in rtattr_end() 113 struct rtattr *peer_attr; in veth_pack_peerb() 144 struct rtattr *link_info, *info_data; in __add_veth() 358 struct rtattr *link_info, *info_data; in __add_vrf()
|
| /linux/tools/testing/selftests/net/ |
| H A D | tap.c | 33 static struct rtattr *rtattr_add(struct nlmsghdr *nh, unsigned short type, in rtattr_add() 36 struct rtattr *rta = in rtattr_add() 37 (struct rtattr *)((uint8_t *)nh + RTA_ALIGN(nh->nlmsg_len)); in rtattr_add() 44 static struct rtattr *rtattr_begin(struct nlmsghdr *nh, unsigned short type) in rtattr_begin() 49 static void rtattr_end(struct nlmsghdr *nh, struct rtattr *attr) in rtattr_end() 56 static struct rtattr *rtattr_add_str(struct nlmsghdr *nh, unsigned short type, in rtattr_add_str() 60 struct rtattr *rta; in rtattr_add_str() 68 static struct rtattr *rtattr_add_any(struct nlmsghdr *nh, unsigned short type, in rtattr_add_any() 71 struct rtattr *rta = rtattr_add(nh, type, len); in rtattr_add_any() 86 struct rtattr *link_info, *info_data; in dev_create()
|
| H A D | ipsec.c | 211 static inline struct rtattr *rtattr_hdr(struct nlmsghdr *nh) in rtattr_hdr() 213 return (struct rtattr *)((char *)(nh) + RTA_ALIGN((nh)->nlmsg_len)); in rtattr_hdr() 220 struct rtattr *attr = rtattr_hdr(nh); in rtattr_pack() 237 static struct rtattr *_rtattr_begin(struct nlmsghdr *nh, size_t req_sz, in _rtattr_begin() 240 struct rtattr *ret = rtattr_hdr(nh); in _rtattr_begin() 248 static inline struct rtattr *rtattr_begin(struct nlmsghdr *nh, size_t req_sz, in rtattr_begin() 254 static inline void rtattr_end(struct nlmsghdr *nh, struct rtattr *attr) in rtattr_end() 265 struct rtattr *peer_attr; in veth_pack_peerb() 319 struct rtattr *link_info, *info_data; in veth_add() 1682 struct rtattr *att in xfrm_spdinfo_attrs() [all...] |
| /linux/include/crypto/ |
| H A D | algapi.h | 53 struct rtattr; 82 int (*create)(struct crypto_template *tmpl, struct rtattr **tb); 158 struct crypto_attr_type *crypto_get_attr_type(struct rtattr **tb); 159 int crypto_check_attr_type(struct rtattr **tb, u32 type, u32 *mask_ret); 160 const char *crypto_attr_alg_name(struct rtattr *rta);
|
| /linux/tools/include/uapi/linux/ |
| H A D | rtnetlink.h | 219 struct rtattr { struct 228 #define RTA_OK(rta,len) ((len) >= (int)sizeof(struct rtattr) && \ argument 229 (rta)->rta_len >= sizeof(struct rtattr) && \ 232 (struct rtattr*)(((char*)(rta)) + RTA_ALIGN((rta)->rta_len))) 233 #define RTA_LENGTH(len) (RTA_ALIGN(sizeof(struct rtattr)) + (len)) 407 #define RTM_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct rtmsg)))) 448 #define RTNH_DATA(rtnh) ((struct rtattr*)(((char*)(rtnh)) + RTNH_LENGTH(0))) 663 #define TCA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct tcmsg)))) 817 #define TA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct tcamsg))))
|
| H A D | if_addr.h | 69 #define IFA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct ifaddrmsg))))
|
| /linux/crypto/ |
| H A D | algboss.c | 24 struct rtattr *tb[CRYPTO_MAX_ATTRS + 2]; 27 struct rtattr attr; 32 struct rtattr attr;
|
| H A D | authenc.c | 47 struct rtattr *rta = (struct rtattr *)key; in crypto_authenc_extractkeys() 360 struct rtattr **tb) in crypto_authenc_create()
|
| H A D | seqiv.c | 126 static int seqiv_aead_create(struct crypto_template *tmpl, struct rtattr **tb) in seqiv_aead_create()
|
| H A D | essiv.c | 440 static int essiv_create(struct crypto_template *tmpl, struct rtattr **tb) in essiv_create()
|
| /linux/tools/testing/selftests/net/af_unix/ |
| H A D | diag_uid.c | 120 struct rtattr *attr; in render_response() 126 attr = (struct rtattr *)(udr + 1); in render_response()
|
| /linux/include/uapi/linux/ |
| H A D | if_addr.h | 69 #define IFA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct ifaddrmsg))))
|
| /linux/samples/bpf/ |
| H A D | xdp_router_ipv4_user.c | 95 struct rtattr *rt_attr; in read_route() 123 rt_attr = (struct rtattr *)RTM_RTA(rt_msg); in read_route() 318 struct rtattr *rt_attr; in read_arp() 335 rt_attr = (struct rtattr *)RTM_RTA(rt_msg); in read_arp()
|
| /linux/include/crypto/internal/ |
| H A D | aead.h | 16 struct rtattr;
|
| /linux/tools/testing/selftests/net/ovpn/ |
| H A D | ovpn-cli.c | 1085 struct rtattr *rta; in ovpn_addattr() 1107 static struct rtattr *ovpn_nest_start(struct nlmsghdr *msg, size_t max_size, 1110 struct rtattr *nest = nlmsg_tail(msg); in ovpn_rt_socket() 1118 static void ovpn_nest_end(struct nlmsghdr *msg, struct rtattr *nest) in ovpn_rt_socket() 1376 struct rtattr *linkinfo, *data; in ovpn_new_iface()
|