diff options
author | Antonio Quartulli | 2018-12-19 15:01:12 +1000 |
---|---|---|
committer | Gert Doering | 2019-05-15 21:12:31 +0200 |
commit | 678111936ffb33992684dd3b96dc5b21693dfa58 (patch) | |
tree | 667c8c0e964693ad1cb953d74d94dc983f2433ba /src/openvpn/networking_iproute2.h | |
parent | 3d26593736982852fcf277b541da38b4c3cc7fc8 (diff) | |
download | openvpn-678111936ffb33992684dd3b96dc5b21693dfa58.zip openvpn-678111936ffb33992684dd3b96dc5b21693dfa58.tar.gz |
implement networking API for iproute2
iproute2 is the first user of the new networking API and
its one of the two currently supported functionalities on
Linux (the other being net-tools).
This patch simply copies the current code from tun.c/route.c
to networking_iproute2.c without introducing any funcional
change to the code.
Signed-off-by: Antonio Quartulli <a@unstable.cc>
Acked-by: Arne Schwabe <arne@rfc2549.org>
Message-Id: <20181219050118.6568-2-a@unstable.cc>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg18031.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
Diffstat (limited to 'src/openvpn/networking_iproute2.h')
-rw-r--r-- | src/openvpn/networking_iproute2.h | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/src/openvpn/networking_iproute2.h b/src/openvpn/networking_iproute2.h new file mode 100644 index 0000000..47b50a9 --- /dev/null +++ b/src/openvpn/networking_iproute2.h @@ -0,0 +1,36 @@ +/* + * Generic interface to platform specific networking code + * + * Copyright (C) 2016-2018 Antonio Quartulli <a@unstable.cc> + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 + * as published by the Free Software Foundation. + * + * 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 (see the file COPYING included with this + * distribution); if not, write to the Free Software Foundation, Inc., + * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + + +#ifndef NETWORKING_IP_H_ +#define NETWORKING_IP_H_ + +#include "env_set.h" + +typedef char openvpn_net_iface_t; + +struct openvpn_net_ctx +{ + struct env_set *es; +}; + +typedef struct openvpn_net_ctx openvpn_net_ctx_t; + +#endif /* NETWORKING_IP_H_ */ |