On Sat, May 12, 2012 at 10:31 PM, Alon Bar-Lev <alon.bar...@gmail.com> wrote:
> Platform independent interface for tun provider.
>
> Split the long tun.c into platform specific files using
> tun_engine interface.
>
> There is more to be done in order to clean up the code,
> however this is a good starting point.
>
> Signed-off-by: Alon Bar-Lev <alon.bar...@gmail.com>
> ---
>  configure.ac                             |    6 +
>  src/openvpn/Makefile.am                  |   12 +
>  src/openvpn/error.c                      |    2 +-
>  src/openvpn/forward.c                    |   28 +-
>  src/openvpn/helper.c                     |    2 +-
>  src/openvpn/init.c                       |   41 +-
>  src/openvpn/multi.c                      |    2 +-
>  src/openvpn/options.c                    |   20 +-
>  src/openvpn/options.h                    |    5 +-
>  src/openvpn/route.c                      |    1 +
>  src/openvpn/sig.c                        |    4 +-
>  src/openvpn/syshead.h                    |   56 -
>  src/openvpn/tun-engine-common-bsd.c      |  103 +
>  src/openvpn/tun-engine-common-bsd.h      |   34 +
>  src/openvpn/tun-engine-common.c          |  518 +++
>  src/openvpn/tun-engine-common.h          |   85 +
>  src/openvpn/tun-engine-darwin.c          |  226 ++
>  src/openvpn/tun-engine-dragonfly.c       |  193 ++
>  src/openvpn/tun-engine-freebsd.c         |  229 ++
>  src/openvpn/tun-engine-generic.c         |   97 +
>  src/openvpn/tun-engine-linux-options.h   |   37 +
>  src/openvpn/tun-engine-linux.c           |  515 +++
>  src/openvpn/tun-engine-netbsd.c          |  318 ++
>  src/openvpn/tun-engine-openbsd.c         |  259 ++
>  src/openvpn/tun-engine-options.h         |   37 +
>  src/openvpn/tun-engine-solaris.c         |  491 +++
>  src/openvpn/tun-engine-windows-options.h |   92 +
>  src/openvpn/tun-engine-windows-util.h    |   83 +
>  src/openvpn/tun-engine-windows.c         | 2757 ++++++++++++++++
>  src/openvpn/tun-engine.h                 |   95 +
>  src/openvpn/tun.c                        | 5019 
> ++----------------------------
>  src/openvpn/tun.h                        |  457 +---
>  32 files changed, 6542 insertions(+), 5282 deletions(-)
>  create mode 100644 src/openvpn/tun-engine-common-bsd.c
>  create mode 100644 src/openvpn/tun-engine-common-bsd.h
>  create mode 100644 src/openvpn/tun-engine-common.c
>  create mode 100644 src/openvpn/tun-engine-common.h
>  create mode 100644 src/openvpn/tun-engine-darwin.c
>  create mode 100644 src/openvpn/tun-engine-dragonfly.c
>  create mode 100644 src/openvpn/tun-engine-freebsd.c
>  create mode 100644 src/openvpn/tun-engine-generic.c
>  create mode 100644 src/openvpn/tun-engine-linux-options.h
>  create mode 100644 src/openvpn/tun-engine-linux.c
>  create mode 100644 src/openvpn/tun-engine-netbsd.c
>  create mode 100644 src/openvpn/tun-engine-openbsd.c
>  create mode 100644 src/openvpn/tun-engine-options.h
>  create mode 100644 src/openvpn/tun-engine-solaris.c
>  create mode 100644 src/openvpn/tun-engine-windows-options.h
>  create mode 100644 src/openvpn/tun-engine-windows-util.h
>  create mode 100644 src/openvpn/tun-engine-windows.c
>  create mode 100644 src/openvpn/tun-engine.h
>

Too large for mailing list.
Please review at[1][2].

Alon.

[1] 
https://github.com/alonbl/openvpn/commit/c0c64bfa5369fb4abe7045a995fae2d33a34570f
[2] 
https://github.com/alonbl/openvpn/commit/c0c64bfa5369fb4abe7045a995fae2d33a34570f.patch

Reply via email to