wok-6.x annotate busybox/stuff/busybox-1.12.0-iptunnel.u @ rev 5098

add xplc (wvdial new dep)
author Rohit Joshi <jozee@slitaz.org>
date Tue Mar 16 11:31:45 2010 +0000 (2010-03-16)
parents
children
rev   line source
pascal@3880 1 --- busybox-1.12.0/networking/libiproute/iptunnel.c
pascal@3880 2 +++ busybox-1.12.0/networking/libiproute/iptunnel.c
pascal@3880 3 @@ -21,7 +21,47 @@
pascal@3880 4 #ifndef __constant_htons
pascal@3880 5 #define __constant_htons htons
pascal@3880 6 #endif
pascal@3880 7 -#include <linux/if_tunnel.h>
pascal@3880 8 +// FYI: #define SIOCDEVPRIVATE 0x89F0
pascal@3880 9 +
pascal@3880 10 +/* From linux/if_tunnel.h. #including it proved troublesome
pascal@3880 11 + * (redefiniton errors due to name collisions in linux/ and net[inet]/) */
pascal@3880 12 +#define SIOCGETTUNNEL (SIOCDEVPRIVATE + 0)
pascal@3880 13 +#define SIOCADDTUNNEL (SIOCDEVPRIVATE + 1)
pascal@3880 14 +#define SIOCDELTUNNEL (SIOCDEVPRIVATE + 2)
pascal@3880 15 +#define SIOCCHGTUNNEL (SIOCDEVPRIVATE + 3)
pascal@3880 16 +//#define SIOCGETPRL (SIOCDEVPRIVATE + 4)
pascal@3880 17 +//#define SIOCADDPRL (SIOCDEVPRIVATE + 5)
pascal@3880 18 +//#define SIOCDELPRL (SIOCDEVPRIVATE + 6)
pascal@3880 19 +//#define SIOCCHGPRL (SIOCDEVPRIVATE + 7)
pascal@3880 20 +#define GRE_CSUM __constant_htons(0x8000)
pascal@3880 21 +//#define GRE_ROUTING __constant_htons(0x4000)
pascal@3880 22 +#define GRE_KEY __constant_htons(0x2000)
pascal@3880 23 +#define GRE_SEQ __constant_htons(0x1000)
pascal@3880 24 +//#define GRE_STRICT __constant_htons(0x0800)
pascal@3880 25 +//#define GRE_REC __constant_htons(0x0700)
pascal@3880 26 +//#define GRE_FLAGS __constant_htons(0x00F8)
pascal@3880 27 +//#define GRE_VERSION __constant_htons(0x0007)
pascal@3880 28 +struct ip_tunnel_parm {
pascal@3880 29 + char name[IFNAMSIZ];
pascal@3880 30 + int link;
pascal@3880 31 + uint16_t i_flags;
pascal@3880 32 + uint16_t o_flags;
pascal@3880 33 + uint32_t i_key;
pascal@3880 34 + uint32_t o_key;
pascal@3880 35 + struct iphdr iph;
pascal@3880 36 +};
pascal@3880 37 +/* SIT-mode i_flags */
pascal@3880 38 +//#define SIT_ISATAP 0x0001
pascal@3880 39 +//struct ip_tunnel_prl {
pascal@3880 40 +// uint32_t addr;
pascal@3880 41 +// uint16_t flags;
pascal@3880 42 +// uint16_t __reserved;
pascal@3880 43 +// uint32_t datalen;
pascal@3880 44 +// uint32_t __reserved2;
pascal@3880 45 +// /* data follows */
pascal@3880 46 +//};
pascal@3880 47 +///* PRL flags */
pascal@3880 48 +//#define PRL_DEFAULT 0x0001
pascal@3880 49
pascal@3880 50 #include "ip_common.h" /* #include "libbb.h" is inside */
pascal@3880 51 #include "rt_names.h"