| 260 | } |
| 261 | |
| 262 | static int |
| 263 | RuleNumberDelete(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 | |
| 285 | static void |
| 286 | ProxyEncodeTcpStream(struct alias_link *lnk, |
no test coverage detected