summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Brown2006-06-26 17:33:46 +0200
committerMichael Brown2006-06-26 17:33:46 +0200
commite517a4771b4ef95de6564084385dc6936da1f468 (patch)
treebd379bd65e7abd4d00033395ad4ca341152ff697
parentWhitespace fixes (diff)
downloadipxe-e517a4771b4ef95de6564084385dc6936da1f468.tar.gz
ipxe-e517a4771b4ef95de6564084385dc6936da1f468.tar.xz
ipxe-e517a4771b4ef95de6564084385dc6936da1f468.zip
Split ipv6 functions out from ipv4.c
-rw-r--r--src/net/ipv4.c18
-rw-r--r--src/net/ipv6.c24
2 files changed, 24 insertions, 18 deletions
diff --git a/src/net/ipv4.c b/src/net/ipv4.c
index 32510b582..027d141bd 100644
--- a/src/net/ipv4.c
+++ b/src/net/ipv4.c
@@ -319,16 +319,6 @@ int ipv4_tx ( struct pk_buff *pkb, uint16_t trans_proto, struct in_addr *dest )
}
/**
- * Transmit IP6 packets
- *
- * Placeholder to allow linking. The function should be placed in net/ipv6.c
- */
-int ipv6_tx ( struct pk_buff *pkb __unused, uint16_t trans_proto __unused, struct in6_addr *dest __unused) {
- return -ENOSYS;
-}
-
-
-/**
* Process incoming IP packets
*
* @v pkb Packet buffer
@@ -364,14 +354,6 @@ static int ipv4_uip_rx ( struct pk_buff *pkb,
}
/**
- * Process incoming IP6 packets
- *
- * 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 ) {
-}
-
-/**
* Process incoming packets (without uIP)
*
* @v pkb Packet buffer
diff --git a/src/net/ipv6.c b/src/net/ipv6.c
new file mode 100644
index 000000000..e726bda77
--- /dev/null
+++ b/src/net/ipv6.c
@@ -0,0 +1,24 @@
+#include <errno.h>
+#include <gpxe/pkbuff.h>
+#include <gpxe/netdevice.h>
+#include <gpxe/in.h>
+
+/**
+ * Transmit IP6 packets
+ *
+ * Placeholder to allow linking. The function should be placed in net/ipv6.c
+ */
+int ipv6_tx ( struct pk_buff *pkb __unused, uint16_t trans_proto __unused,
+ struct in6_addr *dest __unused) {
+ return -ENOSYS;
+}
+
+/**
+ * Process incoming IP6 packets
+ *
+ * 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 ) {
+}