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

Function ng_etf_findentry

freebsd/netgraph/ng_etf.c:157–169  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

155typedef struct ETF *etf_p;
156
157static struct filter *
158ng_etf_findentry(etf_p etfp, u_int16_t ethertype)
159{
160 struct filterhead *chain = etfp->hashtable + HASH(ethertype);
161 struct filter *fil;
162
163 LIST_FOREACH(fil, chain, next) {
164 if (fil->ethertype == ethertype) {
165 return (fil);
166 }
167 }
168 return (NULL);
169}
170
171/*
172 * Allocate the private data structure. The generic node has already

Callers 2

ng_etf_rcvmsgFunction · 0.85
ng_etf_rcvdataFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected