diff options
Diffstat (limited to 'sbin/ipfw/nat.c')
-rw-r--r-- | sbin/ipfw/nat.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sbin/ipfw/nat.c b/sbin/ipfw/nat.c index 184b172..28dac86 100644 --- a/sbin/ipfw/nat.c +++ b/sbin/ipfw/nat.c @@ -87,7 +87,7 @@ set_addr_dynamic(const char *ifn, struct nat44_cfg_nat *n) struct ifa_msghdr *ifam; struct sockaddr_dl *sdl; struct sockaddr_in *sin; - int ifIndex, ifMTU; + int ifIndex; mib[0] = CTL_NET; mib[1] = PF_ROUTE; @@ -126,7 +126,6 @@ set_addr_dynamic(const char *ifn, struct nat44_cfg_nat *n) if (strlen(ifn) == sdl->sdl_nlen && strncmp(ifn, sdl->sdl_data, sdl->sdl_nlen) == 0) { ifIndex = ifm->ifm_index; - ifMTU = ifm->ifm_data.ifi_mtu; break; } } @@ -635,14 +634,13 @@ nat_show_log(struct nat44_cfg_nat *n, void *arg) static void nat_show_cfg(struct nat44_cfg_nat *n, void *arg) { - int i, cnt, flag, off; + int i, cnt, off; struct nat44_cfg_redir *t; struct nat44_cfg_spool *s; caddr_t buf; struct protoent *p; buf = (caddr_t)n; - flag = 1; off = sizeof(*n); printf("ipfw nat %s config", n->name); if (strlen(n->if_name) != 0) |