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

Function check_urpf_nhop

freebsd/netinet6/in6_fib.c:184–200  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

182#endif
183
184inline static int
185check_urpf_nhop(const struct nhop_object *nh, uint32_t flags,
186 const struct ifnet *src_if)
187{
188
189 if (src_if != NULL && nh->nh_aifp == src_if) {
190 return (1);
191 }
192 if (src_if == NULL) {
193 if ((flags & NHR_NODEFAULT) == 0)
194 return (1);
195 else if ((nh->nh_flags & NHF_DEFAULT) == 0)
196 return (1);
197 }
198
199 return (0);
200}
201
202static int
203check_urpf(struct nhop_object *nh, uint32_t flags,

Callers 1

check_urpfFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected