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

Function RuleDelete

freebsd/netinet/libalias/alias_proxy.c:244–260  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

242}
243
244static void
245RuleDelete(struct proxy_entry *entry)
246{
247 struct libalias *la;
248
249 la = entry->la;
250 LIBALIAS_LOCK_ASSERT(la);
251 if (entry->last != NULL)
252 entry->last->next = entry->next;
253 else
254 la->proxyList = entry->next;
255
256 if (entry->next != NULL)
257 entry->next->last = entry->last;
258
259 free(entry);
260}
261
262static int
263RuleNumberDelete(struct libalias *la, int rule_index)

Callers 1

RuleNumberDeleteFunction · 0.85

Calls 1

freeFunction · 0.50

Tested by

no test coverage detected