diff options
author | jhay <jhay@FreeBSD.org> | 1996-04-13 15:13:30 +0000 |
---|---|---|
committer | jhay <jhay@FreeBSD.org> | 1996-04-13 15:13:30 +0000 |
commit | 31a4067a68fd28790af3344406d3014a7f10e002 (patch) | |
tree | 6d37fe3ef7cebcdc07aae384d9b3b3357c505bfc /usr.sbin/IPXrouted/output.c | |
parent | a8973daccf644ddc42220e04b6136d12fff16060 (diff) | |
download | FreeBSD-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/output.c')
-rw-r--r-- | usr.sbin/IPXrouted/output.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/IPXrouted/output.c b/usr.sbin/IPXrouted/output.c index b8975e2..f44d8c8 100644 --- a/usr.sbin/IPXrouted/output.c +++ b/usr.sbin/IPXrouted/output.c @@ -35,7 +35,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: output.c,v 1.1 1995/10/26 21:28:20 julian Exp $ + * $Id: output.c,v 1.2 1995/12/05 04:59:54 julian Exp $ */ #ifndef lint @@ -143,7 +143,8 @@ again: for (rh = base; rh < &base[ROUTEHASHSIZ]; rh++) for (rt = rh->rt_forw; rt != (struct rt_entry *)rh; rt = rt->rt_forw) { size = (char *)n - (char *)msg; - if (size > MAXPACKETSIZE - sizeof (struct netinfo)) { + if (size >= ((MAXRIPNETS * sizeof (struct netinfo)) + + sizeof (msg->rip_cmd))) { (*output)(ripsock, flags, dst, size); TRACE_OUTPUT(ifp, dst, size); n = msg->rip_nets; |