if_arcsubr.c (152315) | if_arcsubr.c (154518) |
---|---|
1/* $NetBSD: if_arcsubr.c,v 1.36 2001/06/14 05:44:23 itojun Exp $ */ | 1/* $NetBSD: if_arcsubr.c,v 1.36 2001/06/14 05:44:23 itojun Exp $ */ |
2/* $FreeBSD: head/sys/net/if_arcsubr.c 152315 2005-11-11 16:04:59Z ru $ */ | 2/* $FreeBSD: head/sys/net/if_arcsubr.c 154518 2006-01-18 14:24:39Z andre $ */ |
3 4/*- 5 * Copyright (c) 1994, 1995 Ignatios Souvatzis 6 * Copyright (c) 1982, 1989, 1993 7 * The Regents of the University of California. All rights reserved. 8 * 9 * Redistribution and use in source and binary forms, with or without 10 * modification, are permitted provided that the following conditions --- 543 unchanged lines hidden (view full) --- 554 ifp->if_imcasts++; 555 } 556 557 atype = ah->arc_type; 558 switch (atype) { 559#ifdef INET 560 case ARCTYPE_IP: 561 m_adj(m, ARC_HDRNEWLEN); | 3 4/*- 5 * Copyright (c) 1994, 1995 Ignatios Souvatzis 6 * Copyright (c) 1982, 1989, 1993 7 * The Regents of the University of California. All rights reserved. 8 * 9 * Redistribution and use in source and binary forms, with or without 10 * modification, are permitted provided that the following conditions --- 543 unchanged lines hidden (view full) --- 554 ifp->if_imcasts++; 555 } 556 557 atype = ah->arc_type; 558 switch (atype) { 559#ifdef INET 560 case ARCTYPE_IP: 561 m_adj(m, ARC_HDRNEWLEN); |
562 if (ip_fastforward(m)) | 562 if ((m = ip_fastforward(m)) == NULL) |
563 return; 564 isr = NETISR_IP; 565 break; 566 567 case ARCTYPE_IP_OLD: 568 m_adj(m, ARC_HDRLEN); | 563 return; 564 isr = NETISR_IP; 565 break; 566 567 case ARCTYPE_IP_OLD: 568 m_adj(m, ARC_HDRLEN); |
569 if (ip_fastforward(m)) | 569 if ((m = ip_fastforward(m)) == NULL) |
570 return; 571 isr = NETISR_IP; 572 break; 573 574 case ARCTYPE_ARP: 575 if (ifp->if_flags & IFF_NOARP) { 576 /* Discard packet if ARP is disabled on interface */ 577 m_freem(m); --- 320 unchanged lines hidden --- | 570 return; 571 isr = NETISR_IP; 572 break; 573 574 case ARCTYPE_ARP: 575 if (ifp->if_flags & IFF_NOARP) { 576 /* Discard packet if ARP is disabled on interface */ 577 m_freem(m); --- 320 unchanged lines hidden --- |