search for: dhcp_proto

Displaying 20 results from an estimated 40 matches for "dhcp_proto".

2008 Jun 14
5
PATCH: ipconfig may accept DHCPOFFER as DHCPACK
...the constants DHCPOFFER, DHCPACK etc instead of 1,2,3... I tried to keep the changes as minimal as possible. I'm not experienced with the diff program, so please excuse the way I'm sending the patch: it's the result from the "diff main.c ../ipconfig.old/main.c" and "diff dhcp_proto.c ../ipconfig.old/dhcp_proto.c" commands. The version I used was klibc 1.5.10, Release: 1. Kind regards, Alkis diff main.c ../ipconfig.old/main.c: 195c195 < case DHCPOFFER: /* Offer received */ --- > case 1: /* Offer received */ 208c208 < case DHCPACK: /* ACK received */ --- &...
2010 Mar 16
4
ipconfig: DHCP fixes
..., 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 insertions(+), 3 deletions(-) -- Dr Louis Rilling Kerlabs Skype: louis.rilling Batiment Germanium Phone: (+33|0) 6 80 89 08 23 80 avenue des Buttes de Coesmes http://www.kerlabs.com/ 35700 Rennes
2016 Mar 21
0
[PATCH 0/1] ipconfig DHCP bug
...tially"" 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; when in a client originated DHCP DHCPREQUEST(RFC2131 Page 36) it should be bootp.yiaddr = INADDR_ANY; // "0" and also it forgets to define the flags bootp.flags = htons(0x800); Best, Patrick Signed-off-by: Patrick Masotta <m...
2019 Jan 18
0
[klibc:master] ipconfig: Set broadcast when sending DHCPREQUEST and DHCPDISCOVER
...le by looking at RFC 2131, section 4.1, page 24. References: https://bugs.debian.org/733988 References: https://bugs.launchpad.net/bugs/1327412 Link: https://www.zytor.com/pipermail/klibc/2017-December/003974.html Signed-off-by: Ben Hutchings <ben at decadent.org.uk> --- usr/kinit/ipconfig/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 n...
2009 Mar 11
1
ciaddr in dhcp_proto.c
Hello all: According to rfc 2131, 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
2011 Jul 18
2
ipconfig:About the length of 'options' field of DHCP packet
...ield of DHCP Discover and Request packet like ISC-dhclient. This function is enabled if ipconfig fail to get DHCP Offer reply, retry to send DHCP Discover and the length of the 'options' field is shorter than 64 octets. --- usr/kinit/ipconfig/bootp_proto.c | 6 ++++++ usr/kinit/ipconfig/dhcp_proto.c | 24 +++++++++++++++++++++++- usr/kinit/ipconfig/main.c | 6 ++++++ usr/kinit/ipconfig/netdev.h | 1 + 4 files changed, 36 insertions(+), 1 deletions(-) diff --git a/usr/kinit/ipconfig/bootp_proto.c b/usr/kinit/ipconfig/bootp_proto.c index f2cc90c..19c61ef 100644 --- a/usr/...
2012 May 22
0
[klibc:master] ipconfig: Append padding if DHCP packet length < 300 octets
...DHCP servers ignore short DHCP packet which dhclient doesn't send. Signed-off-by: KUMAAN <9maaan at gmail.com> Acked-by: H. Peter Anvin <hpa at zytor.com> Signed-off-by: maximilian attems <max at stro.at> --- usr/kinit/ipconfig/bootp_packet.h | 3 +++ usr/kinit/ipconfig/dhcp_proto.c | 18 +++++++++++++++++- 2 files changed, 20 insertions(+), 1 deletions(-) diff --git a/usr/kinit/ipconfig/bootp_packet.h b/usr/kinit/ipconfig/bootp_packet.h index 1ef505e..1d5bd0d 100644 --- a/usr/kinit/ipconfig/bootp_packet.h +++ b/usr/kinit/ipconfig/bootp_packet.h @@ -38,4 +38,7 @@ struct...
2009 Apr 07
2
[PATCH] ipconfig: send hostname in DHCP request
...ed, for example -d ::::foo::dhcp, then include the hostname in the DHCP discover/request. This patch also allows the vendor class identifier to be omitted from the DHCP discover/request by specifying -i "" Signed-off-by: Aron Griffis <agriffis at n01se.net> --- usr/kinit/ipconfig/dhcp_proto.c | 49 ++++++++++++++++++++++++++++++-------- usr/kinit/ipconfig/main.c | 4 +++ usr/kinit/ipconfig/netdev.h | 1 + 3 files changed, 43 insertions(+), 11 deletions(-) diff --git a/usr/kinit/ipconfig/dhcp_proto.c b/usr/kinit/ipconfig/dhcp_proto.c index d4f2c09..775a5ca 100644 ---...
2008 Jun 14
2
PATCH: ipconfig may discard useful packets
...he packet and returns 0. This return value (0) will propagate to main, so (nr == 0) and packet_discard() will be called *again*, causing the NIC to wait until it happens to receive some packet. Kind regards, Alkis Georgopoulos --- usr/kinit/ipconfig/bootp_proto.c | 6 +++++- usr/kinit/ipconfig/dhcp_proto.c | 10 +++++----- usr/kinit/ipconfig/main.c | 32 +++++++++++++++++++++----------- usr/kinit/ipconfig/packet.c | 15 ++++++++++++--- 4 files changed, 43 insertions(+), 20 deletions(-) diff --git a/usr/kinit/ipconfig/bootp_proto.c b/usr/kinit/ipconfig/bootp_proto.c index 236bde9...
2007 Dec 10
1
[git patch] m-i-t support, ipconfig fix
...c] elf.h add support for st_info field [klibc] remove local insmod.c copy [klibc] ipconfig fix DHCPREQUEST per RFC 2131 the diffstat is usr/include/sys/elf32.h | 4 + usr/include/sys/elf64.h | 4 + usr/include/sys/elfcommon.h | 10 +++ usr/kinit/ipconfig/dhcp_proto.c | 2 +- usr/klibc/socketcalls/.gitignore | 1 + usr/utils/Kbuild | 4 +- usr/utils/insmod.c | 140 -------------------------------------- 7 files changed, 21 insertions(+), 144 deletions(-) commit 83cd38f8cc2a04ef6d4ce96de719c993edd7fbfb Author: maximilia...
2006 Jun 22
2
[patch] ipconfig add dhcp file preseeding support
...nisdomainname[0] = '\0'; dev->bootpath[0] = '\0'; + memcpy(&dev->filename, &hdr->boot_file, FNLEN); if (extlen >= 4 && exts[0] == 99 && exts[1] == 130 && exts[2] == 83 && exts[3] == 99) { diff --git a/usr/kinit/ipconfig/dhcp_proto.c b/usr/kinit/ipconfig/dhcp_proto.c index 9a30660..e86bbb2 100644 --- a/usr/kinit/ipconfig/dhcp_proto.c +++ b/usr/kinit/ipconfig/dhcp_proto.c @@ -46,6 +46,7 @@ #define REQ_IP_OFF 15 }; static uint8_t dhcp_end[] = { + 60, 3, 100, 45, 105, /* Vendor class "d-i" */ 255, }; diff --gi...
2012 May 22
0
[klibc:master] ipconfig: Write $DOMAINSEARCH as domain-search
...-off-by: KUMAAN <9maaan at gmail.com> Acked-by: H. Peter Anvin <hpa at zytor.com> Signed-off-by: maximilian attems <max at stro.at> --- usr/kinit/ipconfig/bootp_packet.h | 10 ++ usr/kinit/ipconfig/bootp_proto.c | 240 ++++++++++++++++++++++++++++++++++++- usr/kinit/ipconfig/dhcp_proto.c | 3 +- usr/kinit/ipconfig/main.c | 2 + usr/kinit/ipconfig/netdev.h | 1 + 5 files changed, 253 insertions(+), 3 deletions(-) diff --git a/usr/kinit/ipconfig/bootp_packet.h b/usr/kinit/ipconfig/bootp_packet.h index 6016e5f..1ef505e 100644 --- a/usr/kinit/ipconfig/bootp_...
2011 Mar 28
5
[PATCH 1/3] Only peek and discard packets from specified device.
...ackets for the correct device were never processed. This patch enhance packet_peek and packet_discard to only work on packages for the specified device instead of all packets. Signed-off-by: Ulrich Dangel <uli at spamt.net> --- usr/kinit/ipconfig/bootp_proto.c | 2 +- usr/kinit/ipconfig/dhcp_proto.c | 2 +- usr/kinit/ipconfig/main.c | 16 ++++++---------- usr/kinit/ipconfig/packet.c | 16 +++++++++------- usr/kinit/ipconfig/packet.h | 6 +++--- 5 files changed, 20 insertions(+), 22 deletions(-) diff --git a/usr/kinit/ipconfig/bootp_proto.c b/usr/kinit/ipconfig/bo...
2011 Mar 27
4
ipconfig problem if multiple devices are up
Hi, it seems that ipconfig has a problem if multiple devices are up and connected to the same network. It seems that it uses the wrong socket/device index to compare it to incoming packet. To be more precise, the packet gets discarded in do_pkt_recv as the ifindex from state differs always from the incoming packet To reproduce create two tap devices: $ sudo tunctl -u uli -t tap0
2017 Dec 19
0
[PATCH] Implement classless static routes
...upport as specified in RFC3442. Bug-Debian: https://bugs.debian.org/884716 Bug-Ubuntu: https://launchpad.net/bugs/1526956 Signed-off-by: Benjamin Drung <benjamin.drung at profitbricks.com> --- usr/kinit/ipconfig/bootp_proto.c | 112 +++++++++++++++++++++++++++++++++++++++ usr/kinit/ipconfig/dhcp_proto.c | 1 + usr/kinit/ipconfig/main.c | 43 ++++++++++++--- usr/kinit/ipconfig/netdev.c | 45 +++++++++++----- usr/kinit/ipconfig/netdev.h | 17 ++++++ 5 files changed, 197 insertions(+), 21 deletions(-) diff --git a/usr/kinit/ipconfig/bootp_proto.c b/usr/kinit/ipconfig/bootp_p...
2010 Aug 25
0
[patch] ipconfig fixes + run-init nit
...nd non-DHCP/BOOTP traffic in packet_recv() Michael Prokop (1): [klibc] ipconfig fix dns domain maximilian attems (1): [klibc] run-init: get rid of over paranoid test for /init git diff -M --stat --summary klibc-1.5.19.. usr/kinit/ipconfig/bootp_proto.c | 2 +- usr/kinit/ipconfig/dhcp_proto.c | 4 ++-- usr/kinit/ipconfig/main.c | 16 ++++++++++------ usr/kinit/ipconfig/packet.c | 5 +++-- usr/kinit/run-init/runinitlib.c | 4 ---- usr/klibc/version | 2 +- 6 files changed, 17 insertions(+), 16 deletions(-) thanks to all the involved parties....
2018 Jun 12
0
[PATCH v2] Implement classless static routes
...routes support as specified in RFC3442. Bug-Debian: https://bugs.debian.org/884716 Bug-Ubuntu: https://launchpad.net/bugs/1526956 Signed-off-by: Benjamin Drung <benjamin.drung at profitbricks.com> --- usr/kinit/ipconfig/bootp_proto.c | 110 +++++++++++++++++++++++++++++++ usr/kinit/ipconfig/dhcp_proto.c | 1 + usr/kinit/ipconfig/main.c | 50 ++++++++++++-- usr/kinit/ipconfig/netdev.c | 54 +++++++++++---- usr/kinit/ipconfig/netdev.h | 22 ++++++- 5 files changed, 215 insertions(+), 22 deletions(-) diff --git a/usr/kinit/ipconfig/bootp_proto.c b/usr/kinit/ipconfig/bootp_pr...
2019 Jan 18
0
[klibc:master] ipconfig: Implement classless static routes
...t; Link: https://salsa.debian.org/kernel-team/klibc/merge_requests/2 Link: https://www.zytor.com/pipermail/klibc/2018-June/003993.html Signed-off-by: Ben Hutchings <ben at decadent.org.uk> --- usr/kinit/ipconfig/bootp_proto.c | 109 +++++++++++++++++++++++++++++++++++++++ usr/kinit/ipconfig/dhcp_proto.c | 1 + usr/kinit/ipconfig/main.c | 54 +++++++++++++++---- usr/kinit/ipconfig/netdev.c | 49 +++++++++++++----- usr/kinit/ipconfig/netdev.h | 24 ++++++++- 5 files changed, 212 insertions(+), 25 deletions(-) diff --git a/usr/kinit/ipconfig/bootp_proto.c b/usr/kinit/ipconfi...
2018 Jun 18
1
[PATCH v3 1/2] Implement classless static routes
...routes support as specified in RFC3442. Bug-Debian: https://bugs.debian.org/884716 Bug-Ubuntu: https://launchpad.net/bugs/1526956 Signed-off-by: Benjamin Drung <benjamin.drung at profitbricks.com> --- usr/kinit/ipconfig/bootp_proto.c | 109 +++++++++++++++++++++++++++++++ usr/kinit/ipconfig/dhcp_proto.c | 1 + usr/kinit/ipconfig/main.c | 54 ++++++++++++--- usr/kinit/ipconfig/netdev.c | 49 ++++++++++---- usr/kinit/ipconfig/netdev.h | 24 ++++++- 5 files changed, 212 insertions(+), 25 deletions(-) diff --git a/usr/kinit/ipconfig/bootp_proto.c b/usr/kinit/ipconfig/bootp_pr...
2011 Jul 08
4
[PATCH 0/4] usr/kinit checkpatch
...s [klibc] kinit: checkpatch cleanup usr/kinit/devname.c | 6 +++- usr/kinit/do_mounts.c | 7 +++-- usr/kinit/do_mounts.h | 8 +++--- usr/kinit/do_mounts_md.c | 8 +++--- usr/kinit/fstype/fstype.c | 20 ++++++++++----- usr/kinit/ipconfig/dhcp_proto.c | 2 +- usr/kinit/ipconfig/main.c | 42 ++++++++++++++++----------------- usr/kinit/ipconfig/packet.c | 4 +- usr/kinit/nfsmount/dummypmap.c | 2 +- usr/kinit/nfsmount/main.c | 17 ++++++++----- usr/kinit/nfsmount/mount.c | 48 +++++++++++++++------------------...