summaryrefslogtreecommitdiffstats
path: root/usr.sbin/IPXrouted/sap_input.c
diff options
context:
space:
mode:
authorjhay <jhay@FreeBSD.org>1999-04-24 09:18:49 +0000
committerjhay <jhay@FreeBSD.org>1999-04-24 09:18:49 +0000
commitb7deac3b242b710521e100e40db578d37734d871 (patch)
tree7047c531b59671c32426e154c978d1acac35a700 /usr.sbin/IPXrouted/sap_input.c
parent92e2d421da60aa12981a463edb31a7171816508e (diff)
downloadFreeBSD-src-b7deac3b242b710521e100e40db578d37734d871.zip
FreeBSD-src-b7deac3b242b710521e100e40db578d37734d871.tar.gz
Add an option to disable responses to SAP_GETNEAREST_SERVER requests.
Submitted by: Boris Popov <bp@butya.kz>
Diffstat (limited to 'usr.sbin/IPXrouted/sap_input.c')
-rw-r--r--usr.sbin/IPXrouted/sap_input.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.sbin/IPXrouted/sap_input.c b/usr.sbin/IPXrouted/sap_input.c
index 26130fe..5470c26 100644
--- a/usr.sbin/IPXrouted/sap_input.c
+++ b/usr.sbin/IPXrouted/sap_input.c
@@ -28,7 +28,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: sap_input.c,v 1.4 1997/02/22 16:00:59 peter Exp $
+ * $Id: sap_input.c,v 1.5 1997/07/06 07:38:31 jhay Exp $
*/
/*
@@ -36,6 +36,7 @@
*/
#include "defs.h"
+int dognreply = 1;
/*
* Process a newly received packet.
@@ -78,6 +79,8 @@ sap_input(from, size)
case SAP_REQ_NEAR:
if (ftrace)
fprintf(ftrace, "Received a sap REQ_NEAR packet.\n");
+ if (!dognreply)
+ return;
sap = sap_nearestserver(n->ServType, ifp);
if (sap == NULL)
return;
OpenPOWER on IntegriCloud