Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/netinet when fastrouting a packet which needs fragmentat...



details:   https://anonhg.NetBSD.org/src/rev/c7f4470d8d48
branches:  trunk
changeset: 475805:c7f4470d8d48
user:      marc <marc%NetBSD.org@localhost>
date:      Thu Aug 26 02:15:35 1999 +0000

description:
when fastrouting a packet which needs fragmentation, the packet passed
to if_output did not have m->m_pkthdr.len set correctly.  Add the code
to do this from the similar code in ip_output.c

diffstat:

 sys/netinet/ip_fil.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (27 lines):

diff -r b93f1f1764f5 -r c7f4470d8d48 sys/netinet/ip_fil.c
--- a/sys/netinet/ip_fil.c      Thu Aug 26 00:04:30 1999 +0000
+++ b/sys/netinet/ip_fil.c      Thu Aug 26 02:15:35 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ip_fil.c,v 1.34 1999/02/02 19:57:31 cjs Exp $  */
+/*     $NetBSD: ip_fil.c,v 1.35 1999/08/26 02:15:35 marc Exp $ */
 
 /*
  * Copyright (C) 1993-1998 by Darren Reed.
@@ -9,7 +9,7 @@
  */
 #if !defined(lint)
 #if defined(__NetBSD__)
-static const char rcsid[] = "$NetBSD: ip_fil.c,v 1.34 1999/02/02 19:57:31 cjs Exp $";
+static const char rcsid[] = "$NetBSD: ip_fil.c,v 1.35 1999/08/26 02:15:35 marc Exp $";
 #else
 static const char sccsid[] = "@(#)ip_fil.c     2.41 6/5/96 (C) 1993-1995 Darren Reed";
 static const char rcsid[] = "@(#)Id: ip_fil.c,v 2.0.2.44.2.10 1998/11/22 01:50:22 darrenr Exp ";
@@ -1105,6 +1105,8 @@
                        error = ENOBUFS;        /* ??? */
                        goto sendorfree;
                }
+               m->m_pkthdr.len = mhlen + len;
+               m->m_pkthdr.rcvif = (struct ifnet *)0;
 # ifndef sparc
                mhip->ip_off = htons((u_short)mhip->ip_off);
 # endif



Home | Main Index | Thread Index | Old Index