MCPcopy Create free account
hub / github.com/F-Stack/f-stack / rt_update_ro_flags

Function rt_update_ro_flags

freebsd/netinet/ip_output.c:294–304  ·  view source on GitHub ↗

rte<>ro_flags translation */

Source from the content-addressed store, hash-verified

292
293/* rte<>ro_flags translation */
294static inline void
295rt_update_ro_flags(struct route *ro)
296{
297 int nh_flags = ro->ro_nh->nh_flags;
298
299 ro->ro_flags &= ~ (RT_REJECT|RT_BLACKHOLE|RT_HAS_GW);
300
301 ro->ro_flags |= (nh_flags & NHF_REJECT) ? RT_REJECT : 0;
302 ro->ro_flags |= (nh_flags & NHF_BLACKHOLE) ? RT_BLACKHOLE : 0;
303 ro->ro_flags |= (nh_flags & NHF_GATEWAY) ? RT_HAS_GW : 0;
304}
305
306/*
307 * IP output. The packet in mbuf chain m contains a skeletal IP

Callers 1

ip_outputFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected