iPXE
tcpip.h
Go to the documentation of this file.
1 #ifndef _BITS_TCPIP_H
2 #define _BITS_TCPIP_H
3 
4 /** @file
5  *
6  * Generic architecture-specific transport-network layer interface
7  *
8  * This file is included only if the architecture does not provide its
9  * own version of this file.
10  *
11  */
12 
13 FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
14 
15 #include <stdint.h>
16 
17 /**
18  * Calculate continued TCP/IP checkum
19  *
20  * @v partial Checksum of already-summed data, in network byte order
21  * @v data Data buffer
22  * @v len Length of data buffer
23  * @ret cksum Updated checksum, in network byte order
24  */
25 static inline __attribute__ (( always_inline )) uint16_t
26 tcpip_continue_chksum ( uint16_t partial, const void *data, size_t len ) {
27 
28  /* Not yet optimised */
29  return generic_tcpip_continue_chksum ( partial, data, len );
30 }
31 
32 #endif /* _BITS_TCPIP_H */
uint16_t tcpip_continue_chksum(uint16_t partial, const void *data, size_t len)
Calculate continued TCP/IP checkum.
Definition: x86_tcpip.c:45
static const void size_t len
Definition: tcpip.h:26
unsigned short uint16_t
Definition: stdint.h:11
uint16_t generic_tcpip_continue_chksum(uint16_t partial, const void *data, size_t len)
Calculate continued TCP/IP checkum.
Definition: tcpip.c:170
static const void * data
Definition: tcpip.h:26
static __attribute__((always_inline)) uint16_t tcpip_continue_chksum(uint16_t partial
Calculate continued TCP/IP checkum.
FILE_LICENCE(GPL2_OR_LATER_OR_UBDL)