if_gre.h (107670) | if_gre.h (123992) |
---|---|
1/* $NetBSD: if_gre.h,v 1.10 2002/02/24 17:22:20 martin Exp $ */ 2/* $FreeBSD: head/sys/net/if_gre.h 107670 2002-12-07 14:22:05Z sobomax $ */ | 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 { | 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; /* adress family */ | 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 | 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_short gre_in_cksum(u_short *p, u_int len); | 169u_int16_t gre_in_cksum(u_int16_t *, u_int); |
170#endif /* _KERNEL */ 171 172#endif | 170#endif /* _KERNEL */ 171 172#endif |