MCPcopy Create free account
hub / github.com/LemonOSProject/LemonOS / NetworkAdapter

Method NetworkAdapter

Kernel/src/net/networkadapter.cpp:27–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25 }
26
27 NetworkAdapter::NetworkAdapter() : Device(TypeNetworkAdapterDevice) {
28 flags = FS_NODE_CHARDEVICE;
29
30 char buf[16];
31 strcpy(buf, "eth");
32 itoa(nextDeviceNumber++, buf + 3, 10);
33
34 SetName(buf);
35 }
36
37 void NetworkAdapter::SendPacket(void* data, size_t len){
38 assert(!"NetworkAdapter: Base class SendPacket has been called");

Callers

nothing calls this directly

Calls 2

strcpyFunction · 0.85
itoaFunction · 0.50

Tested by

no test coverage detected