2008-06-26 16:07:48 +00:00
|
|
|
/*
|
|
|
|
* veth.h: Interface to tools for managing veth pairs
|
|
|
|
*
|
|
|
|
* Copyright IBM Corp. 2008
|
|
|
|
*
|
|
|
|
* See COPYING.LIB for the License of this software
|
|
|
|
*
|
|
|
|
* Authors:
|
|
|
|
* David L. Leskovec <dlesko at linux.vnet.ibm.com>
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef VETH_H
|
|
|
|
#define VETH_H
|
|
|
|
|
|
|
|
#include <config.h>
|
|
|
|
|
|
|
|
/* Function declarations */
|
|
|
|
int vethCreate(char* veth1, int veth1MaxLen, char* veth2,
|
|
|
|
int veth2MaxLen);
|
|
|
|
int vethDelete(const char* veth);
|
|
|
|
int vethInterfaceUpOrDown(const char* veth, int upOrDown);
|
2009-07-22 17:18:19 +00:00
|
|
|
int moveInterfaceToNetNs(const char *iface, int pidInNs);
|
2008-06-26 16:07:48 +00:00
|
|
|
|
|
|
|
#endif /* VETH_H */
|