mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-27 12:48:22 +00:00
raw: raw sockets
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
#ifndef _RAW_H
|
||||
#define _RAW_H
|
||||
|
||||
void raw_process(netdev_t *netdev, void *buffer, uint32_t peer);
|
||||
socket_t *raw_create_socket(void);
|
||||
|
||||
#endif
|
||||
@@ -92,6 +92,7 @@ typedef struct {
|
||||
#define SOCKET_TYPE_LOCAL 1
|
||||
#define SOCKET_TYPE_TCP 2
|
||||
#define SOCKET_TYPE_LOCAL_SEQPACKET 3
|
||||
#define SOCKET_TYPE_RAW_STRIPPED 4
|
||||
#define SOCKFS_SOCKET_FROM_NODE(nodep) (((socketnode_t *)(nodep))->socket)
|
||||
|
||||
static inline int sockfd_get(int fd, vnode_t **vnodep, int *fileflags) {
|
||||
|
||||
Reference in New Issue
Block a user