diff options
author | melifaro <melifaro@FreeBSD.org> | 2014-08-15 12:58:32 +0000 |
---|---|---|
committer | melifaro <melifaro@FreeBSD.org> | 2014-08-15 12:58:32 +0000 |
commit | b921074dbbe4e80ff626101b6d252ec9bdec074b (patch) | |
tree | 031afeaab5356d346862280d84e02653c3a917f2 /sbin/ipfw/tables.c | |
parent | 6f8397b648e798c63c625664eeca8929d714fcd8 (diff) | |
download | FreeBSD-src-b921074dbbe4e80ff626101b6d252ec9bdec074b.zip FreeBSD-src-b921074dbbe4e80ff626101b6d252ec9bdec074b.tar.gz |
Make room for multi-type values in struct tentry.
Diffstat (limited to 'sbin/ipfw/tables.c')
-rw-r--r-- | sbin/ipfw/tables.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sbin/ipfw/tables.c b/sbin/ipfw/tables.c index 9ffbdef..1d038d8 100644 --- a/sbin/ipfw/tables.c +++ b/sbin/ipfw/tables.c @@ -1387,15 +1387,15 @@ tentry_fill_value(ipfw_obj_header *oh, ipfw_obj_tentry *tent, char *arg, char *p; /* Try to interpret as number first */ - tent->value = strtoul(arg, &p, 0); + tent->v.value = strtoul(arg, &p, 0); if (*p == '\0') return; if (inet_pton(AF_INET, arg, &val) == 1) { - tent->value = ntohl(val); + tent->v.value = ntohl(val); return; } /* Try hostname */ - if (lookup_host(arg, (struct in_addr *)&tent->value) == 0) + if (lookup_host(arg, (struct in_addr *)&tent->v.value) == 0) return; errx(EX_OSERR, "Unable to parse value %s", arg); #if 0 @@ -1565,7 +1565,7 @@ table_show_entry(ipfw_xtable_info *i, ipfw_obj_tentry *tent) uint32_t tval; struct tflow_entry *tfe; - tval = tent->value; + tval = tent->v.value; if (co.do_value_as_ip || i->vftype == IPFW_VFTYPE_IP) { tval = htonl(tval); |