ifm 165 include/net/rtnetlink.h int rtnl_configure_link(struct net_device *dev, const struct ifinfomsg *ifm); ifm 859 net/core/rtnetlink.c const struct ifinfomsg *ifm) ifm 861 net/core/rtnetlink.c unsigned int flags = ifm->ifi_flags; ifm 864 net/core/rtnetlink.c if (ifm->ifi_change) ifm 865 net/core/rtnetlink.c flags = (flags & ifm->ifi_change) | ifm 866 net/core/rtnetlink.c (rtnl_dev_get_flags(dev) & ~ifm->ifi_change); ifm 1594 net/core/rtnetlink.c struct ifinfomsg *ifm; ifm 1598 net/core/rtnetlink.c nlh = nlmsg_put(skb, pid, seq, type, sizeof(*ifm), flags); ifm 1602 net/core/rtnetlink.c ifm = nlmsg_data(nlh); ifm 1603 net/core/rtnetlink.c ifm->ifi_family = AF_UNSPEC; ifm 1604 net/core/rtnetlink.c ifm->__ifi_pad = 0; ifm 1605 net/core/rtnetlink.c ifm->ifi_type = dev->type; ifm 1606 net/core/rtnetlink.c ifm->ifi_index = dev->ifindex; ifm 1607 net/core/rtnetlink.c ifm->ifi_flags = dev_get_flags(dev); ifm 1608 net/core/rtnetlink.c ifm->ifi_change = change; ifm 1890 net/core/rtnetlink.c struct ifinfomsg *ifm; ifm 1892 net/core/rtnetlink.c if (nlh->nlmsg_len < nlmsg_msg_size(sizeof(*ifm))) { ifm 1897 net/core/rtnetlink.c ifm = nlmsg_data(nlh); ifm 1898 net/core/rtnetlink.c if (ifm->__ifi_pad || ifm->ifi_type || ifm->ifi_flags || ifm 1899 net/core/rtnetlink.c ifm->ifi_change) { ifm 1903 net/core/rtnetlink.c if (ifm->ifi_index) { ifm 1908 net/core/rtnetlink.c return nlmsg_parse_deprecated_strict(nlh, sizeof(*ifm), tb, ifm 2405 net/core/rtnetlink.c struct net_device *dev, struct ifinfomsg *ifm, ifm 2498 net/core/rtnetlink.c if (ifm->ifi_index > 0 && ifname[0]) { ifm 2518 net/core/rtnetlink.c if (ifm->ifi_flags || ifm->ifi_change) { ifm 2519 net/core/rtnetlink.c err = dev_change_flags(dev, rtnl_dev_combine_flags(dev, ifm), ifm 2751 net/core/rtnetlink.c struct ifinfomsg *ifm; ifm 2757 net/core/rtnetlink.c err = nlmsg_parse_deprecated(nlh, sizeof(*ifm), tb, IFLA_MAX, ifm 2772 net/core/rtnetlink.c ifm = nlmsg_data(nlh); ifm 2773 net/core/rtnetlink.c if (ifm->ifi_index > 0) ifm 2774 net/core/rtnetlink.c dev = __dev_get_by_index(net, ifm->ifi_index); ifm 2785 net/core/rtnetlink.c err = do_setlink(skb, dev, ifm, extack, tb, ifname, 0); ifm 2848 net/core/rtnetlink.c struct ifinfomsg *ifm; ifm 2854 net/core/rtnetlink.c err = nlmsg_parse_deprecated(nlh, sizeof(*ifm), tb, IFLA_MAX, ifm 2874 net/core/rtnetlink.c ifm = nlmsg_data(nlh); ifm 2875 net/core/rtnetlink.c if (ifm->ifi_index > 0) ifm 2876 net/core/rtnetlink.c dev = __dev_get_by_index(tgt_net, ifm->ifi_index); ifm 2885 net/core/rtnetlink.c if (tb[IFLA_IFNAME] || ifm->ifi_index > 0) ifm 2900 net/core/rtnetlink.c int rtnl_configure_link(struct net_device *dev, const struct ifinfomsg *ifm) ifm 2906 net/core/rtnetlink.c if (ifm && (ifm->ifi_flags || ifm->ifi_change)) { ifm 2907 net/core/rtnetlink.c err = __dev_change_flags(dev, rtnl_dev_combine_flags(dev, ifm), ifm 3000 net/core/rtnetlink.c struct ifinfomsg *ifm, ifm 3009 net/core/rtnetlink.c err = do_setlink(skb, dev, ifm, extack, tb, NULL, 0); ifm 3033 net/core/rtnetlink.c struct ifinfomsg *ifm; ifm 3041 net/core/rtnetlink.c err = nlmsg_parse_deprecated(nlh, sizeof(*ifm), tb, IFLA_MAX, ifm 3055 net/core/rtnetlink.c ifm = nlmsg_data(nlh); ifm 3056 net/core/rtnetlink.c if (ifm->ifi_index > 0) ifm 3057 net/core/rtnetlink.c dev = __dev_get_by_index(net, ifm->ifi_index); ifm 3160 net/core/rtnetlink.c return do_setlink(skb, dev, ifm, extack, tb, ifname, status); ifm 3164 net/core/rtnetlink.c if (ifm->ifi_index == 0 && tb[IFLA_GROUP]) ifm 3167 net/core/rtnetlink.c ifm, extack, tb); ifm 3224 net/core/rtnetlink.c dev->ifindex = ifm->ifi_index; ifm 3245 net/core/rtnetlink.c err = rtnl_configure_link(dev, ifm); ifm 3295 net/core/rtnetlink.c struct ifinfomsg *ifm; ifm 3298 net/core/rtnetlink.c if (nlh->nlmsg_len < nlmsg_msg_size(sizeof(*ifm))) { ifm 3304 net/core/rtnetlink.c return nlmsg_parse_deprecated(nlh, sizeof(*ifm), tb, IFLA_MAX, ifm 3307 net/core/rtnetlink.c ifm = nlmsg_data(nlh); ifm 3308 net/core/rtnetlink.c if (ifm->__ifi_pad || ifm->ifi_type || ifm->ifi_flags || ifm 3309 net/core/rtnetlink.c ifm->ifi_change) { ifm 3314 net/core/rtnetlink.c err = nlmsg_parse_deprecated_strict(nlh, sizeof(*ifm), tb, IFLA_MAX, ifm 3342 net/core/rtnetlink.c struct ifinfomsg *ifm; ifm 3373 net/core/rtnetlink.c ifm = nlmsg_data(nlh); ifm 3374 net/core/rtnetlink.c if (ifm->ifi_index > 0) ifm 3375 net/core/rtnetlink.c dev = __dev_get_by_index(tgt_net, ifm->ifi_index); ifm 4005 net/core/rtnetlink.c struct ifinfomsg *ifm; ifm 4017 net/core/rtnetlink.c ifm = nlmsg_data(nlh); ifm 4018 net/core/rtnetlink.c *brport_idx = ifm->ifi_index; ifm 4299 net/core/rtnetlink.c struct ifinfomsg *ifm; ifm 4306 net/core/rtnetlink.c nlh = nlmsg_put(skb, pid, seq, RTM_NEWLINK, sizeof(*ifm), nlflags); ifm 4310 net/core/rtnetlink.c ifm = nlmsg_data(nlh); ifm 4311 net/core/rtnetlink.c ifm->ifi_family = AF_BRIDGE; ifm 4312 net/core/rtnetlink.c ifm->__ifi_pad = 0; ifm 4313 net/core/rtnetlink.c ifm->ifi_type = dev->type; ifm 4314 net/core/rtnetlink.c ifm->ifi_index = dev->ifindex; ifm 4315 net/core/rtnetlink.c ifm->ifi_flags = dev_get_flags(dev); ifm 4316 net/core/rtnetlink.c ifm->ifi_change = 0; ifm 4397 net/core/rtnetlink.c struct ifinfomsg *ifm; ifm 4399 net/core/rtnetlink.c if (nlh->nlmsg_len < nlmsg_msg_size(sizeof(*ifm))) { ifm 4404 net/core/rtnetlink.c ifm = nlmsg_data(nlh); ifm 4405 net/core/rtnetlink.c if (ifm->__ifi_pad || ifm->ifi_type || ifm->ifi_flags || ifm 4406 net/core/rtnetlink.c ifm->ifi_change || ifm->ifi_index) { ifm 4554 net/core/rtnetlink.c struct ifinfomsg *ifm; ifm 4561 net/core/rtnetlink.c if (nlmsg_len(nlh) < sizeof(*ifm)) ifm 4564 net/core/rtnetlink.c ifm = nlmsg_data(nlh); ifm 4565 net/core/rtnetlink.c if (ifm->ifi_family != AF_BRIDGE) ifm 4568 net/core/rtnetlink.c dev = __dev_get_by_index(net, ifm->ifi_index); ifm 4631 net/core/rtnetlink.c struct ifinfomsg *ifm; ifm 4638 net/core/rtnetlink.c if (nlmsg_len(nlh) < sizeof(*ifm)) ifm 4641 net/core/rtnetlink.c ifm = nlmsg_data(nlh); ifm 4642 net/core/rtnetlink.c if (ifm->ifi_family != AF_BRIDGE) ifm 4645 net/core/rtnetlink.c dev = __dev_get_by_index(net, ifm->ifi_index); ifm 575 net/decnet/dn_dev.c struct ifaddrmsg *ifm; ifm 586 net/decnet/dn_dev.c err = nlmsg_parse_deprecated(nlh, sizeof(*ifm), tb, IFA_MAX, ifm 592 net/decnet/dn_dev.c ifm = nlmsg_data(nlh); ifm 593 net/decnet/dn_dev.c if ((dn_db = dn_dev_by_index(ifm->ifa_index)) == NULL) ifm 622 net/decnet/dn_dev.c struct ifaddrmsg *ifm; ifm 632 net/decnet/dn_dev.c err = nlmsg_parse_deprecated(nlh, sizeof(*ifm), tb, IFA_MAX, ifm 640 net/decnet/dn_dev.c ifm = nlmsg_data(nlh); ifm 641 net/decnet/dn_dev.c if ((dev = __dev_get_by_index(&init_net, ifm->ifa_index)) == NULL) ifm 659 net/decnet/dn_dev.c ifm->ifa_flags; ifm 660 net/decnet/dn_dev.c ifa->ifa_scope = ifm->ifa_scope; ifm 687 net/decnet/dn_dev.c struct ifaddrmsg *ifm; ifm 691 net/decnet/dn_dev.c nlh = nlmsg_put(skb, portid, seq, event, sizeof(*ifm), flags); ifm 695 net/decnet/dn_dev.c ifm = nlmsg_data(nlh); ifm 696 net/decnet/dn_dev.c ifm->ifa_family = AF_DECnet; ifm 697 net/decnet/dn_dev.c ifm->ifa_prefixlen = 16; ifm 698 net/decnet/dn_dev.c ifm->ifa_flags = ifa_flags; ifm 699 net/decnet/dn_dev.c ifm->ifa_scope = ifa->ifa_scope; ifm 700 net/decnet/dn_dev.c ifm->ifa_index = ifa->ifa_dev->dev->ifindex; ifm 651 net/ipv4/devinet.c struct ifaddrmsg *ifm; ifm 658 net/ipv4/devinet.c err = nlmsg_parse_deprecated(nlh, sizeof(*ifm), tb, IFA_MAX, ifm 663 net/ipv4/devinet.c ifm = nlmsg_data(nlh); ifm 664 net/ipv4/devinet.c in_dev = inetdev_by_index(net, ifm->ifa_index); ifm 680 net/ipv4/devinet.c (ifm->ifa_prefixlen != ifa->ifa_prefixlen || ifm 829 net/ipv4/devinet.c struct ifaddrmsg *ifm; ifm 834 net/ipv4/devinet.c err = nlmsg_parse_deprecated(nlh, sizeof(*ifm), tb, IFA_MAX, ifm 839 net/ipv4/devinet.c ifm = nlmsg_data(nlh); ifm 841 net/ipv4/devinet.c if (ifm->ifa_prefixlen > 32 || !tb[IFA_LOCAL]) ifm 844 net/ipv4/devinet.c dev = __dev_get_by_index(net, ifm->ifa_index); ifm 870 net/ipv4/devinet.c ifa->ifa_prefixlen = ifm->ifa_prefixlen; ifm 871 net/ipv4/devinet.c ifa->ifa_mask = inet_make_mask(ifm->ifa_prefixlen); ifm 873 net/ipv4/devinet.c ifm->ifa_flags; ifm 874 net/ipv4/devinet.c ifa->ifa_scope = ifm->ifa_scope; ifm 1652 net/ipv4/devinet.c struct ifaddrmsg *ifm; ifm 1656 net/ipv4/devinet.c nlh = nlmsg_put(skb, args->portid, args->seq, args->event, sizeof(*ifm), ifm 1661 net/ipv4/devinet.c ifm = nlmsg_data(nlh); ifm 1662 net/ipv4/devinet.c ifm->ifa_family = AF_INET; ifm 1663 net/ipv4/devinet.c ifm->ifa_prefixlen = ifa->ifa_prefixlen; ifm 1664 net/ipv4/devinet.c ifm->ifa_flags = ifa->ifa_flags; ifm 1665 net/ipv4/devinet.c ifm->ifa_scope = ifa->ifa_scope; ifm 1666 net/ipv4/devinet.c ifm->ifa_index = ifa->ifa_dev->dev->ifindex; ifm 1672 net/ipv4/devinet.c if (!(ifm->ifa_flags & IFA_F_PERMANENT)) { ifm 1723 net/ipv4/devinet.c struct ifaddrmsg *ifm; ifm 1726 net/ipv4/devinet.c if (nlh->nlmsg_len < nlmsg_msg_size(sizeof(*ifm))) { ifm 1731 net/ipv4/devinet.c ifm = nlmsg_data(nlh); ifm 1732 net/ipv4/devinet.c if (ifm->ifa_prefixlen || ifm->ifa_flags || ifm->ifa_scope) { ifm 1737 net/ipv4/devinet.c fillargs->ifindex = ifm->ifa_index; ifm 1743 net/ipv4/devinet.c err = nlmsg_parse_deprecated_strict(nlh, sizeof(*ifm), tb, IFA_MAX, ifm 2809 net/ipv4/ipmr.c struct ifinfomsg *ifm; ifm 2811 net/ipv4/ipmr.c if (nlh->nlmsg_len < nlmsg_msg_size(sizeof(*ifm))) { ifm 2816 net/ipv4/ipmr.c if (nlmsg_attrlen(nlh, sizeof(*ifm))) { ifm 2821 net/ipv4/ipmr.c ifm = nlmsg_data(nlh); ifm 2822 net/ipv4/ipmr.c if (ifm->__ifi_pad || ifm->ifi_type || ifm->ifi_flags || ifm 2823 net/ipv4/ipmr.c ifm->ifi_change || ifm->ifi_index) { ifm 4573 net/ipv6/addrconf.c struct ifaddrmsg *ifm; ifm 4579 net/ipv6/addrconf.c err = nlmsg_parse_deprecated(nlh, sizeof(*ifm), tb, IFA_MAX, ifm 4584 net/ipv6/addrconf.c ifm = nlmsg_data(nlh); ifm 4589 net/ipv6/addrconf.c ifa_flags = tb[IFA_FLAGS] ? nla_get_u32(tb[IFA_FLAGS]) : ifm->ifa_flags; ifm 4594 net/ipv6/addrconf.c return inet6_addr_del(net, ifm->ifa_index, ifa_flags, pfx, ifm 4595 net/ipv6/addrconf.c ifm->ifa_prefixlen); ifm 4757 net/ipv6/addrconf.c struct ifaddrmsg *ifm; ifm 4766 net/ipv6/addrconf.c err = nlmsg_parse_deprecated(nlh, sizeof(*ifm), tb, IFA_MAX, ifm 4773 net/ipv6/addrconf.c ifm = nlmsg_data(nlh); ifm 4779 net/ipv6/addrconf.c cfg.plen = ifm->ifa_prefixlen; ifm 4794 net/ipv6/addrconf.c dev = __dev_get_by_index(net, ifm->ifa_index); ifm 4801 net/ipv6/addrconf.c cfg.ifa_flags = ifm->ifa_flags; ifm 4827 net/ipv6/addrconf.c return inet6_addr_add(net, ifm->ifa_index, &cfg, extack); ifm 4844 net/ipv6/addrconf.c struct ifaddrmsg *ifm; ifm 4846 net/ipv6/addrconf.c ifm = nlmsg_data(nlh); ifm 4847 net/ipv6/addrconf.c ifm->ifa_family = AF_INET6; ifm 4848 net/ipv6/addrconf.c ifm->ifa_prefixlen = prefixlen; ifm 4849 net/ipv6/addrconf.c ifm->ifa_flags = flags; ifm 4850 net/ipv6/addrconf.c ifm->ifa_scope = scope; ifm 4851 net/ipv6/addrconf.c ifm->ifa_index = ifindex; ifm 5103 net/ipv6/addrconf.c struct ifaddrmsg *ifm; ifm 5106 net/ipv6/addrconf.c if (nlh->nlmsg_len < nlmsg_msg_size(sizeof(*ifm))) { ifm 5111 net/ipv6/addrconf.c ifm = nlmsg_data(nlh); ifm 5112 net/ipv6/addrconf.c if (ifm->ifa_prefixlen || ifm->ifa_flags || ifm->ifa_scope) { ifm 5117 net/ipv6/addrconf.c fillargs->ifindex = ifm->ifa_index; ifm 5123 net/ipv6/addrconf.c err = nlmsg_parse_deprecated_strict(nlh, sizeof(*ifm), tb, IFA_MAX, ifm 5259 net/ipv6/addrconf.c struct ifaddrmsg *ifm; ifm 5262 net/ipv6/addrconf.c if (nlh->nlmsg_len < nlmsg_msg_size(sizeof(*ifm))) { ifm 5268 net/ipv6/addrconf.c return nlmsg_parse_deprecated(nlh, sizeof(*ifm), tb, IFA_MAX, ifm 5271 net/ipv6/addrconf.c ifm = nlmsg_data(nlh); ifm 5272 net/ipv6/addrconf.c if (ifm->ifa_prefixlen || ifm->ifa_flags || ifm->ifa_scope) { ifm 5277 net/ipv6/addrconf.c err = nlmsg_parse_deprecated_strict(nlh, sizeof(*ifm), tb, IFA_MAX, ifm 5312 net/ipv6/addrconf.c struct ifaddrmsg *ifm; ifm 5337 net/ipv6/addrconf.c ifm = nlmsg_data(nlh); ifm 5338 net/ipv6/addrconf.c if (ifm->ifa_index) ifm 5339 net/ipv6/addrconf.c dev = dev_get_by_index(tgt_net, ifm->ifa_index); ifm 5824 net/ipv6/addrconf.c struct ifinfomsg *ifm; ifm 5826 net/ipv6/addrconf.c if (nlh->nlmsg_len < nlmsg_msg_size(sizeof(*ifm))) { ifm 5831 net/ipv6/addrconf.c if (nlmsg_attrlen(nlh, sizeof(*ifm))) { ifm 5836 net/ipv6/addrconf.c ifm = nlmsg_data(nlh); ifm 5837 net/ipv6/addrconf.c if (ifm->__ifi_pad || ifm->ifi_type || ifm->ifi_flags || ifm 5838 net/ipv6/addrconf.c ifm->ifi_change || ifm->ifi_index) { ifm 57 net/phonet/pn_netlink.c struct ifaddrmsg *ifm; ifm 69 net/phonet/pn_netlink.c err = nlmsg_parse_deprecated(nlh, sizeof(*ifm), tb, IFA_MAX, ifm 74 net/phonet/pn_netlink.c ifm = nlmsg_data(nlh); ifm 82 net/phonet/pn_netlink.c dev = __dev_get_by_index(net, ifm->ifa_index); ifm 98 net/phonet/pn_netlink.c struct ifaddrmsg *ifm; ifm 101 net/phonet/pn_netlink.c nlh = nlmsg_put(skb, portid, seq, event, sizeof(*ifm), 0); ifm 105 net/phonet/pn_netlink.c ifm = nlmsg_data(nlh); ifm 106 net/phonet/pn_netlink.c ifm->ifa_family = AF_PHONET; ifm 107 net/phonet/pn_netlink.c ifm->ifa_prefixlen = 0; ifm 108 net/phonet/pn_netlink.c ifm->ifa_flags = IFA_F_PERMANENT; ifm 109 net/phonet/pn_netlink.c ifm->ifa_scope = RT_SCOPE_LINK; ifm 110 net/phonet/pn_netlink.c ifm->ifa_index = dev->ifindex; ifm 1078 net/qrtr/qrtr.c struct ifaddrmsg *ifm; ifm 1089 net/qrtr/qrtr.c rc = nlmsg_parse_deprecated(nlh, sizeof(*ifm), tb, IFA_MAX, ifm 1094 net/qrtr/qrtr.c ifm = nlmsg_data(nlh); ifm 289 tools/lib/bpf/netlink.c struct ifinfomsg ifm; ifm 294 tools/lib/bpf/netlink.c .ifm.ifi_family = AF_PACKET, ifm 336 tools/testing/selftests/powerpc/pmu/ebb/ebb.c void event_bhrb_init(struct event *e, unsigned ifm) ifm 338 tools/testing/selftests/powerpc/pmu/ebb/ebb.c e->attr.config |= (1ull << 62) | ((u64)ifm << 60); ifm 49 tools/testing/selftests/powerpc/pmu/ebb/ebb.h void event_bhrb_init(struct event *e, unsigned ifm);