NOVA User-Level Environment  Version testbox/changed-memory-timing-317-g320d8b5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
IPChecksumState Class Reference

#include <net.h>

Inheritance diagram for IPChecksumState:
IPChecksum

Public Member Functions

void update_l4_header (uint8 const *buf, uint8 proto, unsigned maclen, unsigned iplen, unsigned len)
 Update checksum state with TCP/UDP pseudo header.
void update (uint8 const *buf, size_t len)
void move (uint8 *dst, uint8 const *src, unsigned len)
uint16 value () const
 IPChecksumState ()

Private Attributes

uint32 _state
bool _odd

Additional Inherited Members

Constructor & Destructor Documentation

IPChecksumState::IPChecksumState ( )
inline

Member Function Documentation

void IPChecksumState::move ( uint8 dst,
uint8 const *  src,
unsigned  len 
)
inline
void IPChecksumState::update ( uint8 const *  buf,
size_t  len 
)
inline
void IPChecksumState::update_l4_header ( uint8 const *  buf,
uint8  proto,
unsigned  maclen,
unsigned  iplen,
unsigned  len 
)
inline

Update checksum state with TCP/UDP pseudo header.

proto is 17 for UDP and 6 for TCP.

uint16 IPChecksumState::value ( ) const
inline

Member Data Documentation

bool IPChecksumState::_odd
private
uint32 IPChecksumState::_state
private

The documentation for this class was generated from the following file: