aboutsummaryrefslogtreecommitdiffstats
path: root/net-mgmt
diff options
context:
space:
mode:
authorasami <asami@FreeBSD.org>1996-07-06 11:24:22 +0800
committerasami <asami@FreeBSD.org>1996-07-06 11:24:22 +0800
commit404b25f4f8474265f3001c5a41d096bdd3098cb6 (patch)
treed6a91a447130f13db56d99da81aeae595091ff9d /net-mgmt
parent85cbd418207af54ba777f326cc214ddbdea56425 (diff)
downloadfreebsd-ports-gnome-404b25f4f8474265f3001c5a41d096bdd3098cb6.tar.gz
freebsd-ports-gnome-404b25f4f8474265f3001c5a41d096bdd3098cb6.tar.zst
freebsd-ports-gnome-404b25f4f8474265f3001c5a41d096bdd3098cb6.zip
Make this thing work with Microsoft network.
Submitted by: MIHIRA Yoshiro <sanpei@yy.cs.keio.ac.jp>
Diffstat (limited to 'net-mgmt')
-rw-r--r--net-mgmt/wide-dhcp/files/patch-ac15
1 files changed, 13 insertions, 2 deletions
diff --git a/net-mgmt/wide-dhcp/files/patch-ac b/net-mgmt/wide-dhcp/files/patch-ac
index 198574153364..bb16bd0cc59a 100644
--- a/net-mgmt/wide-dhcp/files/patch-ac
+++ b/net-mgmt/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