|
Lines 2691-2696
Link Here
|
| 2691 |
default_fw_tables = IPFW_TABLES_MAX; |
2691 |
default_fw_tables = IPFW_TABLES_MAX; |
| 2692 |
|
2692 |
|
| 2693 |
ipfw_init_sopt_handler(); |
2693 |
ipfw_init_sopt_handler(); |
|
|
2694 |
ipfw_init_obj_rewriter(); |
| 2694 |
ipfw_iface_init(); |
2695 |
ipfw_iface_init(); |
| 2695 |
return (error); |
2696 |
return (error); |
| 2696 |
} |
2697 |
} |
|
Lines 2703-2708
Link Here
|
| 2703 |
{ |
2704 |
{ |
| 2704 |
|
2705 |
|
| 2705 |
ipfw_iface_destroy(); |
2706 |
ipfw_iface_destroy(); |
|
|
2707 |
ipfw_destroy_obj_rewriter(); |
| 2706 |
ipfw_destroy_sopt_handler(); |
2708 |
ipfw_destroy_sopt_handler(); |
| 2707 |
printf("IP firewall unloaded\n"); |
2709 |
printf("IP firewall unloaded\n"); |
| 2708 |
} |
2710 |
} |
|
Lines 2738-2744
Link Here
|
| 2738 |
/* Init shared services hash table */ |
2740 |
/* Init shared services hash table */ |
| 2739 |
ipfw_init_srv(chain); |
2741 |
ipfw_init_srv(chain); |
| 2740 |
|
2742 |
|
| 2741 |
ipfw_init_obj_rewriter(); |
|
|
| 2742 |
ipfw_init_counters(); |
2743 |
ipfw_init_counters(); |
| 2743 |
/* insert the default rule and create the initial map */ |
2744 |
/* insert the default rule and create the initial map */ |
| 2744 |
chain->n_rules = 1; |
2745 |
chain->n_rules = 1; |
|
Lines 2845-2851
Link Here
|
| 2845 |
IPFW_LOCK_DESTROY(chain); |
2846 |
IPFW_LOCK_DESTROY(chain); |
| 2846 |
ipfw_dyn_uninit(1); /* free the remaining parts */ |
2847 |
ipfw_dyn_uninit(1); /* free the remaining parts */ |
| 2847 |
ipfw_destroy_counters(); |
2848 |
ipfw_destroy_counters(); |
| 2848 |
ipfw_destroy_obj_rewriter(); |
|
|
| 2849 |
return (0); |
2849 |
return (0); |
| 2850 |
} |
2850 |
} |
| 2851 |
|
2851 |
|