Displaying 4 results from an estimated 4 matches for "dhcp_iov_len".
2012 May 22
0
[klibc:master] ipconfig: Append padding if DHCP packet length < 300 octets
...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 hostname */
/* [6] = {dhcp_end, sizeof(dhcp_end)} */...
2011 Jul 18
2
ipconfig:About the length of 'options' field of DHCP packet
...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 hostname */
/* [6] = {dhcp_end, sizeof(dhcp_end)} */...
2009 Apr 07
2
[PATCH] ipconfig: send hostname in DHCP request
...r/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)},
[3] = {dhcp_params, sizeof(dhcp_params)},
- /* [4] = D...
2011 Jul 08
4
[PATCH 0/4] usr/kinit checkpatch
Various coding style fixes checkpatch warns about.
The goal is not to be 100% checkpatch compliant,
but to have more consistent coding style.
As this is a trivial patch serie, will land in 24 hours in klibc git,
unless of course ml review hits a bugger.
Checked with size(3) that the generated kinit, fstype, ipconfig and
nfsmount are the same.
maximilian attems (4):
[klibc] ipconfig: reduce