search for: bootp_proto

Displaying 20 results from an estimated 24 matches for "bootp_proto".

2006 Jun 22
2
[patch] ipconfig add dhcp file preseeding support
...lename in a text file, it needs the attached patch. belows patch allows ipconfig to be used in Debian installer once the hostname is sent too, see http://blog.andrew.net.au/2006/05/17#d-i_dhcp_hacking Signed-off-by: maximilian attems <maks at sternwelten.at> diff --git a/usr/kinit/ipconfig/bootp_proto.c b/usr/kinit/ipconfig/bootp_proto.c index 137847c..59b03b4 100644 --- a/usr/kinit/ipconfig/bootp_proto.c +++ b/usr/kinit/ipconfig/bootp_proto.c @@ -74,6 +74,7 @@ int bootp_parse(struct netdev *dev, stru dev->hostname[0] = '\0'; dev->nisdomainname[0] = '\0'; dev->boot...
2011 Jul 18
2
ipconfig:About the length of 'options' field of DHCP packet
...g that append padding to the 'options' field 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_p...
2012 May 22
0
[klibc:master] ipconfig: Write $DOMAINSEARCH as domain-search
...is either 'foo1.bar. foo2.bar.', 'foo.', or ''. 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 | 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/ipconf...
2011 Mar 28
5
[PATCH 1/3] Only peek and discard packets from specified device.
...d devices the packet was never removed and packets 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/ipc...
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
Implement classless static 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 | 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...
2010 Aug 25
0
[patch] ipconfig fixes + run-init nit
...ibc] ipconfig: differentiate between error and 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 deletio...
2008 Jun 14
2
PATCH: ipconfig may discard useful packets
...mp to discard_pkt, in which case it *discards* the 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...
2018 Jun 12
0
[PATCH v2] Implement classless static routes
Implement classless static 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...
2019 Jan 18
0
[klibc:master] ipconfig: Implement classless static routes
...s/1526956 Signed-off-by: Benjamin Drung <benjamin.drung at profitbricks.com> 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...
2018 Jun 18
1
[PATCH v3 1/2] Implement classless static routes
Implement classless static 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...
2010 Mar 16
0
[git pull v3] i386, sparc buildfix + ipconfig fixes
...useful packets git diff --stat --summary master...maks usr/include/arch/i386/klibc/archsignal.h | 104 +------ usr/include/arch/sparc/klibc/archconfig.h | 1 + usr/include/arch/sparc/klibc/archsignal.h | 9 +- usr/include/arch/sparc64/klibc/archconfig.h | 1 + usr/kinit/ipconfig/bootp_proto.c | 6 +- usr/kinit/ipconfig/dhcp_proto.c | 14 +- usr/kinit/ipconfig/main.c | 32 ++- usr/kinit/ipconfig/packet.c | 17 +- usr/klibc/SYSCALLS.def | 2 + usr/klibc/socketcalls.pl | 2 +-...
2003 Oct 04
0
klibc: kbuild improvements
...ipconfig/Makefile 1.3 vs edited ===== --- 1.3/usr/ipconfig/Makefile Mon May 26 07:20:31 2003 +++ edited/usr/ipconfig/Makefile Sat Oct 4 22:03:13 2003 @@ -1,18 +1,11 @@ -user-progs := $(obj)/ipconfig -build-targets := $(obj)/ipconfig $(obj)/ipconfig.a -objs := main.o netdev.o packet.o dhcp_proto.o bootp_proto.o -LIBS := $(USERLIBC) $(USERLIBGCC) +user-progs := ipconfig +user-libs := ipconfig.a -OBJS := $(objs:%=$(obj)/%) +#Objects build in local directory +objs := netdev.o packet.o dhcp_proto.o bootp_proto.o -quiet_cmd_ipconfig = USERLD $@ - cmd_ipconfig = $(USERLD) $(USERLDFLAGS) -o $@ $^ +t...
2019 Jan 05
0
Pull request: collected patches for klibc
...28 ++++ usr/include/arch/riscv64/machine/asm.h | 26 ++++ usr/include/arch/sparc/machine/asm.h | 15 +- usr/include/arch/sparc64/machine/asm.h | 1 + usr/include/arch/sparc64/machine/frame.h | 1 + usr/include/sys/reboot.h | 4 +- usr/kinit/ipconfig/bootp_proto.c | 109 ++++++++++++++ usr/kinit/ipconfig/dhcp_proto.c | 9 +- usr/kinit/ipconfig/main.c | 108 ++++++++++---- usr/kinit/ipconfig/netdev.c | 49 +++++-- usr/kinit/ipconfig/netdev.h | 25 +++- usr/kinit/ipconfig/packet.c...
2009 Jan 15
1
Bug#511959: klibc-utils: ipconfig times out when several machines boot at the very same time
...udp->dest != htons(cfg_local_port)) | goto free_pkt; | ? | free_pkt: | free(ip); | return 0; | ? Which means in case of source/dest mismatch (which is the case when a message from another client is received), 0 is returned. Now, looking at the callers: bootp_proto.c: bootp_recv_reply() & dhcp_proto.c: dhcp_recv() | ? | ret = packet_recv(iov, 3); | if (ret <= 0) | return ret; | ? Again, 0 is returned. dhcp_recv() is wrapped into dhcp_recv_offer() & dhcp_recv_ack(). Finally, all those are used in switch() statement...
2003 Apr 29
0
[PATCH] Fix busy-looping behaviour in ipconfig
...ude <poll.h> +#include <limits.h> #include <stdio.h> #include <string.h> #include <stdlib.h> #include <time.h> #include <arpa/inet.h> +#include "ipconfig.h" #include "netdev.h" #include "bootp_packet.h" #include "bootp_proto.h" @@ -15,6 +17,7 @@ #include "packet.h" static const char *progname; +static char do_not_config; struct state { int state; @@ -57,6 +60,9 @@ static void configure_device(struct netdev *dev) { + if (do_not_config) + return; + if (netdev_setaddress(dev)) printf(&q...
2005 Jul 31
5
Shared versus static linked executables - and strip
I'm still pondering with kbuild and klibc. Next in line was to get ipconfig support in the kernel (build wise). A little challenge that is bigger than anticipated was to create a shared executable. This required a far bigger rewrite of Kbuild.klibc than originally planned. The good part is that I now managed to treat linking of objects with single and multiple .o files almost the same.
2010 Apr 16
0
[git pull v4] dash, sh4, ipconfig, dprintf, fstype, README's
..._mounts_mtd.c | 4 +- usr/kinit/fstype/btrfs.h | 57 +++++ usr/kinit/fstype/fstype.c | 22 +- usr/kinit/initrd.c | 24 +- usr/kinit/ipconfig/{README => README.ipconfig} | 0 usr/kinit/ipconfig/bootp_proto.c | 4 +- usr/kinit/ipconfig/dhcp_proto.c | 22 +- usr/kinit/ipconfig/ipconfig.h | 15 +- usr/kinit/ipconfig/main.c | 15 +- usr/kinit/ipconfig/netdev.c | 27 ++- usr/kinit/ipconfig/packet.c...
2010 Apr 16
0
[PATCH] pull faccessat() system call
..._mounts_mtd.c | 4 +- usr/kinit/fstype/btrfs.h | 57 +++++ usr/kinit/fstype/fstype.c | 22 +- usr/kinit/initrd.c | 24 +- usr/kinit/ipconfig/{README => README.ipconfig} | 0 usr/kinit/ipconfig/bootp_proto.c | 4 +- usr/kinit/ipconfig/dhcp_proto.c | 22 +- usr/kinit/ipconfig/ipconfig.h | 15 +- usr/kinit/ipconfig/main.c | 15 +- usr/kinit/ipconfig/netdev.c | 27 ++- usr/kinit/ipconfig/packet.c...
2010 Mar 28
1
[git pull v3] dash, sh4, ipconfig, dprintf, fstype, README's
..._mounts_mtd.c | 4 +- usr/kinit/fstype/btrfs.h | 57 +++++ usr/kinit/fstype/fstype.c | 22 +- usr/kinit/initrd.c | 24 +- usr/kinit/ipconfig/{README => README.ipconfig} | 0 usr/kinit/ipconfig/bootp_proto.c | 4 +- usr/kinit/ipconfig/dhcp_proto.c | 22 +- usr/kinit/ipconfig/ipconfig.h | 15 +- usr/kinit/ipconfig/main.c | 15 +- usr/kinit/ipconfig/netdev.c | 27 ++- usr/kinit/ipconfig/packet.c...