1/* $NetBSD: if_gre.h,v 1.13 2003/11/10 08:51:52 wiz Exp $ */ 2/* $FreeBSD: head/sys/net/if_gre.h 123992 2003-12-30 11:41:43Z 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 * --- 100 unchanged lines hidden (view full) --- 111 */ 112#define WCCP_PROTOCOL_TYPE 0x883E 113 114/* 115 * gre_sre defines a Source route Entry. These are needed if packets 116 * should be routed over more than one tunnel hop by hop 117 */ 118struct gre_sre { |
119 u_int16_t sre_family; /* address family */ |
120 u_char sre_offset; /* offset to first octet of active entry */ 121 u_char sre_length; /* number of octets in the SRE. 122 sre_lengthl==0 -> last entry. */ 123 u_char *sre_rtinfo; /* the routing information */ 124}; 125 126struct greioctl { 127 int unit; --- 33 unchanged lines hidden (view full) --- 161#define GREGADDRD _IOWR('i', 104, struct ifreq) 162#define GRESPROTO _IOW('i' , 105, struct ifreq) 163#define GREGPROTO _IOWR('i', 106, struct ifreq) 164 165#ifdef _KERNEL 166LIST_HEAD(gre_softc_head, gre_softc); 167extern struct gre_softc_head gre_softc_list; 168 |
169u_int16_t gre_in_cksum(u_int16_t *, u_int); |
170#endif /* _KERNEL */ 171 172#endif |