diff options
author | gad <gad@FreeBSD.org> | 2000-11-02 19:22:06 +0000 |
---|---|---|
committer | gad <gad@FreeBSD.org> | 2000-11-02 19:22:06 +0000 |
commit | cc698a11ac07a8f37f64408978c4dbc5385ea9a1 (patch) | |
tree | 2ef9fe3d67b1abb11e5e89f6faa1b32f61d27a0c /usr.sbin/lpr/common_source/net.c | |
parent | 47e0f18a13ecaa94d00b7c7c31dec9830fa60f7c (diff) | |
download | FreeBSD-src-cc698a11ac07a8f37f64408978c4dbc5385ea9a1.zip FreeBSD-src-cc698a11ac07a8f37f64408978c4dbc5385ea9a1.tar.gz |
Implement new printcap options of sr= (aka stat.recv) and sr= (aka stat.send)
in lpd. Stat.recv is useful on a printserver, as something of a network
performance-monitoring tool. Stat.send is a minimal accounting record of
sorts for jobs going to tcp/ip based printers.
Reviewed by: freebsd-print@bostonradio.org
Diffstat (limited to 'usr.sbin/lpr/common_source/net.c')
-rw-r--r-- | usr.sbin/lpr/common_source/net.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/lpr/common_source/net.c b/usr.sbin/lpr/common_source/net.c index 4f5c0c5..4cfabfa 100644 --- a/usr.sbin/lpr/common_source/net.c +++ b/usr.sbin/lpr/common_source/net.c @@ -65,9 +65,9 @@ static const char rcsid[] = #include "lp.local.h" #include "pathnames.h" - /* host machine name */ -char host[MAXHOSTNAMELEN]; -char *from = host; /* client's machine name */ +char host[MAXHOSTNAMELEN]; /* host machine name */ +char *from = host; /* client's machine name */ +char from_ip[MAXIPSTRLEN] = ""; /* client machine's IP address */ extern uid_t uid, euid; |