Displaying 5 results from an estimated 5 matches for "dhcp_request_iov".
2012 May 22
0
[klibc:master] ipconfig: Append padding if DHCP packet length < 300 octets
...over_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)} */
+ /* [7] = optional padding */
};
static struct iovec dhcp_request_iov[DHCP_IOV_LEN] = {
@@ -70,6 +71,7 @@ static struct iovec dhcp_request_iov[DHCP_IOV_LEN] = {
/* [4] = optional vendor class */
/* [5] = optional hostname */
/* [6] = {dhcp_end, sizeof(dhcp_end)} */
+ /* [7] = optional padding */
};
/*
@@ -187,7 +189,10 @@ static int dhcp_send(struct netdev...
2011 Jul 18
2
ipconfig:About the length of 'options' field of DHCP packet
...over_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)} */
+ /* [7] = optional padding */
};
static struct iovec dhcp_request_iov[DHCP_IOV_LEN] = {
@@ -69,6 +70,7 @@ static struct iovec dhcp_request_iov[DHCP_IOV_LEN] = {
/* [4] = optional vendor class */
/* [5] = optional hostname */
/* [6] = {dhcp_end, sizeof(dhcp_end)} */
+ /* [7] = optional padding */
};
/*
@@ -167,6 +169,7 @@ static int dhcp_send(struct netdev *...
2009 Apr 07
2
[PATCH] ipconfig: send hostname in DHCP request
...{dhcp_discover_hdr, sizeof(dhcp_discover_hdr)},
[3] = {dhcp_params, sizeof(dhcp_params)},
- /* [4] = DHCP vendor class */
- [5] = {dhcp_end, sizeof(dhcp_end)}
+ /* [4] = optional vendor class */
+ /* [5] = optional hostname */
+ /* [6] = {dhcp_end, sizeof(dhcp_end)} */
};
-static struct iovec dhcp_request_iov[] = {
+static struct iovec dhcp_request_iov[DHCP_IOV_LEN] = {
/* [0] = ip + udp header */
/* [1] = bootp header */
[2] = {dhcp_request_hdr, sizeof(dhcp_request_hdr)},
[3] = {dhcp_params, sizeof(dhcp_params)},
- /* [4] = DHCP vendor class */
- [5] = {dhcp_end, sizeof(dhcp_end)}
+ /* [4] = op...
2008 Jun 14
2
PATCH: ipconfig may discard useful packets
...izeof(struct bootp_hdr) ||
bootp.op != BOOTP_REPLY || /* RFC951 7.5 */
diff --git a/usr/kinit/ipconfig/dhcp_proto.c b/usr/kinit/ipconfig/dhcp_proto.c
index d4f2c09..82cd1ed 100644
--- a/usr/kinit/ipconfig/dhcp_proto.c
+++ b/usr/kinit/ipconfig/dhcp_proto.c
@@ -72,7 +72,7 @@ static struct iovec dhcp_request_iov[] = {
/*
* Parse a DHCP response packet
* Returns:
- * 0 = Not handled
+ * 0 = Unexpected packet, not parsed
* 2 = DHCPOFFER (from dhcp_proto.h)
* 5 = DHCPACK
* 6 = DHCPNACK
@@ -128,8 +128,8 @@ static int dhcp_parse(struct netdev *dev, struct
bootp_hdr *hdr,
/*
* Receive and parse a 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