• Home
  • Raw
  • Download

Lines Matching refs:nlh

354 			   int destroy, struct nlmsghdr *nlh, u32 portid)  in __inet_del_ifa()  argument
393 rtmsg_ifa(RTM_DELADDR, ifa, nlh, portid); in __inet_del_ifa()
431 rtmsg_ifa(RTM_DELADDR, ifa1, nlh, portid); in __inet_del_ifa()
449 rtmsg_ifa(RTM_NEWADDR, promote, nlh, portid); in __inet_del_ifa()
476 static int __inet_insert_ifa(struct in_ifaddr *ifa, struct nlmsghdr *nlh, in __inet_insert_ifa() argument
555 rtmsg_ifa(RTM_NEWADDR, ifa, nlh, portid); in __inet_insert_ifa()
647 static int inet_rtm_deladdr(struct sk_buff *skb, struct nlmsghdr *nlh, in inet_rtm_deladdr() argument
660 err = nlmsg_parse_deprecated(nlh, sizeof(*ifm), tb, IFA_MAX, in inet_rtm_deladdr()
665 ifm = nlmsg_data(nlh); in inet_rtm_deladdr()
689 __inet_del_ifa(in_dev, ifap, 1, nlh, NETLINK_CB(skb).portid); in inet_rtm_deladdr()
827 static struct in_ifaddr *rtm_to_ifaddr(struct net *net, struct nlmsghdr *nlh, in rtm_to_ifaddr() argument
838 err = nlmsg_parse_deprecated(nlh, sizeof(*ifm), tb, IFA_MAX, in rtm_to_ifaddr()
843 ifm = nlmsg_data(nlh); in rtm_to_ifaddr()
946 static int inet_rtm_newaddr(struct sk_buff *skb, struct nlmsghdr *nlh, in inet_rtm_newaddr() argument
957 ifa = rtm_to_ifaddr(net, nlh, &valid_lft, &prefered_lft, extack); in inet_rtm_newaddr()
976 return __inet_insert_ifa(ifa, nlh, NETLINK_CB(skb).portid, in inet_rtm_newaddr()
984 if (nlh->nlmsg_flags & NLM_F_EXCL || in inet_rtm_newaddr()
985 !(nlh->nlmsg_flags & NLM_F_REPLACE)) { in inet_rtm_newaddr()
1002 rtmsg_ifa(RTM_NEWADDR, ifa, nlh, NETLINK_CB(skb).portid); in inet_rtm_newaddr()
1678 struct nlmsghdr *nlh; in inet_fill_ifaddr() local
1681 nlh = nlmsg_put(skb, args->portid, args->seq, args->event, sizeof(*ifm), in inet_fill_ifaddr()
1683 if (!nlh) in inet_fill_ifaddr()
1686 ifm = nlmsg_data(nlh); in inet_fill_ifaddr()
1735 nlmsg_end(skb, nlh); in inet_fill_ifaddr()
1739 nlmsg_cancel(skb, nlh); in inet_fill_ifaddr()
1743 static int inet_valid_dump_ifaddr_req(const struct nlmsghdr *nlh, in inet_valid_dump_ifaddr_req() argument
1753 if (nlh->nlmsg_len < nlmsg_msg_size(sizeof(*ifm))) { in inet_valid_dump_ifaddr_req()
1758 ifm = nlmsg_data(nlh); in inet_valid_dump_ifaddr_req()
1770 err = nlmsg_parse_deprecated_strict(nlh, sizeof(*ifm), tb, IFA_MAX, in inet_valid_dump_ifaddr_req()
1845 const struct nlmsghdr *nlh = cb->nlh; in inet_dump_ifaddr() local
1848 .seq = nlh->nlmsg_seq, in inet_dump_ifaddr()
1868 err = inet_valid_dump_ifaddr_req(nlh, &fillargs, &tgt_net, in inet_dump_ifaddr()
1926 static void rtmsg_ifa(int event, struct in_ifaddr *ifa, struct nlmsghdr *nlh, in rtmsg_ifa() argument
1931 .seq = nlh ? nlh->nlmsg_seq : 0, in rtmsg_ifa()
1952 rtnl_notify(skb, net, portid, RTNLGRP_IPV4_IFADDR, nlh, GFP_KERNEL); in rtmsg_ifa()
2075 struct nlmsghdr *nlh; in inet_netconf_fill_devconf() local
2079 nlh = nlmsg_put(skb, portid, seq, event, sizeof(struct netconfmsg), in inet_netconf_fill_devconf()
2081 if (!nlh) in inet_netconf_fill_devconf()
2087 ncm = nlmsg_data(nlh); in inet_netconf_fill_devconf()
2122 nlmsg_end(skb, nlh); in inet_netconf_fill_devconf()
2126 nlmsg_cancel(skb, nlh); in inet_netconf_fill_devconf()
2164 const struct nlmsghdr *nlh, in inet_netconf_valid_get_req() argument
2170 if (nlh->nlmsg_len < nlmsg_msg_size(sizeof(struct netconfmsg))) { in inet_netconf_valid_get_req()
2176 return nlmsg_parse_deprecated(nlh, sizeof(struct netconfmsg), in inet_netconf_valid_get_req()
2180 err = nlmsg_parse_deprecated_strict(nlh, sizeof(struct netconfmsg), in inet_netconf_valid_get_req()
2203 struct nlmsghdr *nlh, in inet_netconf_get_devconf() argument
2215 err = inet_netconf_valid_get_req(in_skb, nlh, tb, extack); in inet_netconf_get_devconf()
2249 nlh->nlmsg_seq, RTM_NEWNETCONF, 0, in inet_netconf_get_devconf()
2265 const struct nlmsghdr *nlh = cb->nlh; in inet_netconf_dump_devconf() local
2277 if (nlh->nlmsg_len < nlmsg_msg_size(sizeof(*ncm))) { in inet_netconf_dump_devconf()
2282 if (nlmsg_attrlen(nlh, sizeof(*ncm))) { in inet_netconf_dump_devconf()
2306 nlh->nlmsg_seq, in inet_netconf_dump_devconf()
2323 nlh->nlmsg_seq, in inet_netconf_dump_devconf()
2334 nlh->nlmsg_seq, in inet_netconf_dump_devconf()