Lines Matching refs:ifm

4747 	struct ifaddrmsg *ifm;  in inet6_rtm_deladdr()  local
4753 err = nlmsg_parse_deprecated(nlh, sizeof(*ifm), tb, IFA_MAX, in inet6_rtm_deladdr()
4758 ifm = nlmsg_data(nlh); in inet6_rtm_deladdr()
4763 ifa_flags = tb[IFA_FLAGS] ? nla_get_u32(tb[IFA_FLAGS]) : ifm->ifa_flags; in inet6_rtm_deladdr()
4768 return inet6_addr_del(net, ifm->ifa_index, ifa_flags, pfx, in inet6_rtm_deladdr()
4769 ifm->ifa_prefixlen, extack); in inet6_rtm_deladdr()
4931 struct ifaddrmsg *ifm; in inet6_rtm_newaddr() local
4940 err = nlmsg_parse_deprecated(nlh, sizeof(*ifm), tb, IFA_MAX, in inet6_rtm_newaddr()
4947 ifm = nlmsg_data(nlh); in inet6_rtm_newaddr()
4953 cfg.plen = ifm->ifa_prefixlen; in inet6_rtm_newaddr()
4971 dev = __dev_get_by_index(net, ifm->ifa_index); in inet6_rtm_newaddr()
4980 cfg.ifa_flags = ifm->ifa_flags; in inet6_rtm_newaddr()
5006 return inet6_addr_add(net, ifm->ifa_index, &cfg, extack); in inet6_rtm_newaddr()
5025 struct ifaddrmsg *ifm; in put_ifaddrmsg() local
5027 ifm = nlmsg_data(nlh); in put_ifaddrmsg()
5028 ifm->ifa_family = AF_INET6; in put_ifaddrmsg()
5029 ifm->ifa_prefixlen = prefixlen; in put_ifaddrmsg()
5030 ifm->ifa_flags = flags; in put_ifaddrmsg()
5031 ifm->ifa_scope = scope; in put_ifaddrmsg()
5032 ifm->ifa_index = ifindex; in put_ifaddrmsg()
5298 struct ifaddrmsg *ifm; in inet6_valid_dump_ifaddr_req() local
5301 if (nlh->nlmsg_len < nlmsg_msg_size(sizeof(*ifm))) { in inet6_valid_dump_ifaddr_req()
5306 ifm = nlmsg_data(nlh); in inet6_valid_dump_ifaddr_req()
5307 if (ifm->ifa_prefixlen || ifm->ifa_flags || ifm->ifa_scope) { in inet6_valid_dump_ifaddr_req()
5312 fillargs->ifindex = ifm->ifa_index; in inet6_valid_dump_ifaddr_req()
5318 err = nlmsg_parse_deprecated_strict(nlh, sizeof(*ifm), tb, IFA_MAX, in inet6_valid_dump_ifaddr_req()
5453 struct ifaddrmsg *ifm; in inet6_rtm_valid_getaddr_req() local
5456 if (nlh->nlmsg_len < nlmsg_msg_size(sizeof(*ifm))) { in inet6_rtm_valid_getaddr_req()
5462 return nlmsg_parse_deprecated(nlh, sizeof(*ifm), tb, IFA_MAX, in inet6_rtm_valid_getaddr_req()
5465 ifm = nlmsg_data(nlh); in inet6_rtm_valid_getaddr_req()
5466 if (ifm->ifa_prefixlen || ifm->ifa_flags || ifm->ifa_scope) { in inet6_rtm_valid_getaddr_req()
5471 err = nlmsg_parse_deprecated_strict(nlh, sizeof(*ifm), tb, IFA_MAX, in inet6_rtm_valid_getaddr_req()
5505 struct ifaddrmsg *ifm; in inet6_rtm_getaddr() local
5531 ifm = nlmsg_data(nlh); in inet6_rtm_getaddr()
5532 if (ifm->ifa_index) in inet6_rtm_getaddr()
5533 dev = dev_get_by_index(tgt_net, ifm->ifa_index); in inet6_rtm_getaddr()
6053 struct ifinfomsg *ifm; in inet6_valid_dump_ifinfo() local
6055 if (nlh->nlmsg_len < nlmsg_msg_size(sizeof(*ifm))) { in inet6_valid_dump_ifinfo()
6060 if (nlmsg_attrlen(nlh, sizeof(*ifm))) { in inet6_valid_dump_ifinfo()
6065 ifm = nlmsg_data(nlh); in inet6_valid_dump_ifinfo()
6066 if (ifm->__ifi_pad || ifm->ifi_type || ifm->ifi_flags || in inet6_valid_dump_ifinfo()
6067 ifm->ifi_change || ifm->ifi_index) { in inet6_valid_dump_ifinfo()