summaryrefslogtreecommitdiff
path: root/core/lwip/src/include
Commit message (Collapse)AuthorAgeFilesLines
* core/lwip/undiif: dprint MAC/ARP/IP/ICMP/TCP/UDP headers; poll debugGene Cumm2013-07-201-0/+7
| | | | | | | Encapsulate in #ifdef; use snprintf and 1 dprintf-like statement. Print debug message that polling has been forced Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
* lwip: Allow LWIP_PLATFORM_* output to use dprintfGene Cumm2013-07-121-2/+12
| | | | Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
* lwip: undiif: Fix debug options to unique *_DEBUG macrosGene Cumm2013-07-121-0/+21
| | | | | | Don't reuse *_DEBUG macros intended for other source files. Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
* Merge remote-tracking branch 'genec/lwip-1.4.0-test-2' into lwipH. Peter Anvin2012-05-2941-1411/+2444
|\
| * core/pxe: lwip semaphore changesGene Cumm2012-04-272-1/+10
| | | | | | | | | | | | | | Upstream changed how it called back to the system implementing semaphores/mutexes Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
| * core/lwip: update to lwIP-1.4.0Gene Cumm2012-04-2639-1410/+2434
| | | | | | | | | | | | Also involved moving some calls as certain functions within lwip moved/changed. Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
* | lwip: Add return address to LWIP_PLATFORM_ASSERT()syslinux-4.10-pre20H. Peter Anvin2012-04-261-1/+1
| | | | | | | | | | | | It might help a little bit finding bugs... Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* | lwipopts: increase the number of netbufsH. Peter Anvin2012-04-261-0/+1
|/ | | | | | We need more netbufs than the default 2... Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* lwipopts.h: Bump the priority of the tcpip_threadH. Peter Anvin2012-03-301-1/+1
| | | | | | | | Run tcpip_thread at higher priority than the root thread. It's not entirely clear this is the right thing to do, but it probably makes sense for now at least. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* pxe: make lwip use IANA-blessed local port numbersH. Peter Anvin2011-04-241-0/+9
| | | | | | Make lwip use the IANA-blessed local port numbers 49152 and higher. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* pxe: more verbose lwIP assertsH. Peter Anvin2011-04-241-1/+1
| | | | | | | | If we're going to bother compiling in the lwIP asserts, then make them a bit more useful in terms of the message delivered. This may be worth tweaking further to make a smaller footprint. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* undiif: Theoretical support for infiniband.Eric W. Biederman2011-04-121-1/+1
| | | | | | | | | | | | Sync up the maximum address length between pxe.h and netif.h and assert if they are different. PXEENV_UNDI_GET_INFORMATION only returns a 16 hardware address field, and infiniband has a 20 byte hardware address so use MAC provided by pxe.c instead which is already set to the proper 20 byte hardware address. Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
* lwip: Allow up to 20 byte hardware address to support infiniband.Eric W. Biederman2011-04-121-1/+1
| | | | | | | | | Infiniband has a positively crazy mapping of ip to it's infiniband form, and that crazy mapping leads to a 20 byte hardware address used for ip (despite really only having a 8 byte hardware address). Infiniband routers such a crazy idea. Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
* lwip: Update the undi driver so it handles (in theory) all network types ↵Eric W. Biederman2011-04-121-0/+1
| | | | | | | | | | | | | | | | | | | supported by undi This involves on transmmit using theundi protocol types and letting the undi layer put on the link level header, On receive this involves using the undi parsing of the link level header and generation of the link level type. This involves cloning etharp into undi.c so we have our own set of arp functions that don't care how long your hardware address is. Using ethernet link layer frames directly removes a number of weird limmitations so I do that by default when I know I am on ethernet but that is not necessary, and a quick hack to change undi_is_ethernet to always return false show that this code works on whatever flavor of network adapter you have. Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
* lwip: Explicitly enable udp,tcp,icmp, and receive timeouts.Eric W. Biederman2011-04-121-0/+4
| | | | | | | | | | | | | | | | | Of the group receive timeouts are the most important as we need those working so that tftp transfers that will actually get back to the tftp code. Icmp is nice so that we can test the latency to the machine running syslinux why syslinux is downloading a file. Allowing us to confirm to test for excessive buffering on the network increasing the round trip times. Plus it is just nice to be able to ping a machine and know it is there. udp and tcp were already implicitly enabled so explicitly enabling them is no big deal. Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
* lwip: Tune memory management for performanceEric W. Biederman2011-04-121-12/+2
| | | | | | | | | In a series of short tests it turns out that lwip's default memory management seems orders' of magnitude better than using syslinux's malloc and it uses much less memory as well. So just use it. Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
* lwip: Rename mem_init lwip_mem_init to remove a namespace conflict.Eric W. Biederman2011-04-121-4/+4
| | | | | | | | There are efficiency problems in the lwip stack related to memory management. Remove the conflict in the name memory_init so I can experiment to see which allocator is better for large file transfers. Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
* lwip: Use byteswap.h to define htons and friendsEric W. Biederman2011-04-121-0/+6
| | | | | | | | Define lwip's byteswapping in terms of byteswap.h This ensures htons(CONSTANT) is seen as a constant by gcc, and it allows us to use unmodified lwip headers. Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
* lwip: fix timestamps, statistics functionsH. Peter Anvin2011-04-122-0/+7
| | | | | | | Add bits needed to support timestamps and stats functions. Signed-off-by: H. Peter Anvin <hpa@zytor.com> Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
* core: lwipopts: additional fine-tuningH. Peter Anvin2011-04-121-2/+8
| | | | | | Fine tune parameters a bit more... Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* lwip: Disable lwip's malloc routinesEric W. Biederman2011-04-121-2/+2
| | | | | | | | lwip's malloc routines conflict with the core malloc and free routine's and Peter's earlier port apparently had acceptable performance without them. Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
* lwip: In mem.h define mem_realloc as static inlineEric W. Biederman2011-04-121-1/+1
| | | | | | | | | | The intent was clearly for the compiler to inline mem_realloc or else the defintion would have been placed in a C file somewhere. gcc complains and since -Werr is set the build fails when the function is just static. So make the function static inline. Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
* Make sure TCP_WND is < 64K-TCP_MSSH. Peter Anvin2011-04-121-1/+1
| | | | | | Avoid an error "len would wrap tcp_wnd" Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* core: lwip: tune parameters for performanceH. Peter Anvin2011-04-121-2/+40
| | | | | | | With these tweaks, we are up from 6 Mbps to over 200 Mbps on a back-to-back gigabit TCP connection. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* lwip: now to the point we can make a TCP connection...H. Peter Anvin2011-04-121-1/+8
| | | | | | | | lwip is now functional enough that TCP and DNS seem to work. More tests still need to be done, though. Signed-off-by: H. Peter Anvin <hpa@zytor.com> Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
* core: pxe: additional work on the lwip portH. Peter Anvin2011-04-121-0/+1
| | | | | | | Additional work on the lwip port. With this code, we can get pretty far before having problems. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* lwip: fix conflict with <netinet/in.h>H. Peter Anvin2011-04-121-3/+1
| | | | | | Fix a conflict with <netinet/in.h>. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* lwip: Enable thread supportEric W. Biederman2011-04-092-4/+73
| | | | | | | Now that all of the syslinux support code has been built for threads enable using that support in lwip. Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
* lwip: Use kaboom.hEric W. Biederman2011-04-091-3/+1
| | | | Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
* lwip: Minimal configuration to get lwip building in syslinuxEric W. Biederman2011-04-084-0/+59
| | | | | | | | | | - Disable all of lwip advanced features - Redeclare kaboom because including core.h causes the artificial namespace conflict on lfree. t lfree is a global sylinux function and lwip static variable. Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
* lwip: Delete the ipv6 support and the tests.Eric W. Biederman2011-04-084-395/+0
| | | | | | | | | | The ipv6 suppport has duplicate symbol names and will cause conflicts if built. Similarly the tests are unneeded and require an unknown about of extra configuration to get the working to no apparent purpose. Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
* lwip: Import lwip version 1.3.2Eric W. Biederman2011-04-0846-0/+9125
Peter's comment on the import of 1.3.1 was: > Import the lwip TCP/IP stack, with the intent to use it instead of > raw PXE calls in PXELINUX. Lots of work to be done here, though. I am taking Peters original mostly working port updating it to the newest syslinux and the most recent stable version of lwip and seeing if I can get a usable mergable version Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>