/kernel/linux/linux-5.10/tools/lib/bpf/ |
H A D | netlink.c | 141 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 D | rtnetlink.c | 866 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 D | main.h | 253 struct ifinfomsg; 255 int do_xdp_dump(struct ifinfomsg *ifinfo, struct nlattr **tb);
|
H A D | net.c | 319 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 D | netlink_dumper.c | 72 int do_xdp_dump(struct ifinfomsg *ifinfo, struct nlattr **tb) in do_xdp_dump()
|
/kernel/linux/linux-6.6/tools/bpf/bpftool/ |
H A D | main.h | 236 struct ifinfomsg; 238 int do_xdp_dump(struct ifinfomsg *ifinfo, struct nlattr **tb);
|
H A D | netlink_dumper.c | 72 int do_xdp_dump(struct ifinfomsg *ifinfo, struct nlattr **tb) in do_xdp_dump()
|
H A D | net.c | 326 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 D | vxcan.c | 173 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 D | vxcan.c | 186 struct ifinfomsg *ifmp = NULL; in vxcan_newlink() 287 [VXCAN_INFO_PEER] = { .len = sizeof(struct ifinfomsg) },
|
/kernel/linux/linux-5.10/include/net/ |
H A D | rtnetlink.h | 167 int rtnl_configure_link(struct net_device *dev, const struct ifinfomsg *ifm);
|
/kernel/linux/linux-6.6/tools/lib/bpf/ |
H A D | nlattr.h | 60 struct ifinfomsg ifinfo;
|
H A D | netlink.c | 294 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 D | rtnetlink.c | 898 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 D | rtnetlink.h | 190 int rtnl_configure_link(struct net_device *dev, const struct ifinfomsg *ifm,
|
/kernel/linux/linux-6.6/tools/testing/selftests/net/ |
H A D | tun.c | 71 struct ifinfomsg ifm; in tun_delete()
|
H A D | tap.c | 89 struct ifinfomsg info; in dev_create() 147 struct ifinfomsg info; in dev_delete()
|
/kernel/linux/linux-5.10/tools/include/uapi/linux/ |
H A D | if_link.h | 181 #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 D | if_link.h | 360 #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 D | if_link.h | 397 #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 D | if_link.h | 161 #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 D | if_link.h | 371 #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 D | if_link.h | 161 #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 D | if_link.h | 143 #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 D | br_netlink.c | 162 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()
|