diff options
author | Michael Brown <mcb30@etherboot.org> | 2006-08-02 00:02:21 +0000 |
---|---|---|
committer | Michael Brown <mcb30@etherboot.org> | 2006-08-02 00:02:21 +0000 |
commit | 467e9627ccf0a46c7f077795f0aecff14858718e (patch) | |
tree | 2dfc5dac2c62f611b1d845574b2f4fada5ed3be9 /src/net/ipv6.c | |
parent | 9225f4edac609552717f77742ce4be174174e3b8 (diff) | |
download | ipxe-467e9627ccf0a46c7f077795f0aecff14858718e.zip ipxe-467e9627ccf0a46c7f077795f0aecff14858718e.tar.gz ipxe-467e9627ccf0a46c7f077795f0aecff14858718e.tar.bz2 |
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.
Diffstat (limited to 'src/net/ipv6.c')
-rw-r--r-- | src/net/ipv6.c | 19 |
1 files changed, 8 insertions, 11 deletions
diff --git a/src/net/ipv6.c b/src/net/ipv6.c index 9825a61..a38ec21 100644 --- a/src/net/ipv6.c +++ b/src/net/ipv6.c @@ -12,8 +12,9 @@ /** * Transmit IP6 packets */ -int ipv6_tx ( struct pk_buff *pkb __unused, uint16_t trans_proto __unused, - struct in6_addr *dest __unused) { +static int ipv6_tx ( struct pk_buff *pkb, + struct tcpip_protocol *tcpip_protocol, + struct sockaddr_tcpip *st_dest ) { return -ENOSYS; } @@ -22,13 +23,10 @@ int ipv6_tx ( struct pk_buff *pkb __unused, uint16_t trans_proto __unused, * * Placeholder function. Should rewrite in net/ipv6.c */ -void ipv6_rx ( struct pk_buff *pkb __unused, - struct net_device *netdev __unused, - const void *ll_source __unused ) { -} - -void ipv6_tx_csum ( struct pk_buff *pkb, struct tcpip_protocol *tcpip ) { - return; +static int ipv6_rx ( struct pk_buff *pkb __unused, + struct net_device *netdev __unused, + const void *ll_source __unused ) { + return -ENOSYS; } static const char * ipv6_ntoa ( const void *net_addr ) { @@ -49,10 +47,9 @@ NET_PROTOCOL ( ipv6_protocol ); /** IPv6 TCPIP net protocol */ struct tcpip_net_protocol ipv6_tcpip_protocol = { - .net_protocol = &ipv6_protocol, + .name = "IPv6", .sa_family = AF_INET6, .tx = ipv6_tx, - .tx_csum = ipv6_tx_csum, }; TCPIP_NET_PROTOCOL ( ipv6_tcpip_protocol ); |