• Home
  • Raw
  • Download

Lines Matching refs:nhm

215 	struct nhmsg *nhm;  in nh_fill_node()  local
217 nlh = nlmsg_put(skb, portid, seq, event, sizeof(*nhm), nlflags); in nh_fill_node()
221 nhm = nlmsg_data(nlh); in nh_fill_node()
222 nhm->nh_family = AF_UNSPEC; in nh_fill_node()
223 nhm->nh_flags = nh->nh_flags; in nh_fill_node()
224 nhm->nh_protocol = nh->protocol; in nh_fill_node()
225 nhm->nh_scope = 0; in nh_fill_node()
226 nhm->resvd = 0; in nh_fill_node()
240 nhm->nh_family = nhi->family; in nh_fill_node()
253 nhm->nh_scope = nhi->fib_nhc.nhc_scope; in nh_fill_node()
1305 struct nhmsg *nhm = nlmsg_data(nlh); in rtm_to_nh_config() local
1309 err = nlmsg_parse(nlh, sizeof(*nhm), tb, NHA_MAX, rtm_nh_policy, in rtm_to_nh_config()
1315 if (nhm->resvd || nhm->nh_scope) { in rtm_to_nh_config()
1319 if (nhm->nh_flags & ~NEXTHOP_VALID_USER_FLAGS) { in rtm_to_nh_config()
1324 switch (nhm->nh_family) { in rtm_to_nh_config()
1348 cfg->nh_family = nhm->nh_family; in rtm_to_nh_config()
1349 cfg->nh_protocol = nhm->nh_protocol; in rtm_to_nh_config()
1350 cfg->nh_flags = nhm->nh_flags; in rtm_to_nh_config()
1356 if (nhm->nh_family != AF_UNSPEC) { in rtm_to_nh_config()
1489 struct nhmsg *nhm = nlmsg_data(nlh); in nh_valid_get_del_req() local
1493 err = nlmsg_parse(nlh, sizeof(*nhm), tb, NHA_MAX, rtm_nh_policy, in nh_valid_get_del_req()
1512 if (nhm->nh_protocol || nhm->resvd || nhm->nh_scope || nhm->nh_flags) { in nh_valid_get_del_req()
1640 struct nhmsg *nhm; in nh_valid_dump_req() local
1644 err = nlmsg_parse(nlh, sizeof(*nhm), tb, NHA_MAX, rtm_nh_policy, in nh_valid_dump_req()
1679 nhm = nlmsg_data(nlh); in nh_valid_dump_req()
1680 if (nhm->nh_protocol || nhm->resvd || nhm->nh_scope || nhm->nh_flags) { in nh_valid_dump_req()
1691 struct nhmsg *nhm = nlmsg_data(cb->nlh); in rtm_dump_nexthop() local
1714 group_filter, nhm->nh_family)) in rtm_dump_nexthop()