/* * Quicktun tunnel driver - userspace interface * Copyright (C) 2011 Matthias Schiffer * * 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. */ #ifndef __QUICKTUN_H #define __QUICKTUN_H #define QUICKTUN_MODE_ETHERNET 0x0001 #define QUICKTUN_MODE_IP 0x0002 enum { QUICKTUN_CMD_UNSPEC, QUICKTUN_CMD_CREATE_DEVICE, QUICKTUN_CMD_CHANGE_DEVICE, QUICKTUN_CMD_DELETE_DEVICE, QUICKTUN_CMD_GET_DEVICE, __QUICKTUN_CMD_MAX }; enum { QUICKTUN_A_UNSPEC, QUICKTUN_A_TUNNEL_SPEC, QUICKTUN_A_IFNAME, QUICKTUN_A_MODE, QUICKTUN_A_LOCAL_ADDRESS, QUICKTUN_A_LOCAL_PORT, QUICKTUN_A_REMOTE_ADDRESS, QUICKTUN_A_REMOTE_PORT, QUICKTUN_A_REMOTE_FLOAT, __QUICKTUN_A_MAX }; #define QUICKTUN_CMD_MAX (__QUICKTUN_CMD_MAX - 1) #define QUICKTUN_A_MAX (__QUICKTUN_A_MAX - 1) #endif /* __QUICKTUN_H */