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

Function iflib_ip_lookup

freebsd/net/iflib_clone.c:118–130  ·  view source on GitHub ↗

* XXX this assumes that the rest of the * code won't hang on to it after it's * removed / unloaded */

Source from the content-addressed store, hash-verified

116 * removed / unloaded
117 */
118static if_pseudo_t
119iflib_ip_lookup(const char *name)
120{
121 if_pseudo_t ip = NULL;
122
123 PSEUDO_LOCK();
124 LIST_FOREACH(ip, &iflib_pseudos, ip_list) {
125 if (!strcmp(ip->ip_sctx->isc_name, name))
126 break;
127 }
128 PSEUDO_UNLOCK();
129 return (ip);
130}
131
132static void
133iflib_ip_delete(if_pseudo_t ip)

Callers 2

iflib_clone_createFunction · 0.85
iflib_clone_registerFunction · 0.85

Calls 1

strcmpFunction · 0.85

Tested by

no test coverage detected