Deleted Added
full compact
if_gre.h (125020) if_gre.h (125024)
1/* $NetBSD: if_gre.h,v 1.13 2003/11/10 08:51:52 wiz Exp $ */
1/* $NetBSD: if_gre.h,v 1.13 2003/11/10 08:51:52 wiz Exp $ */
2/* $FreeBSD: head/sys/net/if_gre.h 125020 2004-01-26 12:21:59Z sobomax $ */
2/* $FreeBSD: head/sys/net/if_gre.h 125024 2004-01-26 12:33:56Z 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 *

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

39
40#ifndef _NET_IF_GRE_H
41#define _NET_IF_GRE_H
42
43#include <sys/ioccom.h>
44#ifdef _KERNEL
45#include <sys/queue.h>
46
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 *

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

39
40#ifndef _NET_IF_GRE_H
41#define _NET_IF_GRE_H
42
43#include <sys/ioccom.h>
44#ifdef _KERNEL
45#include <sys/queue.h>
46
47/*
48 * Version of the WCCP, need to be configured manually since
49 * header for version 2 is the same but IP payload is prepended
50 * with additional 4-bytes field.
51 */
52typedef enum {
53 WCCP_V1 = 0,
54 WCCP_V2
55} wccp_ver_t;
56
47struct gre_softc {
48 struct ifnet sc_if;
49 LIST_ENTRY(gre_softc) sc_list;
50 int gre_unit;
51 int gre_flags;
52 struct in_addr g_src; /* source address of gre packets */
53 struct in_addr g_dst; /* destination address of gre packets */
54 struct route route; /* routing entry that determines, where a
55 encapsulated packet should go */
56 u_char g_proto; /* protocol of encapsulator */
57
58 const struct encaptab *encap; /* encapsulation cookie */
59
60 int called; /* infinite recursion preventer */
57struct gre_softc {
58 struct ifnet sc_if;
59 LIST_ENTRY(gre_softc) sc_list;
60 int gre_unit;
61 int gre_flags;
62 struct in_addr g_src; /* source address of gre packets */
63 struct in_addr g_dst; /* destination address of gre packets */
64 struct route route; /* routing entry that determines, where a
65 encapsulated packet should go */
66 u_char g_proto; /* protocol of encapsulator */
67
68 const struct encaptab *encap; /* encapsulation cookie */
69
70 int called; /* infinite recursion preventer */
71
72 wccp_ver_t wccp_ver; /* version of the WCCP */
61};
62
63
64struct gre_h {
65 u_int16_t flags; /* GRE flags */
66 u_int16_t ptype; /* protocol type of payload typically
67 Ether protocol type*/
68/*

--- 104 unchanged lines hidden ---
73};
74
75
76struct gre_h {
77 u_int16_t flags; /* GRE flags */
78 u_int16_t ptype; /* protocol type of payload typically
79 Ether protocol type*/
80/*

--- 104 unchanged lines hidden ---