projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
reload /etc/resolv.conf in SIGALRM handler
[tinc]
/
src
/
net_setup.c
diff --git
a/src/net_setup.c
b/src/net_setup.c
index
8c04d00
..
eec1711
100644
(file)
--- a/
src/net_setup.c
+++ b/
src/net_setup.c
@@
-728,6
+728,9
@@
static bool add_listen_address(char *address, bool bindto) {
}
void device_enable(void) {
}
void device_enable(void) {
+ if (devops.enable)
+ devops.enable();
+
/* Run tinc-up script to further initialize the tap interface */
char *envp[5] = {NULL};
/* Run tinc-up script to further initialize the tap interface */
char *envp[5] = {NULL};
@@
-753,6
+756,9
@@
void device_disable(void) {
for(int i = 0; i < 4; i++)
free(envp[i]);
for(int i = 0; i < 4; i++)
free(envp[i]);
+
+ if (devops.disable)
+ devops.disable();
}
/*
}
/*