summaryrefslogtreecommitdiff
path: root/common/raw.c
diff options
context:
space:
mode:
authorTed Lemon <source@isc.org>1997-10-20 21:47:15 +0000
committerTed Lemon <source@isc.org>1997-10-20 21:47:15 +0000
commit3648a2a16755015a5ae683fde544c8d2cb818de7 (patch)
tree6735110684f09b26b154da04916015ed46ca5259 /common/raw.c
parent6edb572b2e275f7c8fa3dc0077504d58e6e13e76 (diff)
downloadisc-dhcp-3648a2a16755015a5ae683fde544c8d2cb818de7.tar.gz
Don't print startup banner if quiet_interface_discovery is set
Diffstat (limited to 'common/raw.c')
-rw-r--r--common/raw.c16
1 files changed, 9 insertions, 7 deletions
diff --git a/common/raw.c b/common/raw.c
index 6d764169..973ede13 100644
--- a/common/raw.c
+++ b/common/raw.c
@@ -54,7 +54,7 @@
#ifndef lint
static char copyright[] =
-"$Id: raw.c,v 1.10 1997/02/19 10:51:44 mellon Exp $ Copyright (c) 1995, 1996 The Internet Software Consortium. All rights reserved.\n";
+"$Id: raw.c,v 1.11 1997/10/20 21:47:14 mellon Exp $ Copyright (c) 1995, 1996 The Internet Software Consortium. All rights reserved.\n";
#endif /* not lint */
#include "dhcpd.h"
@@ -78,8 +78,9 @@ void if_register_send (info)
memset (name.sin_zero, 0, sizeof (name.sin_zero));
/* List addresses on which we're listening. */
- note ("Sending on %s, port %d",
- piaddr (info -> address), htons (local_port));
+ if (!quiet_interface_discovery)
+ note ("Sending on %s, port %d",
+ piaddr (info -> address), htons (local_port));
if ((sock = socket (AF_INET, SOCK_RAW, IPPROTO_RAW)) < 0)
error ("Can't create dhcp socket: %m");
@@ -95,10 +96,11 @@ void if_register_send (info)
error ("Can't set IP_HDRINCL flag: %m");
info -> wfdesc = sock;
- note ("Sending on Raw/%s/%s",
- info -> name,
- (info -> shared_network ?
- info -> shared_network -> name : "unattached"));
+ if (!quiet_interface_discovery)
+ note ("Sending on Raw/%s/%s",
+ info -> name,
+ (info -> shared_network ?
+ info -> shared_network -> name : "unattached"));
}
size_t send_packet (interface, packet, raw, len, from, to, hto)