Files
xen/tools/vnet/vnet-module/if_etherip.h
T
cl349@firebug.cl.cam.ac.uk eec8a20f38 Vnet update.
Fix the tools/vnet makefiles so that vnets will compile
and includes updates to the vnet implementation.
Vnet ids are increased to 128 bits. The vnet module will
insmod whether xen-br0 exists or not.
Signed-off-by: Mike Wray <mike.wray@hp.com>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-08-26 10:52:53 +00:00

66 lines
1.6 KiB
C

/*
* Copyright (C) 2004 Mike Wray <mike.wray@hp.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by the
* Free Software Foundation; either version 2 of the License, or (at your
* option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free software Foundation, Inc.,
* 59 Temple Place, suite 330, Boston, MA 02111-1307 USA
*
*/
#ifndef _VNET_IF_ETHERIP_H_
#define _VNET_IF_ETHERIP_H_
#define CONFIG_ETHERIP_EXT
#ifdef CONFIG_ETHERIP_EXT
#define ETHERIP_VERSION 4
struct etheriphdr {
#if defined(__LITTLE_ENDIAN_BITFIELD)
__u16 reserved:12,
version:4;
#elif defined (__BIG_ENDIAN_BITFIELD)
__u16 version:4,
reserved:12;
#else
#error "Please fix <asm/byteorder.h>"
#endif
__u8 vnet[16];
} __attribute__ ((packed));
#else
#define ETHERIP_VERSION 3
struct etheriphdr
{
#if defined(__LITTLE_ENDIAN_BITFIELD)
__u16 reserved:12,
version:4;
#elif defined (__BIG_ENDIAN_BITFIELD)
__u16 version:4,
reserved:12;
#else
#error "Please fix <asm/byteorder.h>"
#endif
};
#endif
#ifndef IPPROTO_ETHERIP
#define IPPROTO_ETHERIP 97
#endif
#endif /* ! _VNET_IF_ETHERIP_H_ */