VirtualBox

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

Last change on this file since 14271 was 1076, checked in by vboxsync, 18 years ago

Removed tons of ifdef VBOX conditionals to make slirp readable again

  • Property svn:eol-style set to native
File size: 609 bytes
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
14
15/*
16 * Get the difference in 2 times from updtim()
17 * Allow for wraparound times, "just in case"
18 * x is the greater of the 2 (current time) and y is
19 * what it's being compared against.
20 */
21#define TIME_DIFF(x,y) (x)-(y) < 0 ? ~0-(y)+(x) : (x)-(y)
22
23
24#define PROTO_SLIP 0x1
25#ifdef USE_PPP
26#define PROTO_PPP 0x2
27#endif
28
29void if_encap(PNATState pData, const uint8_t *ip_data, int ip_data_len);
Note: See TracBrowser for help on using the repository browser.

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