summaryrefslogtreecommitdiffstats
path: root/usr.sbin/IPXrouted/sap_output.c
diff options
context:
space:
mode:
authorjhay <jhay@FreeBSD.org>1996-04-13 15:13:30 +0000
committerjhay <jhay@FreeBSD.org>1996-04-13 15:13:30 +0000
commit31a4067a68fd28790af3344406d3014a7f10e002 (patch)
tree6d37fe3ef7cebcdc07aae384d9b3b3357c505bfc /usr.sbin/IPXrouted/sap_output.c
parenta8973daccf644ddc42220e04b6136d12fff16060 (diff)
downloadFreeBSD-src-31a4067a68fd28790af3344406d3014a7f10e002.zip
FreeBSD-src-31a4067a68fd28790af3344406d3014a7f10e002.tar.gz
Accept and use the content of packets received that is bigger than the
Novell spec, but still only transmit according to the spec. Add a feature to dump the RIP and SAP tables when a SIGINFO signal is received.
Diffstat (limited to 'usr.sbin/IPXrouted/sap_output.c')
-rw-r--r--usr.sbin/IPXrouted/sap_output.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/IPXrouted/sap_output.c b/usr.sbin/IPXrouted/sap_output.c
index 9456d81..a7be79e 100644
--- a/usr.sbin/IPXrouted/sap_output.c
+++ b/usr.sbin/IPXrouted/sap_output.c
@@ -28,7 +28,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: sap_output.c,v 1.2 1995/11/13 21:01:34 julian Exp $
+ * $Id: sap_output.c,v 1.3 1995/12/05 04:59:56 julian Exp $
*/
/*
@@ -126,7 +126,8 @@ sap_supply(dst, flags, ifp, ServType)
for (sh = base; sh < &base[SAPHASHSIZ]; sh++)
for (sap = sh->forw; sap != (struct sap_entry *)sh; sap = sap->forw) {
size = (char *)n - (char *)sap_msg;
- if (size > MAXPACKETSIZE - sizeof (struct sap_info)) {
+ if (size >= ((MAXSAPENTRIES * sizeof (struct sap_info)) +
+ sizeof (sap_msg->sap_cmd))) {
(*output)(sapsock, flags, dst, size);
TRACE_SAP_OUTPUT(ifp, dst, size);
n = sap_msg->sap;
OpenPOWER on IntegriCloud