Lines Matching refs:nlh
41 struct nlmsghdr *nlh, struct net *net, u32 portid,
283 struct nlmsghdr *nlh = info ? info->nlh : NULL; in mpls_notify_route() local
290 rtmsg_lfib(event, index, rt, nlh, net, portid, nlm_flags); in mpls_notify_route()
675 static int rtm_to_route_config(struct sk_buff *skb, struct nlmsghdr *nlh, in rtm_to_route_config() argument
683 err = nlmsg_parse(nlh, sizeof(*rtm), tb, RTA_MAX, rtm_mpls_policy); in rtm_to_route_config()
688 rtm = nlmsg_data(nlh); in rtm_to_route_config()
716 cfg->rc_nlflags = nlh->nlmsg_flags; in rtm_to_route_config()
718 cfg->rc_nlinfo.nlh = nlh; in rtm_to_route_config()
793 static int mpls_rtm_delroute(struct sk_buff *skb, struct nlmsghdr *nlh) in mpls_rtm_delroute() argument
798 err = rtm_to_route_config(skb, nlh, &cfg); in mpls_rtm_delroute()
806 static int mpls_rtm_newroute(struct sk_buff *skb, struct nlmsghdr *nlh) in mpls_rtm_newroute() argument
811 err = rtm_to_route_config(skb, nlh, &cfg); in mpls_rtm_newroute()
822 struct nlmsghdr *nlh; in mpls_dump_route() local
825 nlh = nlmsg_put(skb, portid, seq, event, sizeof(*rtm), flags); in mpls_dump_route()
826 if (nlh == NULL) in mpls_dump_route()
829 rtm = nlmsg_data(nlh); in mpls_dump_route()
851 nlmsg_end(skb, nlh); in mpls_dump_route()
855 nlmsg_cancel(skb, nlh); in mpls_dump_route()
881 cb->nlh->nlmsg_seq, RTM_NEWROUTE, in mpls_dump_routes()
904 struct nlmsghdr *nlh, struct net *net, u32 portid, in rtmsg_lfib() argument
908 u32 seq = nlh ? nlh->nlmsg_seq : 0; in rtmsg_lfib()
922 rtnl_notify(skb, net, portid, RTNLGRP_MPLS_ROUTE, nlh, GFP_KERNEL); in rtmsg_lfib()