summaryrefslogtreecommitdiff
path: root/net/wide-dhcp
diff options
context:
space:
mode:
authorSatoshi Asami <asami@FreeBSD.org>1996-07-06 03:24:22 +0000
committerSatoshi Asami <asami@FreeBSD.org>1996-07-06 03:24:22 +0000
commita72ba80bd0f27f39b89adf97efcdf7d0a84f19e8 (patch)
tree89dedb824d859fbca59502ee7e55cf30553a22e9 /net/wide-dhcp
parentradiusd - a authentication server (diff)
Make this thing work with Microsoft network.
Submitted by: MIHIRA Yoshiro <sanpei@yy.cs.keio.ac.jp>
Notes
Notes: svn path=/head/; revision=3311
Diffstat (limited to 'net/wide-dhcp')
-rw-r--r--net/wide-dhcp/files/patch-ac15
1 files changed, 13 insertions, 2 deletions
diff --git a/net/wide-dhcp/files/patch-ac b/net/wide-dhcp/files/patch-ac
index 198574153364..bb16bd0cc59a 100644
--- a/net/wide-dhcp/files/patch-ac
+++ b/net/wide-dhcp/files/patch-ac
@@ -1,5 +1,5 @@
---- client/dhcpc_subr.c.org Sat Jan 20 19:40:45 1996
-+++ client/dhcpc_subr.c Sat Jan 20 19:40:49 1996
+--- client/dhcpc_subr.c.org Sat Jul 6 11:00:50 1996
++++ client/dhcpc_subr.c Sat Jul 6 11:01:28 1996
@@ -273,7 +273,11 @@
tmp = 0;
bcopy(&tmp, sarp->arp_spa, sarp->arp_pln);
@@ -33,6 +33,17 @@
if (ioctl(dhcpif.fd, SIOCGIFADDR, &ifr) < 0) {
syslog(LOG_WARNING, "ioctl(SIOCGIFADDR) error in initialize(): %m");
return(-1);
+@@ -1535,8 +1543,8 @@
+ ((struct sockaddr_in *)&ridreq.ifr_addr)->sin_addr.s_addr;
+
+ if (current_addr.s_addr == addr->s_addr &&
+- current_mask.s_addr == mask->s_addr &&
+- current_brdcst.s_addr == brdcst->s_addr) {
++ (mask && current_mask.s_addr == mask->s_addr) &&
++ (brdcst && current_brdcst.s_addr == brdcst->s_addr)) {
+ close(sockfd);
+ return(1);
+ }
@@ -1660,7 +1668,7 @@
/*
* set routing table