mirror of
https://github.com/ipxe/ipxe
synced 2025-12-20 12:00:19 +03:00
Split ipv6 functions out from ipv4.c
This commit is contained in:
@@ -318,16 +318,6 @@ int ipv4_tx ( struct pk_buff *pkb, uint16_t trans_proto, struct in_addr *dest )
|
|||||||
return rc;
|
return rc;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* 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
|
* Process incoming IP packets
|
||||||
*
|
*
|
||||||
@@ -363,14 +353,6 @@ static int ipv4_uip_rx ( struct pk_buff *pkb,
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* 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)
|
* Process incoming packets (without uIP)
|
||||||
*
|
*
|
||||||
|
|||||||
24
src/net/ipv6.c
Normal file
24
src/net/ipv6.c
Normal file
@@ -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 ) {
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user