~ubuntu-branches/ubuntu/feisty/basilisk2/feisty

« back to all changes in this revision

Viewing changes to src/slirp/slirp.h

  • Committer: Bazaar Package Importer
  • Author(s): Jonas Smedegaard
  • Date: 2006-06-01 01:11:16 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20060601011116-xjhegbgyfsxag5fl
Tags: 0.9.20060529-1
* New upstream CVS snapshot.
* Update local cdbs snippet copyright-check.mk:
  + Broaden scan to also look for "(c)" by default.
  + Make egrep options configurable.
  + Ignore auto-tools files.
* Bump up standards-version to 3.7.2 (no changes needed).
* Let dh_strip do the stripping (not the make install target).

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
typedef uint32_t u_int32_t;
20
20
typedef uint64_t u_int64_t;
21
21
typedef char *caddr_t;
 
22
typedef int socklen_t;
 
23
typedef unsigned long ioctlsockopt_t;
22
24
 
23
25
# include <windows.h>
24
26
# include <winsock2.h>
25
27
# include <sys/timeb.h>
26
28
# include <iphlpapi.h>
27
29
 
 
30
# define USE_FIONBIO 1
28
31
# define EWOULDBLOCK WSAEWOULDBLOCK
29
32
# define EINPROGRESS WSAEINPROGRESS
30
33
# define ENOTCONN WSAENOTCONN
31
34
# define EHOSTUNREACH WSAEHOSTUNREACH
32
35
# define ENETUNREACH WSAENETUNREACH
33
36
# define ECONNREFUSED WSAECONNREFUSED
 
37
 
 
38
/* Basilisk II Router defines those */
 
39
# define udp_read_completion slirp_udp_read_completion
 
40
# define write_udp slirp_write_udp
 
41
# define init_udp slirp_init_udp
 
42
# define final_udp slirp_final_udp
34
43
#else
 
44
typedef int ioctlsockopt_t;
35
45
# define ioctlsocket ioctl
36
46
# define closesocket(s) close(s)
37
47
# define O_BINARY 0
38
48
#endif
39
49
 
40
 
#ifdef HAVE_STDINT_H
41
 
# include <stdint.h>
42
 
#endif
43
 
 
44
50
#include <sys/types.h>
45
51
#ifdef HAVE_SYS_BITYPES_H
46
52
# include <sys/bitypes.h>
47
53
#endif
 
54
#ifdef HAVE_STDINT_H
 
55
# include <stdint.h>
 
56
#endif
48
57
 
49
58
#include <sys/time.h>
50
59
 
77
86
# endif
78
87
#endif /* NEED_TYPEDEFS */
79
88
 
 
89
/* Basilisk II types glue */
 
90
typedef u_int8_t uint8;
 
91
typedef u_int16_t uint16;
 
92
typedef u_int32_t uint32;
 
93
 
80
94
#ifdef HAVE_UNISTD_H
81
95
# include <unistd.h>
82
96
#endif
196
210
 
197
211
#include "debug.h"
198
212
 
 
213
#if defined __GNUC__
 
214
#define PACKED__ __attribute__ ((packed))
 
215
#elif defined __sgi
 
216
#define PRAGMA_PACK_SUPPORTED 1
 
217
#define PACKED__
 
218
#else
 
219
#error "Packed attribute or pragma shall be supported"
 
220
#endif
 
221
 
199
222
#include "ip.h"
200
223
#include "tcp.h"
201
224
#include "tcp_timer.h"