Changeset 56176 in vbox
- Timestamp:
- Jun 1, 2015 9:29:58 AM (10 years ago)
- svn:sync-xref-src-repo-rev:
- 100709
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Network/slirp/slirp.c
r55869 r56176 489 489 void slirp_link_down(PNATState pData) 490 490 { 491 struct socket *so;492 491 struct port_forward_rule *rule; 493 492 … … 496 495 497 496 slirpReleaseDnsSettings(pData); 497 498 /* 499 * Clear the active state of port-forwarding rules to force 500 * re-setup on restoration of communications. 501 */ 502 LIST_FOREACH(rule, &pData->port_forward_rule_head, list) 503 { 504 rule->activated = 0; 505 } 506 pData->cRedirectionsActive = 0; 507 508 link_up = 0; 509 } 510 511 /** 512 * Terminates the slirp component. 513 */ 514 void slirp_term(PNATState pData) 515 { 516 struct socket *so; 517 518 if (pData == NULL) 519 return; 520 521 icmp_finit(pData); 498 522 499 523 while ((so = tcb.so_next) != &tcb) … … 510 534 while ((so = udb.so_next) != &udb) 511 535 udp_detach(pData, so); 512 513 /*514 * Clear the active state of port-forwarding rules to force515 * re-setup on restoration of communications.516 */517 LIST_FOREACH(rule, &pData->port_forward_rule_head, list)518 {519 rule->activated = 0;520 }521 pData->cRedirectionsActive = 0;522 523 link_up = 0;524 }525 526 /**527 * Terminates the slirp component.528 */529 void slirp_term(PNATState pData)530 {531 if (pData == NULL)532 return;533 icmp_finit(pData);534 536 535 537 slirp_link_down(pData);
Note:
See TracChangeset
for help on using the changeset viewer.