Home
last modified time | relevance | path

Searched refs:ifinfomsg (Results 1 - 25 of 59) sorted by relevance

123

/kernel/linux/linux-5.10/tools/lib/bpf/
H A Dnetlink.c141 struct ifinfomsg ifinfo; in __bpf_set_link_xdp_fd_replace()
151 req.nh.nlmsg_len = NLMSG_LENGTH(sizeof(struct ifinfomsg)); in __bpf_set_link_xdp_fd_replace()
229 struct ifinfomsg *ifi = NLMSG_DATA(nlh); in __dump_link_nlmsg()
244 struct ifinfomsg *ifinfo = msg; in get_xdp_info()
357 struct ifinfomsg ifm; in libbpf_nl_get_link()
359 .nlh.nlmsg_len = NLMSG_LENGTH(sizeof(struct ifinfomsg)), in libbpf_nl_get_link()
/kernel/linux/linux-5.10/net/core/
H A Drtnetlink.c866 const struct ifinfomsg *ifm) in rtnl_dev_combine_flags()
1019 return NLMSG_ALIGN(sizeof(struct ifinfomsg)) in if_nlmsg_size()
1712 struct ifinfomsg *ifm; in rtnl_fill_ifinfo()
2025 struct ifinfomsg *ifm; in rtnl_valid_dump_ifinfo_req()
2049 * The correct header is ifinfomsg. It is consistent with rtnl_getlink. in rtnl_valid_dump_ifinfo_req()
2053 * attribute, its netlink message is shorter than struct ifinfomsg. in rtnl_valid_dump_ifinfo_req()
2055 hdrlen = nlmsg_len(nlh) < sizeof(struct ifinfomsg) ? in rtnl_valid_dump_ifinfo_req()
2056 sizeof(struct rtgenmsg) : sizeof(struct ifinfomsg); in rtnl_valid_dump_ifinfo_req()
2167 const struct ifinfomsg *ifmp; in rtnl_nla_parse_ifinfomsg()
2172 attrs = nla_data(nla_peer) + sizeof(struct ifinfomsg); in rtnl_nla_parse_ifinfomsg()
[all...]
/kernel/linux/linux-5.10/tools/bpf/bpftool/
H A Dmain.h253 struct ifinfomsg;
255 int do_xdp_dump(struct ifinfomsg *ifinfo, struct nlattr **tb);
H A Dnet.c319 struct ifinfomsg *ifi = NLMSG_DATA(nlh); in __dump_link_nlmsg()
335 struct ifinfomsg ifm; in netlink_get_link()
337 .nlh.nlmsg_len = NLMSG_LENGTH(sizeof(struct ifinfomsg)), in netlink_get_link()
355 struct ifinfomsg *ifinfo = msg; in dump_link_nlmsg()
H A Dnetlink_dumper.c72 int do_xdp_dump(struct ifinfomsg *ifinfo, struct nlattr **tb) in do_xdp_dump()
/kernel/linux/linux-6.6/tools/bpf/bpftool/
H A Dmain.h236 struct ifinfomsg;
238 int do_xdp_dump(struct ifinfomsg *ifinfo, struct nlattr **tb);
H A Dnetlink_dumper.c72 int do_xdp_dump(struct ifinfomsg *ifinfo, struct nlattr **tb) in do_xdp_dump()
H A Dnet.c326 struct ifinfomsg *ifi = NLMSG_DATA(nlh); in __dump_link_nlmsg()
342 struct ifinfomsg ifm; in netlink_get_link()
344 .nlh.nlmsg_len = NLMSG_LENGTH(sizeof(struct ifinfomsg)), in netlink_get_link()
362 struct ifinfomsg *ifinfo = msg; in dump_link_nlmsg()
/kernel/linux/linux-5.10/drivers/net/can/
H A Dvxcan.c173 struct ifinfomsg *ifmp = NULL; in vxcan_newlink()
274 [VXCAN_INFO_PEER] = { .len = sizeof(struct ifinfomsg) },
/kernel/linux/linux-6.6/drivers/net/can/
H A Dvxcan.c186 struct ifinfomsg *ifmp = NULL; in vxcan_newlink()
287 [VXCAN_INFO_PEER] = { .len = sizeof(struct ifinfomsg) },
/kernel/linux/linux-5.10/include/net/
H A Drtnetlink.h167 int rtnl_configure_link(struct net_device *dev, const struct ifinfomsg *ifm);
/kernel/linux/linux-6.6/tools/lib/bpf/
H A Dnlattr.h60 struct ifinfomsg ifinfo;
H A Dnetlink.c294 req.nh.nlmsg_len = NLMSG_LENGTH(sizeof(struct ifinfomsg)); in __bpf_set_link_xdp_fd_replace()
348 struct ifinfomsg *ifi = NLMSG_DATA(nlh); in __dump_link_nlmsg()
364 struct ifinfomsg *ifinfo = msg; in get_xdp_info()
434 .nh.nlmsg_len = NLMSG_LENGTH(sizeof(struct ifinfomsg)), in bpf_xdp_query()
/kernel/linux/linux-6.6/net/core/
H A Drtnetlink.c898 const struct ifinfomsg *ifm) in rtnl_dev_combine_flags()
1061 return NLMSG_ALIGN(sizeof(struct ifinfomsg)) in if_nlmsg_size()
1784 struct ifinfomsg *ifm; in rtnl_fill_ifinfo()
2131 struct ifinfomsg *ifm; in rtnl_valid_dump_ifinfo_req()
2155 * The correct header is ifinfomsg. It is consistent with rtnl_getlink. in rtnl_valid_dump_ifinfo_req()
2159 * attribute, its netlink message is shorter than struct ifinfomsg. in rtnl_valid_dump_ifinfo_req()
2161 hdrlen = nlmsg_len(nlh) < sizeof(struct ifinfomsg) ? in rtnl_valid_dump_ifinfo_req()
2162 sizeof(struct rtgenmsg) : sizeof(struct ifinfomsg); in rtnl_valid_dump_ifinfo_req()
2273 const struct ifinfomsg *ifmp; in rtnl_nla_parse_ifinfomsg()
2278 attrs = nla_data(nla_peer) + sizeof(struct ifinfomsg); in rtnl_nla_parse_ifinfomsg()
[all...]
/kernel/linux/linux-6.6/include/net/
H A Drtnetlink.h190 int rtnl_configure_link(struct net_device *dev, const struct ifinfomsg *ifm,
/kernel/linux/linux-6.6/tools/testing/selftests/net/
H A Dtun.c71 struct ifinfomsg ifm; in tun_delete()
H A Dtap.c89 struct ifinfomsg info; in dev_create()
147 struct ifinfomsg info; in dev_delete()
/kernel/linux/linux-5.10/tools/include/uapi/linux/
H A Dif_link.h181 #define IFLA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct ifinfomsg))))
182 #define IFLA_PAYLOAD(n) NLMSG_PAYLOAD(n,sizeof(struct ifinfomsg))
/kernel/linux/linux-5.10/include/uapi/linux/
H A Dif_link.h360 #define IFLA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct ifinfomsg))))
361 #define IFLA_PAYLOAD(n) NLMSG_PAYLOAD(n,sizeof(struct ifinfomsg))
/kernel/linux/linux-6.6/include/uapi/linux/
H A Dif_link.h397 #define IFLA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct ifinfomsg))))
398 #define IFLA_PAYLOAD(n) NLMSG_PAYLOAD(n,sizeof(struct ifinfomsg))
/kernel/linux/patches/linux-6.6/prebuilts/usr/include/linux/
H A Dif_link.h161 #define IFLA_RTA(r) ((struct rtattr *) (((char *) (r)) + NLMSG_ALIGN(sizeof(struct ifinfomsg))))
162 #define IFLA_PAYLOAD(n) NLMSG_PAYLOAD(n, sizeof(struct ifinfomsg))
/kernel/linux/linux-6.6/tools/include/uapi/linux/
H A Dif_link.h371 #define IFLA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct ifinfomsg))))
372 #define IFLA_PAYLOAD(n) NLMSG_PAYLOAD(n,sizeof(struct ifinfomsg))
/kernel/linux/patches/linux-5.10/prebuilts/usr/include/linux/
H A Dif_link.h161 #define IFLA_RTA(r) ((struct rtattr *) (((char *) (r)) + NLMSG_ALIGN(sizeof(struct ifinfomsg))))
162 #define IFLA_PAYLOAD(n) NLMSG_PAYLOAD(n, sizeof(struct ifinfomsg))
/kernel/linux/patches/linux-4.19/prebuilts/usr/include/linux/
H A Dif_link.h143 #define IFLA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct ifinfomsg))))
144 #define IFLA_PAYLOAD(n) NLMSG_PAYLOAD(n,sizeof(struct ifinfomsg))
/kernel/linux/linux-5.10/net/bridge/
H A Dbr_netlink.c162 return NLMSG_ALIGN(sizeof(struct ifinfomsg)) in br_nlmsg_size()
386 struct ifinfomsg *hdr; in br_fill_ifinfo()
918 protinfo = nlmsg_find_attr(nlh, sizeof(struct ifinfomsg), IFLA_PROTINFO); in br_setlink()
919 afspec = nlmsg_find_attr(nlh, sizeof(struct ifinfomsg), IFLA_AF_SPEC); in br_setlink()
974 afspec = nlmsg_find_attr(nlh, sizeof(struct ifinfomsg), IFLA_AF_SPEC); in br_dellink()

Completed in 38 milliseconds

123