search for: 2ded0f3

Displaying 2 results from an estimated 2 matches for "2ded0f3".

Did you mean: 24ed03f
2009 Apr 07
2
[PATCH] ipconfig: send hostname in DHCP request
...tname; + vec[i].iov_len = len+2; + i++; + + DEBUG(("hostname %.*s ", len, dhcp_hostname+2)); + } + + vec[i].iov_base = dhcp_end; + vec[i].iov_len = sizeof(dhcp_end); + + return packet_send(dev, vec, i); } /* diff --git a/usr/kinit/ipconfig/main.c b/usr/kinit/ipconfig/main.c index 2ded0f3..619edf7 100644 --- a/usr/kinit/ipconfig/main.c +++ b/usr/kinit/ipconfig/main.c @@ -522,6 +522,8 @@ static int parse_device(struct netdev *dev, const char *ip) case 4: strncpy(dev->hostname, ip, SYS_NMLN - 1); dev->hostname[SYS_NMLN - 1] = '\0'; + memcpy(dev->reqho...
2008 Jun 14
2
PATCH: ipconfig may discard useful packets
...146,8 +146,8 @@ static int dhcp_recv(struct netdev *dev) int ret; ret = packet_recv(iov, 3); - if (ret <= 0) - return ret; + if (ret == 0) + return -1; DEBUG(("\n dhcp xid %08x ", dev->bootp.xid)); diff --git a/usr/kinit/ipconfig/main.c b/usr/kinit/ipconfig/main.c index 2ded0f3..4e728e0 100644 --- a/usr/kinit/ipconfig/main.c +++ b/usr/kinit/ipconfig/main.c @@ -169,6 +169,11 @@ static void complete_device(struct netdev *dev) ifaces = dev; } +/* + * Returns: + * 0 = Not handled, the packet is still in the queue + * 1 = Handled + */ static int process_receive_event(st...