VirtualBox

source: vbox/trunk/src/VBox/Devices/Network/slirp/if.h@ 28520

Last change on this file since 28520 was 28449, checked in by vboxsync, 15 years ago

NAT: slirp file headers

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.2 KB
Line 
1/* $Id: if.h 28449 2010-04-19 09:52:59Z vboxsync $ */
2/** @file
3 * NAT - if_*.
4 */
5
6/*
7 * Copyright (C) 2006-2010 Sun Microsystems, Inc.
8 *
9 * This file is part of VirtualBox Open Source Edition (OSE), as
10 * available from http://www.virtualbox.org. This file is free software;
11 * you can redistribute it and/or modify it under the terms of the GNU
12 * General Public License (GPL) as published by the Free Software
13 * Foundation, in version 2 as it comes in the "COPYING" file of the
14 * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
15 * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
16 *
17 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
18 * Clara, CA 95054 USA or visit http://www.sun.com if you need
19 * additional information or have any questions.
20 */
21
22/*
23 * This code is based on:
24 *
25 * Copyright (c) 1995 Danny Gasparovski.
26 *
27 * Please read the file COPYRIGHT for the
28 * terms and conditions of the copyright.
29 */
30
31#ifndef _IF_H_
32#define _IF_H_
33
34#define IF_COMPRESS 0x01 /* We want compression */
35#define IF_NOCOMPRESS 0x02 /* Do not do compression */
36#define IF_AUTOCOMP 0x04 /* Autodetect (default) */
37#define IF_NOCIDCOMP 0x08 /* CID compression */
38
39/* Needed for FreeBSD */
40#undef if_mtu
41extern int if_mtu;
42extern int if_mru; /* MTU and MRU */
43extern int if_comp; /* Flags for compression */
44extern int if_maxlinkhdr;
45extern int if_queued; /* Number of packets queued so far */
46extern int if_thresh; /* Number of packets queued before we start sending
47 * (to prevent allocing too many mbufs) */
48
49extern struct mbuf if_fastq; /* fast queue (for interactive data) */
50extern struct mbuf if_batchq; /* queue for non-interactive data */
51extern struct mbuf *next_m;
52
53#define ifs_init(ifm) ((ifm)->ifs_next = (ifm)->ifs_prev = (ifm))
54
55#ifdef ETH_P_ARP
56# undef ETH_P_ARP
57#endif /* ETH_P_ARP*/
58#define ETH_P_ARP 0x0806 /* Address Resolution packet */
59
60#ifdef ETH_P_IP
61# undef ETH_P_IP
62#endif /* ETH_P_IP */
63#define ETH_P_IP 0x0800 /* Internet Protocol packet */
64
65#ifdef ETH_P_IPV6
66# undef ETH_P_IPV6
67#endif /* ETH_P_IPV6 */
68#define ETH_P_IPV6 0x86DD /* IPv6 */
69
70#endif
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