20 #ifndef MACHINE_NETWORK_H 21 #define MACHINE_NETWORK_H 23 #include "pedigree/kernel/compiler.h" 24 #include "pedigree/kernel/machine/Device.h" 25 #include "pedigree/kernel/network/IpAddress.h" 26 #include "pedigree/kernel/network/MacAddress.h" 27 #include "pedigree/kernel/processor/types.h" 44 size_t nIpv6Addresses;
82 virtual bool send(
size_t nBytes, uintptr_t buffer) = 0;
86 virtual bool setStationInfo(
const StationInfo &info);
92 virtual bool isConnected();
96 convertToIpv4(uint8_t a, uint8_t b, uint8_t c, uint8_t d);
100 uint8_t a, uint8_t b = 0, uint8_t c = 0, uint8_t d = 0, uint8_t e = 0,
101 uint8_t f = 0, uint8_t g = 0, uint8_t h = 0, uint8_t i = 0,
102 uint8_t j = 0, uint8_t k = 0, uint8_t l = 0, uint8_t m = 0,
103 uint8_t n = 0, uint8_t o = 0, uint8_t p = 0);
107 calculateChecksum(uintptr_t buffer,
size_t nBytes);
111 virtual void gotPacket();
116 virtual void droppedPacket();
120 virtual void badPacket();
virtual void dump(String &str)
virtual void getName(String &str)
size_t nBad
Number of packets dropped by the filter.
IpAddress gateway
Automatically calculated?
size_t nDnsServers
Can contain IPv6 addresses.
size_t nDropped
Number of packets passed through the interface.