Source-Changes-HG archive

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

[src/trunk]: src/sys/netinet Change test for M_EXT to M_READONLY for MROUTING...



details:   https://anonhg.NetBSD.org/src/rev/60dc62eb457c
branches:  trunk
changeset: 525862:60dc62eb457c
user:      matt <matt%NetBSD.org@localhost>
date:      Thu Apr 18 22:33:21 2002 +0000

description:
Change test for M_EXT to M_READONLY for MROUTING.  We only need to to do
a pullup if we aren't allowed to modify the packet.

diffstat:

 sys/netinet/ip_input.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r deb18c0d5b23 -r 60dc62eb457c sys/netinet/ip_input.c
--- a/sys/netinet/ip_input.c    Thu Apr 18 21:58:02 2002 +0000
+++ b/sys/netinet/ip_input.c    Thu Apr 18 22:33:21 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ip_input.c,v 1.146 2002/03/08 20:48:43 thorpej Exp $   */
+/*     $NetBSD: ip_input.c,v 1.147 2002/04/18 22:33:21 matt Exp $      */
 
 /*
  * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -102,7 +102,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ip_input.c,v 1.146 2002/03/08 20:48:43 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ip_input.c,v 1.147 2002/04/18 22:33:21 matt Exp $");
 
 #include "opt_gateway.h"
 #include "opt_pfil_hooks.h"
@@ -616,7 +616,7 @@
 #ifdef MROUTING
                extern struct socket *ip_mrouter;
 
-               if (m->m_flags & M_EXT) {
+               if (M_READONLY(m)) {
                        if ((m = m_pullup(m, hlen)) == 0) {
                                ipstat.ips_toosmall++;
                                return;



Home | Main Index | Thread Index | Old Index