Lines Matching defs:nhm
700 struct nhmsg *nhm;
702 nlh = nlmsg_put(skb, portid, seq, event, sizeof(*nhm), nlflags);
706 nhm = nlmsg_data(nlh);
707 nhm->nh_family = AF_UNSPEC;
708 nhm->nh_flags = nh->nh_flags;
709 nhm->nh_protocol = nh->protocol;
710 nhm->nh_scope = 0;
711 nhm->resvd = 0;
727 nhm->nh_family = nhi->family;
743 nhm->nh_scope = nhi->fib_nhc.nhc_scope;
923 struct nhmsg *nhm;
925 nlh = nlmsg_put(skb, portid, seq, event, sizeof(*nhm), nlflags);
929 nhm = nlmsg_data(nlh);
930 nhm->nh_family = AF_UNSPEC;
931 nhm->nh_flags = bucket->nh_flags;
932 nhm->nh_protocol = nh->protocol;
933 nhm->nh_scope = 0;
934 nhm->resvd = 0;
2770 struct nhmsg *nhm = nlmsg_data(nlh);
2774 err = nlmsg_parse(nlh, sizeof(*nhm), tb,
2781 if (nhm->resvd || nhm->nh_scope) {
2785 if (nhm->nh_flags & ~NEXTHOP_VALID_USER_FLAGS) {
2790 switch (nhm->nh_family) {
2809 cfg->nh_family = nhm->nh_family;
2810 cfg->nh_protocol = nhm->nh_protocol;
2811 cfg->nh_flags = nhm->nh_flags;
2822 if (nhm->nh_flags) {
2830 if (nhm->nh_family != AF_UNSPEC) {
2973 struct nhmsg *nhm = nlmsg_data(nlh);
2975 if (nhm->nh_protocol || nhm->resvd || nhm->nh_scope || nhm->nh_flags) {
3125 struct nhmsg *nhm;
3147 nhm = nlmsg_data(nlh);
3148 if (nhm->nh_protocol || nhm->resvd || nhm->nh_scope || nhm->nh_flags) {
3218 struct nhmsg *nhm = nlmsg_data(cb->nlh);
3221 if (nh_dump_filtered(nh, filter, nhm->nh_family))
3361 struct nhmsg *nhm = nlmsg_data(cb->nlh);
3377 if (nh_dump_filtered(nhge->nh, &dd->filter, nhm->nh_family))