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

Function find_handler

freebsd/netinet/libalias/alias_mod.c:109–121  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

107}
108
109int
110find_handler(int8_t dir, int8_t proto, struct libalias *la, struct ip *ip,
111 struct alias_data *ad)
112{
113 struct proto_handler *p;
114
115 TAILQ_FOREACH(p, &handler_chain, link)
116 if ((p->dir & dir) && (p->proto & proto) &&
117 p->fingerprint(la, ad) == 0)
118 return (p->protohandler(la, ip, ad));
119
120 return (ENOENT);
121}
122
123struct proto_handler *
124first_handler(void)

Callers 6

UdpAliasInFunction · 0.85
UdpAliasOutFunction · 0.85
TcpAliasInFunction · 0.85
TcpAliasOutFunction · 0.85
LibAliasInLockedFunction · 0.85
LibAliasOutLockedFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected