• Home
  • Raw
  • Download

Lines Matching refs:nlh

350 			   int destroy, struct nlmsghdr *nlh, u32 portid)  in __inet_del_ifa()  argument
389 rtmsg_ifa(RTM_DELADDR, ifa, nlh, portid); in __inet_del_ifa()
427 rtmsg_ifa(RTM_DELADDR, ifa1, nlh, portid); in __inet_del_ifa()
445 rtmsg_ifa(RTM_NEWADDR, promote, nlh, portid); in __inet_del_ifa()
472 static int __inet_insert_ifa(struct in_ifaddr *ifa, struct nlmsghdr *nlh, in __inet_insert_ifa() argument
552 rtmsg_ifa(RTM_NEWADDR, ifa, nlh, portid); in __inet_insert_ifa()
644 static int inet_rtm_deladdr(struct sk_buff *skb, struct nlmsghdr *nlh, in inet_rtm_deladdr() argument
657 err = nlmsg_parse_deprecated(nlh, sizeof(*ifm), tb, IFA_MAX, in inet_rtm_deladdr()
662 ifm = nlmsg_data(nlh); in inet_rtm_deladdr()
685 __inet_del_ifa(in_dev, ifap, 1, nlh, NETLINK_CB(skb).portid); in inet_rtm_deladdr()
822 static struct in_ifaddr *rtm_to_ifaddr(struct net *net, struct nlmsghdr *nlh, in rtm_to_ifaddr() argument
833 err = nlmsg_parse_deprecated(nlh, sizeof(*ifm), tb, IFA_MAX, in rtm_to_ifaddr()
838 ifm = nlmsg_data(nlh); in rtm_to_ifaddr()
927 static int inet_rtm_newaddr(struct sk_buff *skb, struct nlmsghdr *nlh, in inet_rtm_newaddr() argument
938 ifa = rtm_to_ifaddr(net, nlh, &valid_lft, &prefered_lft, extack); in inet_rtm_newaddr()
956 return __inet_insert_ifa(ifa, nlh, NETLINK_CB(skb).portid, in inet_rtm_newaddr()
963 if (nlh->nlmsg_flags & NLM_F_EXCL || in inet_rtm_newaddr()
964 !(nlh->nlmsg_flags & NLM_F_REPLACE)) in inet_rtm_newaddr()
977 rtmsg_ifa(RTM_NEWADDR, ifa, nlh, NETLINK_CB(skb).portid); in inet_rtm_newaddr()
1652 struct nlmsghdr *nlh; in inet_fill_ifaddr() local
1655 nlh = nlmsg_put(skb, args->portid, args->seq, args->event, sizeof(*ifm), in inet_fill_ifaddr()
1657 if (!nlh) in inet_fill_ifaddr()
1660 ifm = nlmsg_data(nlh); in inet_fill_ifaddr()
1707 nlmsg_end(skb, nlh); in inet_fill_ifaddr()
1711 nlmsg_cancel(skb, nlh); in inet_fill_ifaddr()
1715 static int inet_valid_dump_ifaddr_req(const struct nlmsghdr *nlh, in inet_valid_dump_ifaddr_req() argument
1725 if (nlh->nlmsg_len < nlmsg_msg_size(sizeof(*ifm))) { in inet_valid_dump_ifaddr_req()
1730 ifm = nlmsg_data(nlh); in inet_valid_dump_ifaddr_req()
1742 err = nlmsg_parse_deprecated_strict(nlh, sizeof(*ifm), tb, IFA_MAX, in inet_valid_dump_ifaddr_req()
1802 const struct nlmsghdr *nlh = cb->nlh; in inet_dump_ifaddr() local
1805 .seq = nlh->nlmsg_seq, in inet_dump_ifaddr()
1825 err = inet_valid_dump_ifaddr_req(nlh, &fillargs, &tgt_net, in inet_dump_ifaddr()
1884 static void rtmsg_ifa(int event, struct in_ifaddr *ifa, struct nlmsghdr *nlh, in rtmsg_ifa() argument
1889 .seq = nlh ? nlh->nlmsg_seq : 0, in rtmsg_ifa()
1910 rtnl_notify(skb, net, portid, RTNLGRP_IPV4_IFADDR, nlh, GFP_KERNEL); in rtmsg_ifa()
2033 struct nlmsghdr *nlh; in inet_netconf_fill_devconf() local
2037 nlh = nlmsg_put(skb, portid, seq, event, sizeof(struct netconfmsg), in inet_netconf_fill_devconf()
2039 if (!nlh) in inet_netconf_fill_devconf()
2045 ncm = nlmsg_data(nlh); in inet_netconf_fill_devconf()
2080 nlmsg_end(skb, nlh); in inet_netconf_fill_devconf()
2084 nlmsg_cancel(skb, nlh); in inet_netconf_fill_devconf()
2122 const struct nlmsghdr *nlh, in inet_netconf_valid_get_req() argument
2128 if (nlh->nlmsg_len < nlmsg_msg_size(sizeof(struct netconfmsg))) { in inet_netconf_valid_get_req()
2134 return nlmsg_parse_deprecated(nlh, sizeof(struct netconfmsg), in inet_netconf_valid_get_req()
2138 err = nlmsg_parse_deprecated_strict(nlh, sizeof(struct netconfmsg), in inet_netconf_valid_get_req()
2161 struct nlmsghdr *nlh, in inet_netconf_get_devconf() argument
2173 err = inet_netconf_valid_get_req(in_skb, nlh, tb, extack); in inet_netconf_get_devconf()
2207 nlh->nlmsg_seq, RTM_NEWNETCONF, 0, in inet_netconf_get_devconf()
2223 const struct nlmsghdr *nlh = cb->nlh; in inet_netconf_dump_devconf() local
2235 if (nlh->nlmsg_len < nlmsg_msg_size(sizeof(*ncm))) { in inet_netconf_dump_devconf()
2240 if (nlmsg_attrlen(nlh, sizeof(*ncm))) { in inet_netconf_dump_devconf()
2265 nlh->nlmsg_seq, in inet_netconf_dump_devconf()
2282 nlh->nlmsg_seq, in inet_netconf_dump_devconf()
2293 nlh->nlmsg_seq, in inet_netconf_dump_devconf()