implemented updown script to handle firewalling

This commit is contained in:
Martin Willi
2006-09-12 13:50:14 +00:00
parent a095243f60
commit d7934d0cfc
9 changed files with 208 additions and 33 deletions
+2 -8
View File
@@ -177,10 +177,7 @@ static void update_string(private_traffic_selector_t *this)
/* build network mask string */
mask = calc_netbits(this);
if (mask != 32)
{
snprintf(mask_str, sizeof(mask_str), "/%d", mask);
}
snprintf(mask_str, sizeof(mask_str), "/%d", mask);
}
else
{
@@ -191,10 +188,7 @@ static void update_string(private_traffic_selector_t *this)
/* build network mask string */
mask = calc_netbits(this);
if (mask != 128)
{
snprintf(mask_str, sizeof(mask_str), "/%d", mask);
}
snprintf(mask_str, sizeof(mask_str), "/%d", mask);
}
/* build protocol string */