VirtualBox

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

最後變更 在這個檔案從13610是 1076,由 vboxsync 提交於 18 年 前

Removed tons of ifdef VBOX conditionals to make slirp readable again

  • 屬性 svn:eol-style 設為 native
檔案大小: 609 位元組
 
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);
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

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