ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/gvpe/src/netcompat.h
(Generate patch)

Comparing gvpe/src/netcompat.h (file contents):
Revision 1.1 by pcg, Tue Oct 14 19:12:26 2003 UTC vs.
Revision 1.6 by pcg, Fri Oct 17 01:33:37 2003 UTC

1/* 1/*
2 netcompat.h -- network compatibility header 2 netcompat.h -- network compatibility header
3 Copyright (C) 2003 Marc Lehmann <pcg@goof.com>
3 4
4 This program is free software; you can redistribute it and/or modify 5 This program is free software; you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by 6 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation; either version 2 of the License, or 7 the Free Software Foundation; either version 2 of the License, or
7 (at your option) any later version. 8 (at your option) any later version.
17*/ 18*/
18 19
19#ifndef VPE_NETCOMPAT_H 20#ifndef VPE_NETCOMPAT_H
20#define VPE_NETCOMPAT_H 21#define VPE_NETCOMPAT_H
21 22
22#include "config.h" 23#include <sys/types.h>
23
24#include <sys/socket.h> 24#include <sys/socket.h>
25#ifdef HAVE_NETINET_IN_H 25#ifdef HAVE_NETINET_IN_H
26# include <netinet/in.h> 26# include <netinet/in.h>
27#endif 27#endif
28#ifdef HAVE_ARPA_INET_H
28#include <arpa/inet.h> 29# include <arpa/inet.h>
30#endif
29#include <net/if.h> 31#include <net/if.h>
30#ifdef HAVE_NETINET_IN_SYSTM_H 32#ifdef HAVE_NETINET_IN_SYSTM_H
31# include <netinet/in_systm.h> 33# include <netinet/in_systm.h>
32#endif 34#endif
33#ifdef HAVE_NETINET_IP_H 35#ifdef HAVE_NETINET_IP_H
34# include <netinet/ip.h> 36# include <netinet/ip.h>
35#endif 37#endif
36 38
37#ifndef IPTOS_LOWCOST 39#ifndef IPTOS_MINCOST
38# define IPTOS_LOWCOST 0x02 40# define IPTOS_MINCOST 0x02
39#endif 41#endif
40#ifndef IPTOS_RELIABILITY 42#ifndef IPTOS_RELIABILITY
41# define IPTOS_RELIABILITY 0x04 43# define IPTOS_RELIABILITY 0x04
42#endif 44#endif
43#ifndef IPTOS_THROUGHPUT 45#ifndef IPTOS_THROUGHPUT
55# define SOL_IP IPPROTO_IP 57# define SOL_IP IPPROTO_IP
56#endif 58#endif
57 59
58#ifndef IPPROTO_GRE 60#ifndef IPPROTO_GRE
59# define IPPROTO_GRE 47 61# define IPPROTO_GRE 47
62#endif
63
64#ifndef ICMP_ECHOREPLY
65# define ICMP_ECHOREPLY 0
60#endif 66#endif
61 67
62#ifndef HAVE_SOCKLEN_T 68#ifndef HAVE_SOCKLEN_T
63typedef int socklen_t; 69typedef int socklen_t;
64#endif 70#endif

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines