Michael Brown
d230b53df2
[tcpip] Allow for transmission to multicast IPv4 addresses
When sending to a multicast address, it may be necessary to specify
the source address explicitly, since the multicast destination address
does not provide enough information to deduce the source address via
the miniroute table.
Allow the source address specified via the data-xfer metadata to be
passed down through the TCP/IP stack to the IPv4 layer, which can use
it as a default source address.
16 vuotta sitten
Michael Brown
df868476e7
Various warnings fixups for OpenBSD with gcc-3.3.5.
17 vuotta sitten
Holger Lubitz
bc9f960b66
use malloc attribute
17 vuotta sitten
Holger Lubitz
fdd5fbe3ae
fix gcc 4.2.1 warning: initialized field overwritten
17 vuotta sitten
Marty Connor
c77704cb60
Warnings purge: src/{crypto,hci,net}
17 vuotta sitten
Michael Brown
f77815f2b1
Kill off hotplug.h and just make net devices normal reference-counted
structures.
DHCP still broken and #if 0'd out.
17 vuotta sitten
Michael Brown
3e2c6b6736
pkbuff->iobuf changeover
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;'
17 vuotta sitten
Michael Brown
73b09ecba6
Use stdio.h instead of vsprintf.h
18 vuotta sitten
Michael Brown
5ff23aa406
Include stdlib.h rather than malloc.h
18 vuotta sitten
Michael Brown
c953c1a1c3
Use -ENETUNREACH to mean "no reachable network device exists, don't bother
retrying".
18 vuotta sitten
Michael Brown
f008b77ba2
Allow an explicit network device to be specified for IP-layer
transmissions.
18 vuotta sitten
Michael Brown
b29861a5aa
IPv6 minirouting table entries hold persistent references to net devices.
18 vuotta sitten
Michael Brown
a0525a4ed3
Verify checksums on the RX datapath.
Simplify checksum generation on the TX datapath.
18 vuotta sitten
Nikhil Chandru Rao
d1d334b8e1
IP6 support
18 vuotta sitten
Marty Connor
ee9ae8130a
Remove _PROTOCOL macros for gcc 3.2 compatibility
18 vuotta sitten
Michael Brown
467e9627cc
Added features that will be required for PXE UDP support.
Introduced struct sockaddr_tcpip, to simplify code that deals with
both IPv4 and IPv6 addresses.
Reorganised parts of tcpip.c and udp.c.
18 vuotta sitten
Nikhil Chandru Rao
c24546c70b
Minor changes to the network layer rx() functions
18 vuotta sitten
Michael Brown
e517a4771b
Split ipv6 functions out from ipv4.c
18 vuotta sitten