mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-27 12:48:22 +00:00
local sockets: initial implementation
This commit is contained in:
@@ -58,13 +58,6 @@ typedef struct {
|
||||
uint32_t addr;
|
||||
} ipv4addr_t;
|
||||
|
||||
typedef struct {
|
||||
union {
|
||||
ipv4addr_t ipv4addr;
|
||||
char unaddr[256];
|
||||
};
|
||||
} sockaddr_t;
|
||||
|
||||
#define NET_BROADCAST_MAC (mac_t){.address = {0xff,0xff,0xff,0xff,0xff,0xff}}
|
||||
|
||||
#define MAC_EQUAL(m1,m2) (memcmp(m1, m2, sizeof(mac_t)) == 0)
|
||||
|
||||
Reference in New Issue
Block a user