File: vzctl_veth.h

package info (click to toggle)
vzctl 3.0.11-13
  • links: PTS
  • area: main
  • in suites: etch-m68k
  • size: 1,164 kB
  • ctags: 1,894
  • sloc: ansic: 14,655; sh: 2,744; makefile: 419
file content (40 lines) | stat: -rw-r--r-- 690 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/*
 *  include/linux/vzctl_veth.h
 *
 *  Copyright (C) 2006  SWsoft
 *  All rights reserved.
 *  
 *  Licensing governed by "linux/COPYING.SWsoft" file.
 *
 */

#ifndef _VZCTL_VETH_H
#define _VZCTL_VETH_H

#include <linux/types.h>
#include <linux/ioctl.h>

#ifndef __ENVID_T_DEFINED__
typedef unsigned envid_t;
#define __ENVID_T_DEFINED__
#endif

struct vzctl_ve_hwaddr {
	envid_t veid;
	int op;
#define VE_ETH_ADD	1
#define VE_ETH_DEL	2
	unsigned char	dev_addr[6];
	int addrlen;
	char		dev_name[16];
	unsigned char	dev_addr_ve[6];
	int addrlen_ve;
	char		dev_name_ve[16];
};

#define VETHCTLTYPE '['

#define VETHCTL_VE_HWADDR	_IOW(VETHCTLTYPE, 3,			\
					struct vzctl_ve_hwaddr)

#endif