diff options
author | Ryan Thomas McBride <mcbride@cvs.openbsd.org> | 2003-12-18 20:55:21 +0000 |
---|---|---|
committer | Ryan Thomas McBride <mcbride@cvs.openbsd.org> | 2003-12-18 20:55:21 +0000 |
commit | 332d327f65af8664eb149422ea9cefcd9a0c104c (patch) | |
tree | 414de35594d3b70f97fd3df1ab9c01b59772caee /sys/net | |
parent | 7168c12f51a9721e6f551a62b3239ea35f6f82f7 (diff) |
Save pf_status.hostid and pf_status.stateid in the DIOCCLRSTATUS
ioctl.
Pointed out by dhartmei@
ok dhartmei@
Diffstat (limited to 'sys/net')
-rw-r--r-- | sys/net/pf_ioctl.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/net/pf_ioctl.c b/sys/net/pf_ioctl.c index 128343165bb..05b377b6089 100644 --- a/sys/net/pf_ioctl.c +++ b/sys/net/pf_ioctl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pf_ioctl.c,v 1.93 2003/12/18 20:52:19 mcbride Exp $ */ +/* $OpenBSD: pf_ioctl.c,v 1.94 2003/12/18 20:55:20 mcbride Exp $ */ /* * Copyright (c) 2001 Daniel Hartmeier @@ -1387,11 +1387,13 @@ pfioctl(dev_t dev, u_long cmd, caddr_t addr, int flags, struct proc *p) } case DIOCCLRSTATUS: { + u_int64_t stateid = pf_status.stateid; u_int32_t running = pf_status.running; u_int32_t states = pf_status.states; u_int32_t src_nodes = pf_status.src_nodes; u_int32_t since = pf_status.since; u_int32_t debug = pf_status.debug; + u_int32_t hostid = pf_status.hostid; bzero(&pf_status, sizeof(struct pf_status)); pf_status.running = running; @@ -1399,6 +1401,8 @@ pfioctl(dev_t dev, u_long cmd, caddr_t addr, int flags, struct proc *p) pf_status.src_nodes = src_nodes; pf_status.since = since; pf_status.debug = debug; + pf_status.hostid = hostid; + pf_status.stateid = stateid; if (status_ifp != NULL) strlcpy(pf_status.ifname, status_ifp->if_xname, IFNAMSIZ); |