s390: set DHCP client architecure id for netboot
PATCH 1/1 s390: set DHCP client architecure id for netboot
Setting the client architecture DHCP option to 0x001f (s390 Basic) [1] allows the DHCP server to return a s390-specific bootfile if wanted. DHCP servers not configured for the option (or not yet recognizing the option value) will continue to work as they have done before.
[1] https://www.iana.org/assignments/dhcpv6-parameters
--- pc-bios/s390-ccw/netboot.mak | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
pc-bios/s390-ccw/netboot.mak +1 -1
@@ -50,7 +50,7 @@ libc.a: $(LIBCOBJS) LIBNETOBJS := args.o dhcp.o dns.o icmpv6.o ipv6.o tcp.o udp.o bootp.o \ dhcpv6.o ethernet.o ipv4.o ndp.o tftp.o -LIBNETCFLAGS := $(QEMU_CFLAGS) $(LIBC_INC) $(LIBNET_INC) +LIBNETCFLAGS := $(QEMU_CFLAGS) -DDHCPARCH=0x1F $(LIBC_INC) $(LIBNET_INC) %.o : $(SLOF_DIR)/lib/libnet/%.c $(call quiet-command,$(CC) $(LIBNETCFLAGS) -c -o $@ $<,"CC","$(TARGET_DIR)$@")
Signature · 1 line
1.9.1
Quoted 8 lines · Viktor Mihajlovski
Setting the client architecture DHCP option to
0x001f(s390 Basic) [1] allows the DHCP server to return a s390-specific bootfile if wanted. DHCP servers not configured for the option (or not yet recognizing the option value) will continue to work as they have done before.[1] https://www.iana.org/assignments/dhcpv6-parameters
Signed-off-by Viktor Mihajlovski <[email protected]>
Adding Cornelia. Conny as you have pending patches anyway, I assume you can pick this up. Would be good if Thomas could give his Ack, though.
Quoted 18 lines
--- pc-bios/s390-ccw/netboot.mak | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)pc-bios/s390-ccw/netboot.mak +1
-1@@ -50,7 +50,7 @@ libc.a: $(LIBCOBJS) LIBNETOBJS := args.o dhcp.o dns.o icmpv6.o ipv6.o tcp.o udp.o bootp.o \ dhcpv6.o ethernet.o ipv4.o ndp.o tftp.o -LIBNETCFLAGS := $(QEMU_CFLAGS) $(LIBC_INC) $(LIBNET_INC) +LIBNETCFLAGS := $(QEMU_CFLAGS) -DDHCPARCH=0x1F $(LIBC_INC) $(LIBNET_INC) %.o : $(SLOF_DIR)/lib/libnet/%.c $(call quiet-command,$(CC) $(LIBNETCFLAGS) -c -o $@ $<,"CC","$(TARGET_DIR)$@")
Quoted 6 lines · Viktor Mihajlovski
Setting the client architecture DHCP option to
0x001f(s390 Basic) [1] allows the DHCP server to return a s390-specific bootfile if wanted. DHCP servers not configured for the option (or not yet recognizing the option value) will continue to work as they have done before.
Ah, nice, you already registered a value for s390x :-)
May I ask what's the difference between "Basic" and "Extended" there?
Quoted 11 lines
Signed-off-by Viktor Mihajlovski <[email protected]>--- pc-bios/s390-ccw/netboot.mak | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)pc-bios/s390-ccw/netboot.mak +0
-0
pc-bios/s390-ccw/netboot.mak libc.a: $(LIBCOBJS) · line 56
Quoted 8 lines
pc-bios/s390-ccw/netboot.mak +1
-1@@ -50,7 +50,7 @@ libc.a: $(LIBCOBJS) LIBNETOBJS := args.o dhcp.o dns.o icmpv6.o ipv6.o tcp.o udp.o bootp.o \ dhcpv6.o ethernet.o ipv4.o ndp.o tftp.o -LIBNETCFLAGS := $(QEMU_CFLAGS) $(LIBC_INC) $(LIBNET_INC) +LIBNETCFLAGS := $(QEMU_CFLAGS) -DDHCPARCH=0x1F $(LIBC_INC) $(LIBNET_INC) %.o : $(SLOF_DIR)/lib/libnet/%.c $(call quiet-command,$(CC) $(LIBNETCFLAGS) -c -o $@ $<,"CC","$(TARGET_DIR)$@")
Quoted 11 lines · Thomas Huth
Quoted 6 lines · Viktor Mihajlovski
Setting the client architecture DHCP option to
0x001f(s390 Basic) [1] allows the DHCP server to return a s390-specific bootfile if wanted. DHCP servers not configured for the option (or not yet recognizing the option value) will continue to work as they have done before.Ah, nice, you already registered a value for s390x :-)
May I ask what's the difference between "Basic" and "Extended" there?
sure, "Basic" stands for the "classic netboot", i.e. a single binary file is designated by the bootfile in the DHCP reply. "Extended" is the mode implemented by Dynamic Partition Manager, where the bootfile is some sort of configuration file.
[...]
Signature · 8 lines
Mit freundlichen Grüßen/Kind Regards Viktor Mihajlovski IBM Deutschland Research & Development GmbH Vorsitzender des Aufsichtsrats: Martina Köderitz Geschäftsführung: Dirk Wittkopp Sitz der Gesellschaft: Böblingen Registergericht: Amtsgericht Stuttgart, HRB 243294
Cornelia Huck
AppliedQuoted 17 lines · On Mon, 11 Sep 2017 12:33:47 +0200 Viktor Mihajlovski…
Setting the client architecture DHCP option to
0x001f(s390 Basic) [1] allows the DHCP server to return a s390-specific bootfile if wanted. DHCP servers not configured for the option (or not yet recognizing the option value) will continue to work as they have done before.[1] https://www.iana.org/assignments/dhcpv6-parameters
Signed-off-by Viktor Mihajlovski <[email protected]>--- pc-bios/s390-ccw/netboot.mak | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)pc-bios/s390-ccw/netboot.mak +0
-0
pc-bios/s390-ccw/netboot.mak libc.a: $(LIBCOBJS) · line 56
Quoted 8 lines
pc-bios/s390-ccw/netboot.mak +1
-1@@ -50,7 +50,7 @@ libc.a: $(LIBCOBJS) LIBNETOBJS := args.o dhcp.o dns.o icmpv6.o ipv6.o tcp.o udp.o bootp.o \ dhcpv6.o ethernet.o ipv4.o ndp.o tftp.o -LIBNETCFLAGS := $(QEMU_CFLAGS) $(LIBC_INC) $(LIBNET_INC) +LIBNETCFLAGS := $(QEMU_CFLAGS) -DDHCPARCH=0x1F $(LIBC_INC) $(LIBNET_INC) %.o : $(SLOF_DIR)/lib/libnet/%.c $(call quiet-command,$(CC) $(LIBNETCFLAGS) -c -o $@ $<,"CC","$(TARGET_DIR)$@")
Thanks, applied.