mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-27 20:58:22 +00:00
16 lines
352 B
C
16 lines
352 B
C
#ifndef _RAW_H
|
|
#define _RAW_H
|
|
|
|
typedef struct socket socket_t;
|
|
|
|
typedef struct {
|
|
uint16_t netdev; // 1-based index that gets transformed into a minor number
|
|
uint16_t proto;
|
|
uint8_t mac[6];
|
|
} raw_addr_t;
|
|
|
|
void raw_process(netdev_t *netdev, void *buffer, mac_t *sender, uint16_t proto, size_t size);
|
|
socket_t *raw_create_socket(int protocol);
|
|
|
|
#endif
|