Lines Matching refs:ifm
629 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()
728 struct ifaddrmsg *ifm; in dn_nl_fill_ifaddr() local
731 nlh = nlmsg_put(skb, pid, seq, event, sizeof(*ifm), flags); in dn_nl_fill_ifaddr()
735 ifm = nlmsg_data(nlh); in dn_nl_fill_ifaddr()
736 ifm->ifa_family = AF_DECnet; in dn_nl_fill_ifaddr()
737 ifm->ifa_prefixlen = 16; in dn_nl_fill_ifaddr()
738 ifm->ifa_flags = ifa->ifa_flags | IFA_F_PERMANENT; in dn_nl_fill_ifaddr()
739 ifm->ifa_scope = ifa->ifa_scope; in dn_nl_fill_ifaddr()
740 ifm->ifa_index = ifa->ifa_dev->dev->ifindex; in dn_nl_fill_ifaddr()