|
@@ -13,6 +13,7 @@ FILE_LICENCE ( GPL2_OR_LATER );
|
13
|
13
|
#include <ipxe/socket.h>
|
14
|
14
|
#include <ipxe/in.h>
|
15
|
15
|
#include <ipxe/tables.h>
|
|
16
|
+#include <bits/tcpip.h>
|
16
|
17
|
|
17
|
18
|
struct io_buffer;
|
18
|
19
|
struct net_device;
|
|
@@ -121,8 +122,15 @@ extern int tcpip_tx ( struct io_buffer *iobuf, struct tcpip_protocol *tcpip,
|
121
|
122
|
struct sockaddr_tcpip *st_dest,
|
122
|
123
|
struct net_device *netdev,
|
123
|
124
|
uint16_t *trans_csum );
|
124
|
|
-extern uint16_t tcpip_continue_chksum ( uint16_t partial,
|
125
|
|
- const void *data, size_t len );
|
|
125
|
+extern uint16_t generic_tcpip_continue_chksum ( uint16_t partial,
|
|
126
|
+ const void *data, size_t len );
|
126
|
127
|
extern uint16_t tcpip_chksum ( const void *data, size_t len );
|
127
|
128
|
|
|
129
|
+/* Use generic_tcpip_continue_chksum() if no architecture-specific
|
|
130
|
+ * version is available
|
|
131
|
+ */
|
|
132
|
+#ifndef tcpip_continue_chksum
|
|
133
|
+#define tcpip_continue_chksum generic_tcpip_continue_chksum
|
|
134
|
+#endif
|
|
135
|
+
|
128
|
136
|
#endif /* _IPXE_TCPIP_H */
|