Add tundevicename configuration option
[l2tpns.git] / l2tpns.h
index 8143736..ba9a56f 100644 (file)
--- a/l2tpns.h
+++ b/l2tpns.h
@@ -658,7 +658,7 @@ typedef struct
        int             reload_config;                  // flag to re-read config (set by cli)
        int             multi_read_count;               // amount of packets to read per fd in processing loop
 
-       char            tundevice[IFNAMSIZ];            // tun device name
+       char            tundevicename[IFNAMSIZ];                // tun device name
        char            log_filename[128];
 
        char            l2tp_secret[64];                // L2TP shared secret
@@ -761,10 +761,12 @@ typedef struct
        int echo_timeout; // Time between last packet sent and LCP ECHO generation
        int idle_echo_timeout; // Time between last packet seen and
                                                   // Drop sessions who have not responded within IDLE_ECHO_TIMEOUT seconds
+       in_addr_t iftun_address;
 #ifdef LAC
        int disable_lac_func;
        int highest_rlnsid;
        uint16_t bind_portremotelns;
+       in_addr_t bind_address_remotelns;
 #endif
 } configt;