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

Function RuleNumberDelete

freebsd/netinet/libalias/alias_proxy.c:262–283  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

260}
261
262static int
263RuleNumberDelete(struct libalias *la, int rule_index)
264{
265 int err;
266 struct proxy_entry *ptr;
267
268 LIBALIAS_LOCK_ASSERT(la);
269 err = -1;
270 ptr = la->proxyList;
271 while (ptr != NULL) {
272 struct proxy_entry *ptr_next;
273
274 ptr_next = ptr->next;
275 if (ptr->rule_index == rule_index) {
276 err = 0;
277 RuleDelete(ptr);
278 }
279 ptr = ptr_next;
280 }
281
282 return (err);
283}
284
285static void
286ProxyEncodeTcpStream(struct alias_link *lnk,

Callers 1

LibAliasProxyRuleFunction · 0.85

Calls 1

RuleDeleteFunction · 0.85

Tested by

no test coverage detected