Displaying 2 results from an estimated 2 matches for "1ef505e".
Did you mean:
17f5c05e
2012 May 22
0
[klibc:master] ipconfig: Append padding if DHCP packet length < 300 octets
...f-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 bootp_hdr {
/* larger size for backward compatibility of ipconfig */
#define BOOTP_EXTS_SIZE 1500
+/* minimum length of BOOTP/DHCP packet on sending */
+#define BOOTP_MIN_LEN...
2012 May 22
0
[klibc:master] ipconfig: Write $DOMAINSEARCH as domain-search
...++++++++++++++-
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_packet.h
+++ b/usr/kinit/ipconfig/bootp_packet.h
@@ -28,4 +28,14 @@ struct bootp_hdr {
/* 312 bytes of extensions */
};
+/*
+ * memory size of BOOTP Vendor Extensions/DHCP Options for receiving
+ *
+ * generic_ether_mtu:1500, min_sizeof(ip_hdr):20, sizeof(...