ip_gre.c (106934) | ip_gre.c (107670) |
---|---|
1/* $NetBSD: ip_gre.c,v 1.21 2002/08/14 00:23:30 itojun Exp $ */ | 1/* $NetBSD: ip_gre.c,v 1.21 2002/08/14 00:23:30 itojun Exp $ */ |
2/* $FreeBSD: head/sys/netinet/ip_gre.c 106934 2002-11-14 23:45:13Z sam $ */ | 2/* $FreeBSD: head/sys/netinet/ip_gre.c 107670 2002-12-07 14:22:05Z sobomax $ */ |
3 4/* 5 * Copyright (c) 1998 The NetBSD Foundation, Inc. 6 * All rights reserved. 7 * 8 * This code is derived from software contributed to The NetBSD Foundation 9 * by Heiko W.Rupp <hwr@pilhuhn.de> 10 * --- 163 unchanged lines hidden (view full) --- 174 return(0); 175 if (flags & GRE_KP) 176 hlen += 4; 177 if (flags & GRE_SP) 178 hlen +=4; 179 180 switch (ntohs(gip->gi_ptype)) { /* ethertypes */ 181 case ETHERTYPE_IP: /* shouldn't need a schednetisr(), as */ | 3 4/* 5 * Copyright (c) 1998 The NetBSD Foundation, Inc. 6 * All rights reserved. 7 * 8 * This code is derived from software contributed to The NetBSD Foundation 9 * by Heiko W.Rupp <hwr@pilhuhn.de> 10 * --- 163 unchanged lines hidden (view full) --- 174 return(0); 175 if (flags & GRE_KP) 176 hlen += 4; 177 if (flags & GRE_SP) 178 hlen +=4; 179 180 switch (ntohs(gip->gi_ptype)) { /* ethertypes */ 181 case ETHERTYPE_IP: /* shouldn't need a schednetisr(), as */ |
182 ifq = &ipintrq; /* we are in ip_input */ | 182 case WCCP_PROTOCOL_TYPE: /* we are in ip_input */ 183 ifq = &ipintrq; |
183 break; 184#ifdef NS 185 case ETHERTYPE_NS: 186 ifq = &nsintrq; 187 schednetisr(NETISR_NS); 188 break; 189#endif 190#ifdef NETATALK --- 161 unchanged lines hidden --- | 184 break; 185#ifdef NS 186 case ETHERTYPE_NS: 187 ifq = &nsintrq; 188 schednetisr(NETISR_NS); 189 break; 190#endif 191#ifdef NETATALK --- 161 unchanged lines hidden --- |