Deleted Added
full compact
if_gre.c (104366) if_gre.c (105194)
1/* $NetBSD: if_gre.c,v 1.42 2002/08/14 00:23:27 itojun Exp $ */
1/* $NetBSD: if_gre.c,v 1.42 2002/08/14 00:23:27 itojun Exp $ */
2/* $FreeBSD: head/sys/net/if_gre.c 104366 2002-10-02 09:38:17Z sobomax $ */
2/* $FreeBSD: head/sys/net/if_gre.c 105194 2002-10-16 01:54:46Z sam $ */
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 *

--- 368 unchanged lines hidden (view full) ---

379 ((struct ip*)gh)->ip_tos = ip->ip_tos;
380 ((struct ip*)gh)->ip_id = ip->ip_id;
381 gh->gi_len = m->m_pkthdr.len;
382 }
383
384 ifp->if_opackets++;
385 ifp->if_obytes += m->m_pkthdr.len;
386 /* send it off */
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 *

--- 368 unchanged lines hidden (view full) ---

379 ((struct ip*)gh)->ip_tos = ip->ip_tos;
380 ((struct ip*)gh)->ip_id = ip->ip_id;
381 gh->gi_len = m->m_pkthdr.len;
382 }
383
384 ifp->if_opackets++;
385 ifp->if_obytes += m->m_pkthdr.len;
386 /* send it off */
387 error = ip_output(m, NULL, &sc->route, 0, NULL);
387 error = ip_output(m, NULL, &sc->route, 0, NULL, NULL);
388 end:
389 sc->called = 0;
390 if (error)
391 ifp->if_oerrors++;
392 return (error);
393}
394
395static int

--- 361 unchanged lines hidden ---
388 end:
389 sc->called = 0;
390 if (error)
391 ifp->if_oerrors++;
392 return (error);
393}
394
395static int

--- 361 unchanged lines hidden ---