diff options
author | Christian Pointner <equinox@anytun.org> | 2008-12-28 21:27:35 +0000 |
---|---|---|
committer | Christian Pointner <equinox@anytun.org> | 2008-12-28 21:27:35 +0000 |
commit | f8b361e5bcea212fd0635df1b199b2016b14f508 (patch) | |
tree | 18e86ea8873518e3e3172fa4a7dd10dcbec57359 /src/linux/tun.c | |
parent | added forgotten set functions to packets (diff) |
some cleanup
Diffstat (limited to 'src/linux/tun.c')
-rw-r--r-- | src/linux/tun.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/linux/tun.c b/src/linux/tun.c index 66485fb..b24f48b 100644 --- a/src/linux/tun.c +++ b/src/linux/tun.c @@ -54,10 +54,12 @@ void tun_init(tun_device_t** dev, const char* dev_name, const char* dev_type, const char* ifcfg_lp, const char* ifcfg_rnmp) { - if(!dev) return; + if(!dev) + return; *dev = malloc(sizeof(tun_device_t)); - if(!*dev) return; + if(!*dev) + return; tun_conf(*dev, dev_name, dev_type, ifcfg_lp, ifcfg_rnmp, 1400); |