summaryrefslogtreecommitdiff
path: root/net/honeyd/files/patch-dhcpclient.c
diff options
context:
space:
mode:
authorPav Lucistnik <pav@FreeBSD.org>2005-04-18 07:38:15 +0000
committerPav Lucistnik <pav@FreeBSD.org>2005-04-18 07:38:15 +0000
commitd5d2b7649bbaa03192defdec55146a31ed918621 (patch)
tree138227b775593965a901458996485a1bbc46fa79 /net/honeyd/files/patch-dhcpclient.c
parentSoekris ist a i386-look-alike, so set ONLY_FOR_ARCHS accordingly (diff)
- Update to 1.0
PR: ports/79909 Submitted by: Vasil Dimov <vd@datamax.bg> Approved by: Yann Berthier <yb@bashibuzuk.net> (maintainer)
Notes
Notes: svn path=/head/; revision=133562
Diffstat (limited to 'net/honeyd/files/patch-dhcpclient.c')
-rw-r--r--net/honeyd/files/patch-dhcpclient.c33
1 files changed, 33 insertions, 0 deletions
diff --git a/net/honeyd/files/patch-dhcpclient.c b/net/honeyd/files/patch-dhcpclient.c
new file mode 100644
index 000000000000..95d38335a0cd
--- /dev/null
+++ b/net/honeyd/files/patch-dhcpclient.c
@@ -0,0 +1,33 @@
+--- dhcpclient.c.orig Thu Apr 14 16:07:26 2005
++++ dhcpclient.c Thu Apr 14 15:24:19 2005
+@@ -236,8 +236,8 @@
+ {
+ struct dhcpclient_req *req = tmpl->dhcp_req;
+ struct dhcp_msg *msg = (struct dhcp_msg *)buf;
+- size_t optlen = buflen - sizeof(*msg);
+- uint8_t *p, *end, opt1, opt1len, *opt1p;
++ size_t optlen = buflen - sizeof(*msg), opt1len;
++ uint8_t *p, *end, opt1, *opt1p;
+ short replyreq = 0, ack = 0, done = 0;
+ struct netconf nc;
+ struct addr *which = NULL, ipmask;
+@@ -472,7 +472,8 @@
+
+ memset(buf, 0, sizeof(buf));
+
+- eth = (struct eth_hdr *)p = buf;
++ p = buf;
++ eth = (struct eth_hdr *)p;
+ eth_pack_hdr(eth, ETH_ADDR_BROADCAST, req->ea, ETH_TYPE_IP);
+
+ restlen -= ETH_HDR_LEN;
+@@ -524,7 +525,8 @@
+
+ memset(buf, 0, sizeof(buf));
+
+- eth = (struct eth_hdr *)p = buf;
++ p = buf;
++ eth = (struct eth_hdr *)p;
+ eth_pack_hdr(eth, req->server_ea, req->ea, ETH_TYPE_IP);
+
+ restlen -= ETH_HDR_LEN;