Introduction
Introduction Statistics Contact Development Disclaimer Help
add $SERVER variable - sdhcp - simple dhcp client
git clone git://git.codemadness.org/sdhcp
Log
Files
Refs
LICENSE
---
commit 9261d14454972ced5ae7b014b50b0f12eaad8de0
parent 466314b9bd85e738d917df0298576e28c33eaec7
Author: Hiltjo Posthuma <[email protected]>
Date: Sat, 26 Apr 2014 00:22:19 +0200
add $SERVER variable
Signed-off-by: Hiltjo Posthuma <[email protected]>
Diffstat:
M sdhcp.c | 2 ++
1 file changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/sdhcp.c b/sdhcp.c
@@ -321,6 +321,8 @@ acceptlease(void)
if(dflag == 1)
setdns(dns);
if(*program) {
+ snprintf(buf, sizeof(buf), "%d.%d.%d.%d", server[0], server[1]…
+ setenv("SERVER", buf, 1);
snprintf(buf, sizeof(buf), "%d.%d.%d.%d", client[0], client[1]…
setenv("CLIENT", buf, 1);
snprintf(buf, sizeof(buf), "%d.%d.%d.%d", mask[0], mask[1], ma…
You are viewing proxied material from codemadness.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.