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

Function check_urpf_nhop

freebsd/netinet/in_fib.c:175–191  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

173#endif
174
175inline static int
176check_urpf_nhop(const struct nhop_object *nh, uint32_t flags,
177 const struct ifnet *src_if)
178{
179
180 if (src_if != NULL && nh->nh_aifp == src_if) {
181 return (1);
182 }
183 if (src_if == NULL) {
184 if ((flags & NHR_NODEFAULT) == 0)
185 return (1);
186 else if ((nh->nh_flags & NHF_DEFAULT) == 0)
187 return (1);
188 }
189
190 return (0);
191}
192
193static int
194check_urpf(struct nhop_object *nh, uint32_t flags,

Callers 1

check_urpfFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected