Lines Matching refs:nlh
327 int destroy, struct nlmsghdr *nlh, u32 portid) in __inet_del_ifa() argument
361 rtmsg_ifa(RTM_DELADDR, ifa, nlh, portid); in __inet_del_ifa()
398 rtmsg_ifa(RTM_DELADDR, ifa1, nlh, portid); in __inet_del_ifa()
411 rtmsg_ifa(RTM_NEWADDR, promote, nlh, portid); in __inet_del_ifa()
436 static int __inet_insert_ifa(struct in_ifaddr *ifa, struct nlmsghdr *nlh, in __inet_insert_ifa() argument
487 rtmsg_ifa(RTM_NEWADDR, ifa, nlh, portid); in __inet_insert_ifa()
571 static int inet_rtm_deladdr(struct sk_buff *skb, struct nlmsghdr *nlh) in inet_rtm_deladdr() argument
582 err = nlmsg_parse(nlh, sizeof(*ifm), tb, IFA_MAX, ifa_ipv4_policy); in inet_rtm_deladdr()
586 ifm = nlmsg_data(nlh); in inet_rtm_deladdr()
609 __inet_del_ifa(in_dev, ifap, 1, nlh, NETLINK_CB(skb).portid); in inet_rtm_deladdr()
742 static struct in_ifaddr *rtm_to_ifaddr(struct net *net, struct nlmsghdr *nlh, in rtm_to_ifaddr() argument
752 err = nlmsg_parse(nlh, sizeof(*ifm), tb, IFA_MAX, ifa_ipv4_policy); in rtm_to_ifaddr()
756 ifm = nlmsg_data(nlh); in rtm_to_ifaddr()
843 static int inet_rtm_newaddr(struct sk_buff *skb, struct nlmsghdr *nlh) in inet_rtm_newaddr() argument
853 ifa = rtm_to_ifaddr(net, nlh, &valid_lft, &prefered_lft); in inet_rtm_newaddr()
872 return __inet_insert_ifa(ifa, nlh, NETLINK_CB(skb).portid); in inet_rtm_newaddr()
876 if (nlh->nlmsg_flags & NLM_F_EXCL || in inet_rtm_newaddr()
877 !(nlh->nlmsg_flags & NLM_F_REPLACE)) in inet_rtm_newaddr()
884 rtmsg_ifa(RTM_NEWADDR, ifa, nlh, NETLINK_CB(skb).portid); in inet_rtm_newaddr()
1508 struct nlmsghdr *nlh; in inet_fill_ifaddr() local
1511 nlh = nlmsg_put(skb, portid, seq, event, sizeof(*ifm), flags); in inet_fill_ifaddr()
1512 if (!nlh) in inet_fill_ifaddr()
1515 ifm = nlmsg_data(nlh); in inet_fill_ifaddr()
1556 nlmsg_end(skb, nlh); in inet_fill_ifaddr()
1560 nlmsg_cancel(skb, nlh); in inet_fill_ifaddr()
1600 cb->nlh->nlmsg_seq, in inet_dump_ifaddr()
1621 static void rtmsg_ifa(int event, struct in_ifaddr *ifa, struct nlmsghdr *nlh, in rtmsg_ifa() argument
1625 u32 seq = nlh ? nlh->nlmsg_seq : 0; in rtmsg_ifa()
1641 rtnl_notify(skb, net, portid, RTNLGRP_IPV4_IFADDR, nlh, GFP_KERNEL); in rtmsg_ifa()
1752 struct nlmsghdr *nlh; in inet_netconf_fill_devconf() local
1755 nlh = nlmsg_put(skb, portid, seq, event, sizeof(struct netconfmsg), in inet_netconf_fill_devconf()
1757 if (!nlh) in inet_netconf_fill_devconf()
1760 ncm = nlmsg_data(nlh); in inet_netconf_fill_devconf()
1784 nlmsg_end(skb, nlh); in inet_netconf_fill_devconf()
1788 nlmsg_cancel(skb, nlh); in inet_netconf_fill_devconf()
1825 struct nlmsghdr *nlh) in inet_netconf_get_devconf() argument
1837 err = nlmsg_parse(nlh, sizeof(*ncm), tb, NETCONFA_MAX, in inet_netconf_get_devconf()
1872 nlh->nlmsg_seq, RTM_NEWNETCONF, 0, in inet_netconf_get_devconf()
1914 cb->nlh->nlmsg_seq, in inet_netconf_dump_devconf()
1931 cb->nlh->nlmsg_seq, in inet_netconf_dump_devconf()
1942 cb->nlh->nlmsg_seq, in inet_netconf_dump_devconf()