24#include <seastar/net/packet.hh>
25#include <seastar/util/modules.hh>
36uint16_t ip_checksum(
const void* data,
size_t len);
41 void sum(
const char* data,
size_t len);
43 void sum(uint8_t data) {
51 void sum(uint16_t data) {
53 sum(uint8_t(data >> 8));
59 void sum(uint32_t data) {
62 sum(uint16_t(data >> 16));
68 template <
typename T0,
typename... T>
69 void sum_many(T0 data, T... rest) {
Seastar API namespace.
Definition: abort_on_ebadf.hh:26
Definition: ip_checksum.hh:38