Lines Matching refs:nlh
327 int destroy, struct nlmsghdr *nlh, u32 portid) in __inet_del_ifa() argument
364 rtmsg_ifa(RTM_DELADDR, ifa, nlh, portid); in __inet_del_ifa()
402 rtmsg_ifa(RTM_DELADDR, ifa1, nlh, portid); in __inet_del_ifa()
415 rtmsg_ifa(RTM_NEWADDR, promote, nlh, portid); in __inet_del_ifa()
440 static int __inet_insert_ifa(struct in_ifaddr *ifa, struct nlmsghdr *nlh, in __inet_insert_ifa() argument
491 rtmsg_ifa(RTM_NEWADDR, ifa, nlh, portid); in __inet_insert_ifa()
575 static int inet_rtm_deladdr(struct sk_buff *skb, struct nlmsghdr *nlh) in inet_rtm_deladdr() argument
586 err = nlmsg_parse(nlh, sizeof(*ifm), tb, IFA_MAX, ifa_ipv4_policy); in inet_rtm_deladdr()
590 ifm = nlmsg_data(nlh); in inet_rtm_deladdr()
613 __inet_del_ifa(in_dev, ifap, 1, nlh, NETLINK_CB(skb).portid); in inet_rtm_deladdr()
746 static struct in_ifaddr *rtm_to_ifaddr(struct net *net, struct nlmsghdr *nlh, in rtm_to_ifaddr() argument
756 err = nlmsg_parse(nlh, sizeof(*ifm), tb, IFA_MAX, ifa_ipv4_policy); in rtm_to_ifaddr()
760 ifm = nlmsg_data(nlh); in rtm_to_ifaddr()
847 static int inet_rtm_newaddr(struct sk_buff *skb, struct nlmsghdr *nlh) in inet_rtm_newaddr() argument
857 ifa = rtm_to_ifaddr(net, nlh, &valid_lft, &prefered_lft); in inet_rtm_newaddr()
876 return __inet_insert_ifa(ifa, nlh, NETLINK_CB(skb).portid); in inet_rtm_newaddr()
880 if (nlh->nlmsg_flags & NLM_F_EXCL || in inet_rtm_newaddr()
881 !(nlh->nlmsg_flags & NLM_F_REPLACE)) in inet_rtm_newaddr()
888 rtmsg_ifa(RTM_NEWADDR, ifa, nlh, NETLINK_CB(skb).portid); in inet_rtm_newaddr()
1511 struct nlmsghdr *nlh; in inet_fill_ifaddr() local
1514 nlh = nlmsg_put(skb, portid, seq, event, sizeof(*ifm), flags); in inet_fill_ifaddr()
1515 if (!nlh) in inet_fill_ifaddr()
1518 ifm = nlmsg_data(nlh); in inet_fill_ifaddr()
1559 nlmsg_end(skb, nlh); in inet_fill_ifaddr()
1563 nlmsg_cancel(skb, nlh); in inet_fill_ifaddr()
1603 cb->nlh->nlmsg_seq, in inet_dump_ifaddr()
1624 static void rtmsg_ifa(int event, struct in_ifaddr *ifa, struct nlmsghdr *nlh, in rtmsg_ifa() argument
1628 u32 seq = nlh ? nlh->nlmsg_seq : 0; in rtmsg_ifa()
1644 rtnl_notify(skb, net, portid, RTNLGRP_IPV4_IFADDR, nlh, GFP_KERNEL); in rtmsg_ifa()
1759 struct nlmsghdr *nlh; in inet_netconf_fill_devconf() local
1762 nlh = nlmsg_put(skb, portid, seq, event, sizeof(struct netconfmsg), in inet_netconf_fill_devconf()
1764 if (!nlh) in inet_netconf_fill_devconf()
1767 ncm = nlmsg_data(nlh); in inet_netconf_fill_devconf()
1795 nlmsg_end(skb, nlh); in inet_netconf_fill_devconf()
1799 nlmsg_cancel(skb, nlh); in inet_netconf_fill_devconf()
1837 struct nlmsghdr *nlh) in inet_netconf_get_devconf() argument
1849 err = nlmsg_parse(nlh, sizeof(*ncm), tb, NETCONFA_MAX, in inet_netconf_get_devconf()
1884 nlh->nlmsg_seq, RTM_NEWNETCONF, 0, in inet_netconf_get_devconf()
1926 cb->nlh->nlmsg_seq, in inet_netconf_dump_devconf()
1943 cb->nlh->nlmsg_seq, in inet_netconf_dump_devconf()
1954 cb->nlh->nlmsg_seq, in inet_netconf_dump_devconf()