summaryrefslogtreecommitdiffstats
path: root/src/net/tcpip.c
Commit message (Collapse)AuthorAgeFilesLines
* pkbuff->iobuf changeoverMichael Brown2007-05-191-9/+9
| | | | | | | | Achieved via Perl using: perl -pi -e 's/pk_buff/io_buffer/g; s/Packet buffer/I\/O buffer/ig; ' \ -e 's/pkbuff\.h/iobuf.h/g; s/pkb_/iob_/g; s/_pkb/_iob/g; ' \ -e 's/pkb/iobuf/g; s/PKB/IOB/g;'
* When a network device is specified to tcpip_tx() or it's children, treatMichael Brown2007-01-161-1/+1
| | | | | | | it as a fallback network device rather than an explicitly forced network device. Clear routing table entries before re-attempting DHCP.
* Add "name" field to struct device to allow human-readable hardware deviceMichael Brown2007-01-101-8/+8
| | | | | | | | | | | names. Add "dev" pointer in struct net_device to tie network interfaces back to a hardware device. Force natural alignment of data types in __table() macros. This seems to prevent gcc from taking the unilateral decision to occasionally increase their alignment (which screws up the table packing).
* Allow an explicit network device to be specified for IP-layerMichael Brown2007-01-101-2/+4
| | | | transmissions.
* Verify checksums on the RX datapath.Michael Brown2007-01-031-9/+13
| | | | Simplify checksum generation on the TX datapath.
* We don't actually have a stdio.h header file. Our printf() functions areMichael Brown2006-09-271-1/+0Star
| | | | | | | | defined in vsprintf.h. (This may change, since vsprintf.h is a non-standard name, but for now it's the one to use.) There should be no need to include vsprintf.h just for DBG() statements, since include/compiler.h forces it in for a debug build anyway.
* added stdio.h to includes for DBG compilationMarty Connor2006-09-271-0/+1
|
* Clarified packet ownership transfer between a few functions.Michael Brown2006-08-091-0/+2
| | | | | | | | | | | | | Added a large number of missing calls to free_pkb(). In the case of UDP, no received packets were ever freed, which lead to memory exhaustion remarkably quickly once pxelinux started up. In general, any function with _rx() in its name which accepts a pk_buff *must* either call free_pkb() or pass the pkb to another _rx() function (e.g. the next layer up the stack). Since the UDP (and TCP) layers don't pass packet buffers up to the higher-layer protocols (the "applications"), they must free the packet buffer after calling the application's newdata() method.
* Added features that will be required for PXE UDP support.Michael Brown2006-08-021-55/+47Star
| | | | | | | Introduced struct sockaddr_tcpip, to simplify code that deals with both IPv4 and IPv6 addresses. Reorganised parts of tcpip.c and udp.c.
* Minor changes to the network layer rx() functionsNikhil Chandru Rao2006-08-011-3/+24
|
* Remove unused functions.Michael Brown2006-08-011-36/+0Star
|
* Renamed trans_{rx,tx}() to tcpip_{rx,tx}(), since they are specific toMichael Brown2006-08-011-2/+2
| | | | | the TCP/IP protocol suite (rather than being general transport-layer functions).
* Renamed tcpip_if.[ch] to tcpip.[ch]Michael Brown2006-08-011-0/+160