VirtualBox

source: vbox/trunk/src/VBox/Devices/Network/slirp/main.h@ 1

Last change on this file since 1 was 1, checked in by vboxsync, 55 years ago

import

  • Property svn:eol-style set to native
File size: 1.3 KB
Line 
1/*
2 * Copyright (c) 1995 Danny Gasparovski.
3 *
4 * Please read the file COPYRIGHT for the
5 * terms and conditions of the copyright.
6 */
7
8#ifdef HAVE_SYS_SELECT_H
9#include <sys/select.h>
10#endif
11
12#define TOWRITEMAX 512
13
14extern struct timeval tt;
15extern int link_up;
16extern int slirp_socket;
17extern int slirp_socket_unit;
18extern int slirp_socket_port;
19extern u_int32_t slirp_socket_addr;
20extern char *slirp_socket_passwd;
21extern int ctty_closed;
22
23/*
24 * Get the difference in 2 times from updtim()
25 * Allow for wraparound times, "just in case"
26 * x is the greater of the 2 (current time) and y is
27 * what it's being compared against.
28 */
29#define TIME_DIFF(x,y) (x)-(y) < 0 ? ~0-(y)+(x) : (x)-(y)
30
31extern char *slirp_tty;
32extern char *exec_shell;
33extern u_int curtime;
34extern fd_set *global_readfds, *global_writefds, *global_xfds;
35extern struct in_addr ctl_addr;
36extern struct in_addr special_addr;
37extern struct in_addr alias_addr;
38extern struct in_addr our_addr;
39extern struct in_addr loopback_addr;
40extern struct in_addr dns_addr;
41extern char *username;
42extern char *socket_path;
43extern int towrite_max;
44extern int ppp_exit;
45extern int so_options;
46extern int tcp_keepintvl;
47extern uint8_t client_ethaddr[6];
48
49#define PROTO_SLIP 0x1
50#ifdef USE_PPP
51#define PROTO_PPP 0x2
52#endif
53
54void if_encap(const uint8_t *ip_data, int ip_data_len);
Note: See TracBrowser for help on using the repository browser.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette