Watt-32 tcp/ip  2.2 dev-rel.10
sock_ini.h
Go to the documentation of this file.
1 
3 #ifndef _w32_SOCK_INI_H
4 #define _w32_SOCK_INI_H
5 
6 enum eth_init_result { /* pass to sock_init_err() */
7  WERR_NO_ERROR,
8  WERR_ILL_DOSX, /* Watcom/HighC: illegal DOS-extender */
9  WERR_NO_MEM, /* All: No memory for misc. buffers */
10  WERR_NO_DRIVER, /* All: No network driver found (PKTDRVR/WinPcap) */
11  WERR_PKT_ERROR, /* All: General error in PKTDRVR/WinPcap interface */
12  WERR_BOOTP_FAIL, /* All: BOOTP protocol failed */
13  WERR_DHCP_FAIL, /* All: DHCP protocol failed */
14  WERR_RARP_FAIL, /* All: RARP protocol failed */
15  WERR_NO_IPADDR, /* All: Failed to find an IP-address */
16  WERR_PPPOE_DISC /* All: PPPoE discovery failed (timeout) */
17  };
18 
19 #define _bootp_on W32_NAMESPACE (_bootp_on)
20 #define _dhcp_on W32_NAMESPACE (_dhcp_on)
21 #define _dhcp6_on W32_NAMESPACE (_dhcp6_on)
22 #define _rarp_on W32_NAMESPACE (_rarp_on)
23 #define _do_mask_req W32_NAMESPACE (_do_mask_req)
24 
25 #define survive_eth W32_NAMESPACE (survive_eth)
26 #define survive_bootp W32_NAMESPACE (survive_bootp)
27 #define survive_dhcp W32_NAMESPACE (survive_dhcp)
28 #define survive_rarp W32_NAMESPACE (survive_rarp)
29 
30 extern int _bootp_on; /* boot-up through BOOTP and/or DHCP */
31 extern int _dhcp_on;
32 extern int _dhcp6_on;
33 extern int _rarp_on;
34 extern BOOL _do_mask_req;
35 extern BOOL _watt_do_exit;
36 extern BOOL _watt_is_init;
37 
38 extern BOOL survive_eth, survive_bootp;
39 extern BOOL survive_dhcp, survive_rarp;
40 
41 extern WattUserConfigFunc _watt_user_config_fn;
42 
43 #if !defined(sock_init) && defined(TEST_PROG)
44  #define sock_init() watt_sock_init (0, 0, sizeof(time_t))
45 #endif
46 
47 #if defined(SWIG)
48  #undef sock_init
49  static int sock_init (void)
50  {
51  return watt_sock_init (0, 0, sizeof(time_t));
52  }
53 #endif
54 
55 #endif
BOOL _watt_do_exit
exit program when all boot attempts failed
Definition: sock_ini.c:134
BOOL survive_dhcp
Survive a failed DHCP attempt.
Definition: sock_ini.c:151
BOOL survive_rarp
Don't survive a failed RARP attempt.
Definition: sock_ini.c:156
BOOL _do_mask_req
do an "ICMP Mask Request" when configured
Definition: sock_ini.c:133
BOOL survive_bootp
Survive a failed BOOTP attempt.
Definition: sock_ini.c:145
int W32_CALL watt_sock_init(size_t tcp_Sock_size, size_t udp_Sock_size, size_t time_t_size)
Definition: sock_ini.c:749
BOOL survive_eth
GvB 2002-09, allows us to survive without a (working) packet driver at all - in cases where life stil...
Definition: sock_ini.c:139
int _dhcp_on
Try booting using DHCP ?
Definition: sock_ini.c:130
BOOL _watt_is_init
watt_sock_init() done (but with possible failed boot)
Definition: sock_ini.c:157
int _rarp_on
Try booting using RARP ?
Definition: sock_ini.c:132
int _bootp_on
Try booting using BOOTP ?
Definition: sock_ini.c:129
int _dhcp6_on
Try booting using DHCP6 ?
Definition: sock_ini.c:131