[syslinux:lwip] pxe: make lwip use IANA-blessed local port numbers
syslinux-bot for H. Peter Anvin
hpa at zytor.com
Sun Apr 24 21:03:24 PDT 2011
Commit-ID: 1da01c02f52f896027de875dee38bd57ca4bb973
Gitweb: http://syslinux.zytor.com/commit/1da01c02f52f896027de875dee38bd57ca4bb973
Author: H. Peter Anvin <hpa at zytor.com>
AuthorDate: Sun, 24 Apr 2011 15:05:15 -0700
Committer: H. Peter Anvin <hpa at zytor.com>
CommitDate: Sun, 24 Apr 2011 15:05:15 -0700
pxe: make lwip use IANA-blessed local port numbers
Make lwip use the IANA-blessed local port numbers 49152 and higher.
Signed-off-by: H. Peter Anvin <hpa at zytor.com>
---
core/lwip/src/include/lwipopts.h | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/core/lwip/src/include/lwipopts.h b/core/lwip/src/include/lwipopts.h
index 0b84534..1c8b674 100644
--- a/core/lwip/src/include/lwipopts.h
+++ b/core/lwip/src/include/lwipopts.h
@@ -46,6 +46,15 @@
#define TCP_SND_BUF (4*TCP_MSS)
#define LWIP_TCP_TIMESTAMPS 1
+/*
+ * IANA says to use dynamic port numbers above 49152, but some
+ * very high numbers are known to be (ab)used, too.
+ */
+#define TCP_LOCAL_PORT_RANGE_START 49152
+#define TCP_LOCAL_PORT_RANGE_END 57343
+#define UDP_LOCAL_PORT_RANGE_START 49152
+#define UDP_LOCAL_PORT_RANGE_END 57343
+
#define ETHARP_TRUST_IP_MAC 0
#define LWIP_STATS 1
More information about the Syslinux-commits
mailing list