Home
last modified time | relevance | path

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

/net/phonet/
Dpn_netlink.c66 struct ifaddrmsg *ifm; in addr_doit() local
75 err = nlmsg_parse(nlh, sizeof(*ifm), tb, IFA_MAX, ifa_phonet_policy); in addr_doit()
79 ifm = nlmsg_data(nlh); in addr_doit()
87 dev = __dev_get_by_index(net, ifm->ifa_index); in addr_doit()
103 struct ifaddrmsg *ifm; in fill_addr() local
106 nlh = nlmsg_put(skb, pid, seq, event, sizeof(*ifm), 0); in fill_addr()
110 ifm = nlmsg_data(nlh); in fill_addr()
111 ifm->ifa_family = AF_PHONET; in fill_addr()
112 ifm->ifa_prefixlen = 0; in fill_addr()
113 ifm->ifa_flags = IFA_F_PERMANENT; in fill_addr()
[all …]
/net/core/
Drtnetlink.c610 struct ifinfomsg *ifm; in rtnl_fill_ifinfo() local
615 nlh = nlmsg_put(skb, pid, seq, type, sizeof(*ifm), flags); in rtnl_fill_ifinfo()
619 ifm = nlmsg_data(nlh); in rtnl_fill_ifinfo()
620 ifm->ifi_family = AF_UNSPEC; in rtnl_fill_ifinfo()
621 ifm->__ifi_pad = 0; in rtnl_fill_ifinfo()
622 ifm->ifi_type = dev->type; in rtnl_fill_ifinfo()
623 ifm->ifi_index = dev->ifindex; in rtnl_fill_ifinfo()
624 ifm->ifi_flags = dev_get_flags(dev); in rtnl_fill_ifinfo()
625 ifm->ifi_change = change; in rtnl_fill_ifinfo()
762 static int do_setlink(struct net_device *dev, struct ifinfomsg *ifm, in do_setlink() argument
[all …]
/net/bridge/
Dbr_netlink.c142 struct ifinfomsg *ifm; in br_rtm_setlink() local
148 if (nlmsg_len(nlh) < sizeof(*ifm)) in br_rtm_setlink()
151 ifm = nlmsg_data(nlh); in br_rtm_setlink()
152 if (ifm->ifi_family != AF_BRIDGE) in br_rtm_setlink()
155 protinfo = nlmsg_find_attr(nlh, sizeof(*ifm), IFLA_PROTINFO); in br_rtm_setlink()
163 dev = __dev_get_by_index(net, ifm->ifi_index); in br_rtm_setlink()
/net/ipv4/
Ddevinet.c436 struct ifaddrmsg *ifm; in inet_rtm_deladdr() local
442 err = nlmsg_parse(nlh, sizeof(*ifm), tb, IFA_MAX, ifa_ipv4_policy); in inet_rtm_deladdr()
446 ifm = nlmsg_data(nlh); in inet_rtm_deladdr()
447 in_dev = inetdev_by_index(net, ifm->ifa_index); in inet_rtm_deladdr()
465 (ifm->ifa_prefixlen != ifa->ifa_prefixlen || in inet_rtm_deladdr()
482 struct ifaddrmsg *ifm; in rtm_to_ifaddr() local
487 err = nlmsg_parse(nlh, sizeof(*ifm), tb, IFA_MAX, ifa_ipv4_policy); in rtm_to_ifaddr()
491 ifm = nlmsg_data(nlh); in rtm_to_ifaddr()
493 if (ifm->ifa_prefixlen > 32 || tb[IFA_LOCAL] == NULL) in rtm_to_ifaddr()
496 dev = __dev_get_by_index(net, ifm->ifa_index); in rtm_to_ifaddr()
[all …]
/net/decnet/
Ddn_dev.c629 struct ifaddrmsg *ifm; in dn_nl_deladdr() local
636 err = nlmsg_parse(nlh, sizeof(*ifm), tb, IFA_MAX, dn_ifa_policy); in dn_nl_deladdr()
641 ifm = nlmsg_data(nlh); in dn_nl_deladdr()
642 if ((dn_db = dn_dev_by_index(ifm->ifa_index)) == NULL) in dn_nl_deladdr()
668 struct ifaddrmsg *ifm; in dn_nl_newaddr() local
675 err = nlmsg_parse(nlh, sizeof(*ifm), tb, IFA_MAX, dn_ifa_policy); in dn_nl_newaddr()
682 ifm = nlmsg_data(nlh); in dn_nl_newaddr()
683 if ((dev = __dev_get_by_index(&init_net, ifm->ifa_index)) == NULL) in dn_nl_newaddr()
701 ifa->ifa_flags = ifm->ifa_flags; in dn_nl_newaddr()
702 ifa->ifa_scope = ifm->ifa_scope; in dn_nl_newaddr()
[all …]
/net/ipv6/
Daddrconf.c3214 struct ifaddrmsg *ifm; in inet6_rtm_deladdr() local
3219 err = nlmsg_parse(nlh, sizeof(*ifm), tb, IFA_MAX, ifa_ipv6_policy); in inet6_rtm_deladdr()
3223 ifm = nlmsg_data(nlh); in inet6_rtm_deladdr()
3228 return inet6_addr_del(net, ifm->ifa_index, pfx, ifm->ifa_prefixlen); in inet6_rtm_deladdr()
3280 struct ifaddrmsg *ifm; in inet6_rtm_newaddr() local
3289 err = nlmsg_parse(nlh, sizeof(*ifm), tb, IFA_MAX, ifa_ipv6_policy); in inet6_rtm_newaddr()
3293 ifm = nlmsg_data(nlh); in inet6_rtm_newaddr()
3309 dev = __dev_get_by_index(net, ifm->ifa_index); in inet6_rtm_newaddr()
3314 ifa_flags = ifm->ifa_flags & (IFA_F_NODAD | IFA_F_HOMEADDRESS); in inet6_rtm_newaddr()
3322 return inet6_addr_add(net, ifm->ifa_index, pfx, in inet6_rtm_newaddr()
[all …]