projects
/
l2tpns.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Set hostname /after/ having read the config file.
[l2tpns.git]
/
l2tpns.h
diff --git
a/l2tpns.h
b/l2tpns.h
index
4f7fad9
..
f226380
100644
(file)
--- a/
l2tpns.h
+++ b/
l2tpns.h
@@
-234,7
+234,7
@@
struct cli_tunnel_actions {
typedef struct // route
{
in_addr_t ip;
typedef struct // route
{
in_addr_t ip;
- in
_addr_t mask
;
+ in
t prefixlen
;
}
routet;
}
routet;
@@
-617,6
+617,10
@@
struct Tstats
#define SET_STAT(x, y)
#endif
#define SET_STAT(x, y)
#endif
+#ifndef IFNAMSIZ
+# define IFNAMSIZ 16
+#endif
+
typedef struct
{
int debug; // debugging level
typedef struct
{
int debug; // debugging level
@@
-632,7
+636,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
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[
10];
// tun device name
+ char tundevice[
IFNAMSIZ];
// tun device name
char log_filename[128];
char l2tp_secret[64]; // L2TP shared secret
char log_filename[128];
char l2tp_secret[64]; // L2TP shared secret
@@
-903,7
+907,8
@@
void become_master(void); // We're the master; kick off any required master init
// cli.c
// cli.c
-void init_cli(char *hostname);
+void init_cli();
+void cli_init_hostname(char *hostname);
void cli_do_file(FILE *fh);
void cli_do(int sockfd);
int cli_arg_help(struct cli_def *cli, int cr_ok, char *entry, ...);
void cli_do_file(FILE *fh);
void cli_do(int sockfd);
int cli_arg_help(struct cli_def *cli, int cr_ok, char *entry, ...);
@@
-941,6
+946,7
@@
struct event_data {
FD_TYPE_DAE,
FD_TYPE_RADIUS,
FD_TYPE_BGP,
FD_TYPE_DAE,
FD_TYPE_RADIUS,
FD_TYPE_BGP,
+ FD_TYPE_NETLINK,
} type;
int index; // for RADIUS, BGP
};
} type;
int index; // for RADIUS, BGP
};