| 155 | typedef struct ETF *etf_p; |
| 156 | |
| 157 | static struct filter * |
| 158 | ng_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 |
no outgoing calls
no test coverage detected