summaryrefslogtreecommitdiffstats
path: root/src/net/ipv6.c
diff options
context:
space:
mode:
authorMichael Brown2006-08-02 02:02:21 +0200
committerMichael Brown2006-08-02 02:02:21 +0200
commit467e9627ccf0a46c7f077795f0aecff14858718e (patch)
tree2dfc5dac2c62f611b1d845574b2f4fada5ed3be9 /src/net/ipv6.c
parentTCP support (diff)
downloadipxe-467e9627ccf0a46c7f077795f0aecff14858718e.tar.gz
ipxe-467e9627ccf0a46c7f077795f0aecff14858718e.tar.xz
ipxe-467e9627ccf0a46c7f077795f0aecff14858718e.zip
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.c19
1 files changed, 8 insertions, 11 deletions
diff --git a/src/net/ipv6.c b/src/net/ipv6.c
index 9825a61a..a38ec211 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 );