Displaying 12 results from an estimated 12 matches for "dhcp_send".
Did you mean:
dhcp_end
2010 Mar 16
4
ipconfig: DHCP fixes
Hi,
Here are two fixes for ipconfig/dhcp, the second of them being required for my
dhcp3 server to accept ipconfig's requests.
Thanks,
Louis
Louis Rilling (2):
ipconfig: Fix missing dhcp_end field
ipconfig: Fix null ciaddr on DHCPREQUEST during SELECTING state
usr/kinit/ipconfig/dhcp_proto.c | 4 ++--
usr/kinit/ipconfig/packet.c | 2 +-
2 files changed, 3
2012 May 22
0
[klibc:master] ipconfig: Append padding if DHCP packet length < 300 octets
...*/
diff --git a/usr/kinit/ipconfig/dhcp_proto.c b/usr/kinit/ipconfig/dhcp_proto.c
index 0c907e9..ebf79cc 100644
--- a/usr/kinit/ipconfig/dhcp_proto.c
+++ b/usr/kinit/ipconfig/dhcp_proto.c
@@ -50,7 +50,7 @@ static uint8_t dhcp_end[] = {
/* Both iovecs below have to have the same structure, since dhcp_send()
pokes at the internals */
-#define DHCP_IOV_LEN 7
+#define DHCP_IOV_LEN 8
static struct iovec dhcp_discover_iov[DHCP_IOV_LEN] = {
/* [0] = ip + udp header */
@@ -60,6 +60,7 @@ static struct iovec dhcp_discover_iov[DHCP_IOV_LEN] = {
/* [4] = optional vendor class */
/* [5] = optional...
2011 Jul 18
2
ipconfig:About the length of 'options' field of DHCP packet
...}
diff --git a/usr/kinit/ipconfig/dhcp_proto.c b/usr/kinit/ipconfig/dhcp_proto.c
index afd2eca..91dd695 100644
--- a/usr/kinit/ipconfig/dhcp_proto.c
+++ b/usr/kinit/ipconfig/dhcp_proto.c
@@ -49,7 +49,7 @@ static uint8_t dhcp_end[] = {
/* Both iovecs below have to have the same structure, since dhcp_send()
pokes at the internals */
-#define DHCP_IOV_LEN 7
+#define DHCP_IOV_LEN 8
static struct iovec dhcp_discover_iov[DHCP_IOV_LEN] = {
/* [0] = ip + udp header */
@@ -59,6 +59,7 @@ static struct iovec dhcp_discover_iov[DHCP_IOV_LEN] = {
/* [4] = optional vendor class */
/* [5] = optional...
2009 Apr 07
2
[PATCH] ipconfig: send hostname in DHCP request
...diff --git a/usr/kinit/ipconfig/dhcp_proto.c b/usr/kinit/ipconfig/dhcp_proto.c
index d4f2c09..775a5ca 100644
--- a/usr/kinit/ipconfig/dhcp_proto.c
+++ b/usr/kinit/ipconfig/dhcp_proto.c
@@ -49,24 +49,26 @@ static uint8_t dhcp_end[] = {
/* Both iovecs below have to have the same structure, since dhcp_send()
pokes at the internals */
-#define DHCP_IOV_LEN 6
+#define DHCP_IOV_LEN 7
-static struct iovec dhcp_discover_iov[] = {
+static struct iovec dhcp_discover_iov[DHCP_IOV_LEN] = {
/* [0] = ip + udp header */
/* [1] = bootp header */
[2] = {dhcp_discover_hdr, sizeof(dhcp_discover_hdr)},...
2016 Mar 21
0
[PATCH 0/1] ipconfig DHCP bug
...present.
When PXE installing on a real PC with a Netgear ISP router as DHCP server
and a proxyDHCP the bug is present.
This is an old bug reported here:
https://bugs.launchpad.net/ubuntu/+source/klibc/+bug/1327412and recently ""partially"" fixed in
debian/patches/broadcast_dhcp_send.patch found here:
https://launchpad.net/ubuntu/+archive/primary/+files/klibc_2.0.4-8ubuntu1.debian.tar.xz
It would be nice if it is correctly fixed upstream.
as this bug affects lot of distros.
Basically the function dhcp_send() at dhcp_proto.c
mistakenly define
bootp.yiaddr = dev->ip_addr;...
2009 Mar 11
1
ciaddr in dhcp_proto.c
...131, page 9:
"ciaddr Client IP address; only filled in if client is in
BOUND, RENEW or REBINDING state and can respond
to ARP requests.
"
Is it ideal to change "boot.ciaddr = dev-> ip_addr" to "boot.ciaddr =
INADDR_ANY" in dhcp_send() function?
I've used a TP-LINK TL-R402M router and it will give a DHCPNAK if
ciaddr is not empty.
2019 Jan 18
0
[klibc:master] ipconfig: Set broadcast when sending DHCPREQUEST and DHCPDISCOVER
...pconfig/dhcp_proto.c | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/usr/kinit/ipconfig/dhcp_proto.c b/usr/kinit/ipconfig/dhcp_proto.c
index ebf79cc..d5b759b 100644
--- a/usr/kinit/ipconfig/dhcp_proto.c
+++ b/usr/kinit/ipconfig/dhcp_proto.c
@@ -201,8 +201,14 @@ static int dhcp_send(struct netdev *dev, struct iovec *vec)
bootp.hlen = dev->hwlen;
bootp.xid = dev->bootp.xid;
bootp.ciaddr = INADDR_ANY;
- bootp.yiaddr = dev->ip_addr;
+ /* yiaddr should always be set to 0 for the messages we're likely
+ * to send as a DHCP client: DHCPDISCOVER, DHCPREQUEST, DHCP...
2007 Dec 10
0
klibc ipconfig misbehavior in a network with DHCP snooping
[ added klibc ml to cc ]
> I found a problem with klibc's "ipconfig" program, or at least, behavior
> that breaks DHCP on my thin clients (LTSP 5.0). It has to do with setting
> the giaddr field on dhcp_send in dhcp_proto.c, line 164.
thank you for digging into it.
> Otherwise, the relay agent SHALL forward any received DHCP packet
> with a valid non-zero giaddr WITHOUT adding any relay agent options.
> Per RFC 2131 <
> ;http://www.faqs.org/rfcs /rfc2131.html>, it shall also NOT...
2007 Dec 10
1
[git patch] m-i-t support, ipconfig fix
...kendo at gmail.com>
Signed-off-by: maximilian attems <max at stro.at>
diff --git a/usr/kinit/ipconfig/dhcp_proto.c b/usr/kinit/ipconfig/dhcp_proto.c
index a1090f3..8ff1d58 100644
--- a/usr/kinit/ipconfig/dhcp_proto.c
+++ b/usr/kinit/ipconfig/dhcp_proto.c
@@ -161,7 +161,7 @@ static int dhcp_send(struct netdev *dev, struct iovec *vec)
bootp.hlen = dev->hwlen;
bootp.xid = dev->bootp.xid;
bootp.ciaddr = dev->ip_addr;
- bootp.giaddr = dev->bootp.gateway;
+ bootp.giaddr = INADDR_ANY;
bootp.secs = htons(time(NULL) - dev->open_time);
memcpy(bootp.chaddr, dev->hwaddr, 1...
2008 Sep 05
0
initial mntent.h, mount features, ipconfig fixes
...in at stanford.edu>
Signed-off-by: maximilian attems <max at stro.at>
diff --git a/usr/kinit/ipconfig/dhcp_proto.c b/usr/kinit/ipconfig/dhcp_proto.c
index d4f2c09..21448f7 100644
--- a/usr/kinit/ipconfig/dhcp_proto.c
+++ b/usr/kinit/ipconfig/dhcp_proto.c
@@ -171,7 +171,8 @@ static int dhcp_send(struct netdev *dev, struct iovec *vec)
bootp.htype = dev->hwtype;
bootp.hlen = dev->hwlen;
bootp.xid = dev->bootp.xid;
- bootp.ciaddr = dev->ip_addr;
+ bootp.ciaddr = INADDR_NONE;
+ bootp.yiaddr = dev->ip_addr;
bootp.giaddr = INADDR_ANY;
bootp.secs = htons(time(NULL) - dev-...
2008 Sep 07
1
[git pull v2] initial mntent.h, mount features, ipconfig fixes
...in at stanford.edu>
Signed-off-by: maximilian attems <max at stro.at>
diff --git a/usr/kinit/ipconfig/dhcp_proto.c b/usr/kinit/ipconfig/dhcp_proto.c
index d4f2c09..21448f7 100644
--- a/usr/kinit/ipconfig/dhcp_proto.c
+++ b/usr/kinit/ipconfig/dhcp_proto.c
@@ -171,7 +171,8 @@ static int dhcp_send(struct netdev *dev, struct iovec *vec)
bootp.htype = dev->hwtype;
bootp.hlen = dev->hwlen;
bootp.xid = dev->bootp.xid;
- bootp.ciaddr = dev->ip_addr;
+ bootp.ciaddr = INADDR_NONE;
+ bootp.yiaddr = dev->ip_addr;
bootp.giaddr = INADDR_ANY;
bootp.secs = htons(time(NULL) - dev-...
2017 Dec 31
4
[PATCH klibc 0/4] Fixes from Debian and Ubuntu
The following patches come from Debian and/or Ubuntu packages of
klibc.
Ben.
Ben Hutchings (1):
[klibc] run-init: Add dry-run mode
Jay Vosburgh (1):
[klibc] ipconfig: Use separate sockets for DHCP from multiple
interfaces
Mathieu Trudel-Lapierre (1):
[klibc] ipconfig: Set broadcast when sending DHCPREQUEST and
DHCPDISCOVER
YunQiang Su (1):
[klibc] mips: setjmp.S: don't