Lines Matching refs:nlh
36 struct nlmsghdr *nlh, struct net *net, u32 portid,
392 struct nlmsghdr *nlh = info ? info->nlh : NULL; in mpls_notify_route() local
399 rtmsg_lfib(event, index, rt, nlh, net, portid, nlm_flags); in mpls_notify_route()
1096 static int rtm_to_route_config(struct sk_buff *skb, struct nlmsghdr *nlh, in rtm_to_route_config() argument
1104 err = nlmsg_parse(nlh, sizeof(*rtm), tb, RTA_MAX, rtm_mpls_policy); in rtm_to_route_config()
1109 rtm = nlmsg_data(nlh); in rtm_to_route_config()
1138 cfg->rc_nlflags = nlh->nlmsg_flags; in rtm_to_route_config()
1140 cfg->rc_nlinfo.nlh = nlh; in rtm_to_route_config()
1195 static int mpls_rtm_delroute(struct sk_buff *skb, struct nlmsghdr *nlh) in mpls_rtm_delroute() argument
1200 err = rtm_to_route_config(skb, nlh, &cfg); in mpls_rtm_delroute()
1208 static int mpls_rtm_newroute(struct sk_buff *skb, struct nlmsghdr *nlh) in mpls_rtm_newroute() argument
1213 err = rtm_to_route_config(skb, nlh, &cfg); in mpls_rtm_newroute()
1224 struct nlmsghdr *nlh; in mpls_dump_route() local
1227 nlh = nlmsg_put(skb, portid, seq, event, sizeof(*rtm), flags); in mpls_dump_route()
1228 if (nlh == NULL) in mpls_dump_route()
1231 rtm = nlmsg_data(nlh); in mpls_dump_route()
1291 nlmsg_end(skb, nlh); in mpls_dump_route()
1295 nlmsg_cancel(skb, nlh); in mpls_dump_route()
1321 cb->nlh->nlmsg_seq, RTM_NEWROUTE, in mpls_dump_routes()
1365 struct nlmsghdr *nlh, struct net *net, u32 portid, in rtmsg_lfib() argument
1369 u32 seq = nlh ? nlh->nlmsg_seq : 0; in rtmsg_lfib()
1383 rtnl_notify(skb, net, portid, RTNLGRP_MPLS_ROUTE, nlh, GFP_KERNEL); in rtmsg_lfib()