aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/ip/dhcpd
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmd/ip/dhcpd')
-rw-r--r--[-rwxr-xr-x]src/cmd/ip/dhcpd/dat.h1
-rw-r--r--[-rwxr-xr-x]src/cmd/ip/dhcpd/db.c4
-rw-r--r--[-rwxr-xr-x]src/cmd/ip/dhcpd/dhcpd.c8
-rw-r--r--[-rwxr-xr-x]src/cmd/ip/dhcpd/dhcpleases.c2
-rw-r--r--[-rwxr-xr-x]src/cmd/ip/dhcpd/ndb.c2
-rw-r--r--[-rwxr-xr-x]src/cmd/ip/dhcpd/ping.c0
-rw-r--r--[-rwxr-xr-x]src/cmd/ip/dhcpd/testlook.c2
-rw-r--r--[-rwxr-xr-x]src/cmd/ip/dhcpd/testlookup.c0
-rw-r--r--[-rwxr-xr-x]src/cmd/ip/dhcpd/testping.c0
9 files changed, 9 insertions, 10 deletions
diff --git a/src/cmd/ip/dhcpd/dat.h b/src/cmd/ip/dhcpd/dat.h
index aa64deeb..c69f9f38 100755..100644
--- a/src/cmd/ip/dhcpd/dat.h
+++ b/src/cmd/ip/dhcpd/dat.h
@@ -82,4 +82,3 @@ extern char *blog;
extern Ipifc *ipifcs;
extern long now;
extern char *ndbfile;
-
diff --git a/src/cmd/ip/dhcpd/db.c b/src/cmd/ip/dhcpd/db.c
index f4b48552..cf245efe 100755..100644
--- a/src/cmd/ip/dhcpd/db.c
+++ b/src/cmd/ip/dhcpd/db.c
@@ -405,7 +405,7 @@ commitbinding(Binding *b)
}
setbinding(b, b->offeredto, now + b->offer);
b->lasttouched = now;
-
+
if(writebinding(fd, b) < 0){
close(fd);
return -1;
@@ -434,7 +434,7 @@ releasebinding(Binding *b, char *id)
}
b->lease = 0;
b->expoffer = 0;
-
+
if(writebinding(fd, b) < 0){
close(fd);
return -1;
diff --git a/src/cmd/ip/dhcpd/dhcpd.c b/src/cmd/ip/dhcpd/dhcpd.c
index e28bf3cb..c5fb06bf 100755..100644
--- a/src/cmd/ip/dhcpd/dhcpd.c
+++ b/src/cmd/ip/dhcpd/dhcpd.c
@@ -67,7 +67,7 @@ int pptponly; /* only answer request that came from the pptp server */
int mute;
int minlease = MinLease;
-ulong start;
+ulong start;
/* option magic */
char plan9opt[4] = { 'p', '9', ' ', ' ' };
@@ -502,7 +502,7 @@ rcvrequest(Req *rp)
sendnak(rp, "no offer for you");
return;
}
-
+
/* if not for me, retract offer */
if(!forme(rp->server)){
b->expoffer = 0;
@@ -1040,7 +1040,7 @@ parseoptions(Req *rp)
p += n;
if(p > rp->e)
return;
-
+
switch(code){
case ODipaddr: /* requested ip address */
if(n == IPv4addrlen)
@@ -1506,7 +1506,7 @@ arpenter(uchar *ip, uchar *ether)
{
int pid;
char xip[100], xether[100];
-
+
switch(pid=fork()){
case -1:
break;
diff --git a/src/cmd/ip/dhcpd/dhcpleases.c b/src/cmd/ip/dhcpd/dhcpleases.c
index 71719649..a99b9218 100755..100644
--- a/src/cmd/ip/dhcpd/dhcpleases.c
+++ b/src/cmd/ip/dhcpd/dhcpleases.c
@@ -39,5 +39,5 @@ main(void)
continue;
if(b.lease > now)
print("%I leased by %s until %s", b.ip, b.boundto, ctime(b.lease));
- }
+ }
}
diff --git a/src/cmd/ip/dhcpd/ndb.c b/src/cmd/ip/dhcpd/ndb.c
index 53ffb58f..97b2284f 100755..100644
--- a/src/cmd/ip/dhcpd/ndb.c
+++ b/src/cmd/ip/dhcpd/ndb.c
@@ -108,7 +108,7 @@ lookupip(uchar *ipaddr, Info *iip, int gate)
t = ndbipinfo(db, "ip", ip, attrs, p - attrs);
if(t == nil)
return -1;
-
+
for(nt = t; nt != nil; nt = nt->entry){
if(strcmp(nt->attr, "ip") == 0)
setipaddr(iip->ipaddr, nt->val);
diff --git a/src/cmd/ip/dhcpd/ping.c b/src/cmd/ip/dhcpd/ping.c
index 666bcc41..666bcc41 100755..100644
--- a/src/cmd/ip/dhcpd/ping.c
+++ b/src/cmd/ip/dhcpd/ping.c
diff --git a/src/cmd/ip/dhcpd/testlook.c b/src/cmd/ip/dhcpd/testlook.c
index 4937e55b..ac3f44f8 100755..100644
--- a/src/cmd/ip/dhcpd/testlook.c
+++ b/src/cmd/ip/dhcpd/testlook.c
@@ -188,7 +188,7 @@ ipinfo(Ndb *db, char *etherin, char *ipin, char *name, Ipinfo *iip)
recursesubnet(db, classmask[CLASS(iip->ipaddr)], iip, fsname, gwname, auname);
/* lookup fs's and gw's ip addresses */
-
+
if(fsname[0])
lookupip(db, fsname, iip->fsip, iip);
if(gwname[0])
diff --git a/src/cmd/ip/dhcpd/testlookup.c b/src/cmd/ip/dhcpd/testlookup.c
index c69624c5..c69624c5 100755..100644
--- a/src/cmd/ip/dhcpd/testlookup.c
+++ b/src/cmd/ip/dhcpd/testlookup.c
diff --git a/src/cmd/ip/dhcpd/testping.c b/src/cmd/ip/dhcpd/testping.c
index b5ca90c5..b5ca90c5 100755..100644
--- a/src/cmd/ip/dhcpd/testping.c
+++ b/src/cmd/ip/dhcpd/testping.c