Searched refs:ifm (Results 1 – 6 of 6) sorted by relevance
/net/phonet/ |
D | pn_netlink.c | 57 struct ifaddrmsg *ifm; in addr_doit() local 69 err = nlmsg_parse_deprecated(nlh, sizeof(*ifm), tb, IFA_MAX, in addr_doit() 74 ifm = nlmsg_data(nlh); in addr_doit() 82 dev = __dev_get_by_index(net, ifm->ifa_index); in addr_doit() 98 struct ifaddrmsg *ifm; in fill_addr() local 101 nlh = nlmsg_put(skb, portid, seq, event, sizeof(*ifm), 0); in fill_addr() 105 ifm = nlmsg_data(nlh); in fill_addr() 106 ifm->ifa_family = AF_PHONET; in fill_addr() 107 ifm->ifa_prefixlen = 0; in fill_addr() 108 ifm->ifa_flags = IFA_F_PERMANENT; in fill_addr() [all …]
|
/net/core/ |
D | rtnetlink.c | 898 const struct ifinfomsg *ifm) in rtnl_dev_combine_flags() argument 900 unsigned int flags = ifm->ifi_flags; in rtnl_dev_combine_flags() 903 if (ifm->ifi_change) in rtnl_dev_combine_flags() 904 flags = (flags & ifm->ifi_change) | in rtnl_dev_combine_flags() 905 (rtnl_dev_get_flags(dev) & ~ifm->ifi_change); in rtnl_dev_combine_flags() 1784 struct ifinfomsg *ifm; in rtnl_fill_ifinfo() local 1789 nlh = nlmsg_put(skb, pid, seq, type, sizeof(*ifm), flags); in rtnl_fill_ifinfo() 1793 ifm = nlmsg_data(nlh); in rtnl_fill_ifinfo() 1794 ifm->ifi_family = AF_UNSPEC; in rtnl_fill_ifinfo() 1795 ifm->__ifi_pad = 0; in rtnl_fill_ifinfo() [all …]
|
/net/mctp/ |
D | device.c | 198 struct ifaddrmsg *ifm; in mctp_rtm_newaddr() local 203 rc = nlmsg_parse(nlh, sizeof(*ifm), tb, IFA_MAX, ifa_mctp_policy, in mctp_rtm_newaddr() 208 ifm = nlmsg_data(nlh); in mctp_rtm_newaddr() 218 dev = __dev_get_by_index(net, ifm->ifa_index); in mctp_rtm_newaddr() 261 struct ifaddrmsg *ifm; in mctp_rtm_deladdr() local 266 rc = nlmsg_parse(nlh, sizeof(*ifm), tb, IFA_MAX, ifa_mctp_policy, in mctp_rtm_deladdr() 271 ifm = nlmsg_data(nlh); in mctp_rtm_deladdr() 281 dev = __dev_get_by_index(net, ifm->ifa_index); in mctp_rtm_deladdr()
|
/net/ipv4/ |
D | devinet.c | 654 struct ifaddrmsg *ifm; in inet_rtm_deladdr() local 660 err = nlmsg_parse_deprecated(nlh, sizeof(*ifm), tb, IFA_MAX, in inet_rtm_deladdr() 665 ifm = nlmsg_data(nlh); in inet_rtm_deladdr() 666 in_dev = inetdev_by_index(net, ifm->ifa_index); in inet_rtm_deladdr() 683 (ifm->ifa_prefixlen != ifa->ifa_prefixlen || in inet_rtm_deladdr() 833 struct ifaddrmsg *ifm; in rtm_to_ifaddr() local 838 err = nlmsg_parse_deprecated(nlh, sizeof(*ifm), tb, IFA_MAX, in rtm_to_ifaddr() 843 ifm = nlmsg_data(nlh); in rtm_to_ifaddr() 846 if (ifm->ifa_prefixlen > 32) { in rtm_to_ifaddr() 856 dev = __dev_get_by_index(net, ifm->ifa_index); in rtm_to_ifaddr() [all …]
|
D | ipmr.c | 2807 struct ifinfomsg *ifm; in ipmr_valid_dumplink() local 2809 if (nlh->nlmsg_len < nlmsg_msg_size(sizeof(*ifm))) { in ipmr_valid_dumplink() 2814 if (nlmsg_attrlen(nlh, sizeof(*ifm))) { in ipmr_valid_dumplink() 2819 ifm = nlmsg_data(nlh); in ipmr_valid_dumplink() 2820 if (ifm->__ifi_pad || ifm->ifi_type || ifm->ifi_flags || in ipmr_valid_dumplink() 2821 ifm->ifi_change || ifm->ifi_index) { in ipmr_valid_dumplink()
|
/net/ipv6/ |
D | addrconf.c | 4750 struct ifaddrmsg *ifm; in inet6_rtm_deladdr() local 4756 err = nlmsg_parse_deprecated(nlh, sizeof(*ifm), tb, IFA_MAX, in inet6_rtm_deladdr() 4761 ifm = nlmsg_data(nlh); in inet6_rtm_deladdr() 4766 ifa_flags = tb[IFA_FLAGS] ? nla_get_u32(tb[IFA_FLAGS]) : ifm->ifa_flags; in inet6_rtm_deladdr() 4771 return inet6_addr_del(net, ifm->ifa_index, ifa_flags, pfx, in inet6_rtm_deladdr() 4772 ifm->ifa_prefixlen, extack); in inet6_rtm_deladdr() 4936 struct ifaddrmsg *ifm; in inet6_rtm_newaddr() local 4945 err = nlmsg_parse_deprecated(nlh, sizeof(*ifm), tb, IFA_MAX, in inet6_rtm_newaddr() 4952 ifm = nlmsg_data(nlh); in inet6_rtm_newaddr() 4958 cfg.plen = ifm->ifa_prefixlen; in inet6_rtm_newaddr() [all …]
|