summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFederico G. Schwindt <fgsch@cvs.openbsd.org>2000-01-11 20:56:16 +0000
committerFederico G. Schwindt <fgsch@cvs.openbsd.org>2000-01-11 20:56:16 +0000
commit8f5dd5bcafcccac972121fc16e2d887c37a271eb (patch)
tree6218f5223ae1a5647b4ac5294e6e56fa8ca12cb4
parent6d411e5f987d64e01fc12f8bfac7c9a8b5348ce6 (diff)
Call ipx_output_type20 for type 20 (netbios) packets.
-rw-r--r--sys/netipx/ipx_input.c15
1 files changed, 14 insertions, 1 deletions
diff --git a/sys/netipx/ipx_input.c b/sys/netipx/ipx_input.c
index 3380376fcb8..132cdb811a7 100644
--- a/sys/netipx/ipx_input.c
+++ b/sys/netipx/ipx_input.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ipx_input.c,v 1.7 2000/01/11 20:30:13 fgsch Exp $ */
+/* $OpenBSD: ipx_input.c,v 1.8 2000/01/11 20:56:15 fgsch Exp $ */
/*-
*
@@ -74,6 +74,7 @@ int ipxprintfs = IPXPRINTFS;
int ipxcksum = 0;
int ipxdonosocks = 0;
int ipxforwarding = 0;
+int ipxnetbios = 0;
union ipx_net ipx_zeronet;
union ipx_host ipx_zerohost;
@@ -193,6 +194,18 @@ next:
}
/*
+ * Propagated (Netbios) packets (type 20) has to be handled
+ * different. :-(
+ */
+ if (ipx->ipx_pt == IPXPROTO_PPROP) {
+ if (ipxnetbios) {
+ ipx_output_type20(m);
+ goto next;
+ } else
+ goto bad;
+ }
+
+ /*
* Is this a directed broadcast?
*/
if (ipx_hosteqnh(ipx_broadhost,ipx->ipx_dna.ipx_host)) {