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

IPv4/TCP/UDP checksum calculation. More...

#include <nul/types.h>
#include <service/endian.h>
#include <service/hexdump.h>

Classes

struct  EthernetAddr
class  IPChecksum
class  IPChecksumState

Macros

#define MAC_FMT   "%02x:%02x:%02x:%02x:%02x:%02x"
#define MAC_SPLIT(x)   (x)->byte[0], (x)->byte[1], (x)->byte[2],(x)->byte[3], (x)->byte[4], (x)->byte[5]

Enumerations

enum  { ETHERNET_ADDR_MASK = 0xFFFFFFFFFFFFULL }

Detailed Description

IPv4/TCP/UDP checksum calculation.

Copyright (C) 2010, Julian Stecklina jstec.nosp@m.kli@.nosp@m.os.in.nosp@m.f.tu.nosp@m.-dres.nosp@m.den..nosp@m.de Economic rights: Technische Universitaet Dresden (Germany)

This file is part of Vancouver.

Vancouver is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 as published by the Free Software Foundation.

Vancouver is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License version 2 for more details.

Macro Definition Documentation

#define MAC_FMT   "%02x:%02x:%02x:%02x:%02x:%02x"
#define MAC_SPLIT (   x)    (x)->byte[0], (x)->byte[1], (x)->byte[2],(x)->byte[3], (x)->byte[4], (x)->byte[5]

Enumeration Type Documentation

anonymous enum
Enumerator:
ETHERNET_ADDR_MASK