summaryrefslogtreecommitdiffstats
path: root/customdhcpcd/src/configure.c
diff options
context:
space:
mode:
authorNiklas2011-09-01 16:16:07 +0200
committerNiklas2011-09-01 16:16:07 +0200
commit8024e86b5ce80beb2870654cf29308a0f1f208b8 (patch)
tree90b31ed2d9197999c60c921fc35e0a3db4a70973 /customdhcpcd/src/configure.c
parenttried to clean the git. deleted old unused files and folders. moved customdhc... (diff)
downloadfbgui-8024e86b5ce80beb2870654cf29308a0f1f208b8.tar.gz
fbgui-8024e86b5ce80beb2870654cf29308a0f1f208b8.tar.xz
fbgui-8024e86b5ce80beb2870654cf29308a0f1f208b8.zip
bigger changes in the checkConnectivity method. using now route command to delete and add the default route. for this i am writing the gateways for every interface into a new file. located at /var/tmp/gateways_<interfaceName>
Diffstat (limited to 'customdhcpcd/src/configure.c')
-rw-r--r--customdhcpcd/src/configure.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/customdhcpcd/src/configure.c b/customdhcpcd/src/configure.c
index 91e3c9f..1eaf8f6 100644
--- a/customdhcpcd/src/configure.c
+++ b/customdhcpcd/src/configure.c
@@ -554,6 +554,8 @@ int configure (const options_t *options, interface_t *iface,
if (dhcp->address.s_addr == 0)
up = 0;
+ logGatewayToFile(iface, dhcp);
+
/* Remove old routes.
* Always do this as the interface may have >1 address not added by us
* so the routes we added may still exist. */