Home
last modified time | relevance | path

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

/linux-2.4.37.9/net/ipv4/
Ddevinet.c364 struct ifaddrmsg *ifm = NLMSG_DATA(nlh); in inet_rtm_deladdr() local
369 if ((in_dev = inetdev_by_index(ifm->ifa_index)) == NULL) in inet_rtm_deladdr()
377 (ifm->ifa_prefixlen != ifa->ifa_prefixlen || in inet_rtm_deladdr()
393 struct ifaddrmsg *ifm = NLMSG_DATA(nlh); in inet_rtm_newaddr() local
398 if (ifm->ifa_prefixlen > 32 || rta[IFA_LOCAL-1] == NULL) in inet_rtm_newaddr()
401 if ((dev = __dev_get_by_index(ifm->ifa_index)) == NULL) in inet_rtm_newaddr()
417 ifa->ifa_prefixlen = ifm->ifa_prefixlen; in inet_rtm_newaddr()
418 ifa->ifa_mask = inet_make_mask(ifm->ifa_prefixlen); in inet_rtm_newaddr()
423 ifa->ifa_flags = ifm->ifa_flags; in inet_rtm_newaddr()
424 ifa->ifa_scope = ifm->ifa_scope; in inet_rtm_newaddr()
[all …]
/linux-2.4.37.9/net/decnet/
Ddn_dev.c515 struct ifaddrmsg *ifm = NLMSG_DATA(nlh); in dn_dev_rtm_deladdr() local
518 if ((dn_db = dn_dev_by_index(ifm->ifa_index)) == NULL) in dn_dev_rtm_deladdr()
539 struct ifaddrmsg *ifm = NLMSG_DATA(nlh); in dn_dev_rtm_newaddr() local
545 if ((dev = __dev_get_by_index(ifm->ifa_index)) == NULL) in dn_dev_rtm_newaddr()
559 ifa->ifa_flags = ifm->ifa_flags; in dn_dev_rtm_newaddr()
560 ifa->ifa_scope = ifm->ifa_scope; in dn_dev_rtm_newaddr()
573 struct ifaddrmsg *ifm; in dn_dev_fill_ifaddr() local
577 nlh = NLMSG_PUT(skb, pid, seq, event, sizeof(*ifm)); in dn_dev_fill_ifaddr()
578 ifm = NLMSG_DATA(nlh); in dn_dev_fill_ifaddr()
580 ifm->ifa_family = AF_DECnet; in dn_dev_fill_ifaddr()
[all …]
/linux-2.4.37.9/net/ipv6/
Daddrconf.c1844 struct ifaddrmsg *ifm = NLMSG_DATA(nlh); in inet6_rtm_deladdr() local
1861 return inet6_addr_del(ifm->ifa_index, pfx, ifm->ifa_prefixlen); in inet6_rtm_deladdr()
1868 struct ifaddrmsg *ifm = NLMSG_DATA(nlh); in inet6_rtm_newaddr() local
1885 return inet6_addr_add(ifm->ifa_index, pfx, ifm->ifa_prefixlen); in inet6_rtm_newaddr()
1891 struct ifaddrmsg *ifm; in inet6_fill_ifaddr() local
1896 nlh = NLMSG_PUT(skb, pid, seq, event, sizeof(*ifm)); in inet6_fill_ifaddr()
1898 ifm = NLMSG_DATA(nlh); in inet6_fill_ifaddr()
1899 ifm->ifa_family = AF_INET6; in inet6_fill_ifaddr()
1900 ifm->ifa_prefixlen = ifa->prefix_len; in inet6_fill_ifaddr()
1901 ifm->ifa_flags = ifa->flags; in inet6_fill_ifaddr()
[all …]