Home
last modified time | relevance | path

Searched refs:ifm (Results 1 – 5 of 5) sorted by relevance

/net/phonet/
Dpn_netlink.c69 struct ifaddrmsg *ifm; in addr_doit() local
81 err = nlmsg_parse(nlh, sizeof(*ifm), tb, IFA_MAX, ifa_phonet_policy); in addr_doit()
85 ifm = nlmsg_data(nlh); in addr_doit()
93 dev = __dev_get_by_index(net, ifm->ifa_index); in addr_doit()
109 struct ifaddrmsg *ifm; in fill_addr() local
112 nlh = nlmsg_put(skb, portid, seq, event, sizeof(*ifm), 0); in fill_addr()
116 ifm = nlmsg_data(nlh); in fill_addr()
117 ifm->ifa_family = AF_PHONET; in fill_addr()
118 ifm->ifa_prefixlen = 0; in fill_addr()
119 ifm->ifa_flags = IFA_F_PERMANENT; in fill_addr()
[all …]
/net/core/
Drtnetlink.c745 const struct ifinfomsg *ifm) in rtnl_dev_combine_flags() argument
747 unsigned int flags = ifm->ifi_flags; in rtnl_dev_combine_flags()
750 if (ifm->ifi_change) in rtnl_dev_combine_flags()
751 flags = (flags & ifm->ifi_change) | in rtnl_dev_combine_flags()
752 (rtnl_dev_get_flags(dev) & ~ifm->ifi_change); in rtnl_dev_combine_flags()
975 struct ifinfomsg *ifm; in rtnl_fill_ifinfo() local
984 nlh = nlmsg_put(skb, pid, seq, type, sizeof(*ifm), flags); in rtnl_fill_ifinfo()
988 ifm = nlmsg_data(nlh); in rtnl_fill_ifinfo()
989 ifm->ifi_family = AF_UNSPEC; in rtnl_fill_ifinfo()
990 ifm->__ifi_pad = 0; in rtnl_fill_ifinfo()
[all …]
/net/decnet/
Ddn_dev.c573 struct ifaddrmsg *ifm; in dn_nl_deladdr() local
584 err = nlmsg_parse(nlh, sizeof(*ifm), tb, IFA_MAX, dn_ifa_policy); in dn_nl_deladdr()
589 ifm = nlmsg_data(nlh); in dn_nl_deladdr()
590 if ((dn_db = dn_dev_by_index(ifm->ifa_index)) == NULL) in dn_nl_deladdr()
618 struct ifaddrmsg *ifm; in dn_nl_newaddr() local
628 err = nlmsg_parse(nlh, sizeof(*ifm), tb, IFA_MAX, dn_ifa_policy); in dn_nl_newaddr()
635 ifm = nlmsg_data(nlh); in dn_nl_newaddr()
636 if ((dev = __dev_get_by_index(&init_net, ifm->ifa_index)) == NULL) in dn_nl_newaddr()
654 ifm->ifa_flags; in dn_nl_newaddr()
655 ifa->ifa_scope = ifm->ifa_scope; in dn_nl_newaddr()
[all …]
/net/ipv4/
Ddevinet.c560 struct ifaddrmsg *ifm; in inet_rtm_deladdr() local
566 err = nlmsg_parse(nlh, sizeof(*ifm), tb, IFA_MAX, ifa_ipv4_policy); in inet_rtm_deladdr()
570 ifm = nlmsg_data(nlh); in inet_rtm_deladdr()
571 in_dev = inetdev_by_index(net, ifm->ifa_index); in inet_rtm_deladdr()
587 (ifm->ifa_prefixlen != ifa->ifa_prefixlen || in inet_rtm_deladdr()
729 struct ifaddrmsg *ifm; in rtm_to_ifaddr() local
734 err = nlmsg_parse(nlh, sizeof(*ifm), tb, IFA_MAX, ifa_ipv4_policy); in rtm_to_ifaddr()
738 ifm = nlmsg_data(nlh); in rtm_to_ifaddr()
740 if (ifm->ifa_prefixlen > 32 || tb[IFA_LOCAL] == NULL) in rtm_to_ifaddr()
743 dev = __dev_get_by_index(net, ifm->ifa_index); in rtm_to_ifaddr()
[all …]
/net/ipv6/
Daddrconf.c3884 struct ifaddrmsg *ifm; in inet6_rtm_deladdr() local
3890 err = nlmsg_parse(nlh, sizeof(*ifm), tb, IFA_MAX, ifa_ipv6_policy); in inet6_rtm_deladdr()
3894 ifm = nlmsg_data(nlh); in inet6_rtm_deladdr()
3899 ifa_flags = tb[IFA_FLAGS] ? nla_get_u32(tb[IFA_FLAGS]) : ifm->ifa_flags; in inet6_rtm_deladdr()
3904 return inet6_addr_del(net, ifm->ifa_index, ifa_flags, pfx, in inet6_rtm_deladdr()
3905 ifm->ifa_prefixlen); in inet6_rtm_deladdr()
3993 struct ifaddrmsg *ifm; in inet6_rtm_newaddr() local
4002 err = nlmsg_parse(nlh, sizeof(*ifm), tb, IFA_MAX, ifa_ipv6_policy); in inet6_rtm_newaddr()
4006 ifm = nlmsg_data(nlh); in inet6_rtm_newaddr()
4022 dev = __dev_get_by_index(net, ifm->ifa_index); in inet6_rtm_newaddr()
[all …]