Callbacks and routing with TTL subtraction;
This commit is contained in:
@@ -18,9 +18,6 @@ typedef struct interface_packet {
|
||||
|
||||
typedef void (*interface_packet_callback_t)(const interface_packet_t* packet, void* userData);
|
||||
|
||||
int Interface_Init(void);
|
||||
void Interface_Cleanup(void);
|
||||
|
||||
interface_v4_t* Interface_Create_v4(const char* localAddress, interface_packet_callback_t callback, void* userData);
|
||||
interface_v6_t* Interface_Create_v6(const char* localAddress, interface_packet_callback_t callback, void* userData);
|
||||
|
||||
|
||||
14
include/forward/route.h
Normal file
14
include/forward/route.h
Normal file
@@ -0,0 +1,14 @@
|
||||
#ifndef ROTUE_H
|
||||
#define ROTUE_H
|
||||
|
||||
#include <forward/if/interface.h>
|
||||
#include <iputils.h>
|
||||
#include <forward/routetable.h>
|
||||
#include <stddef.h>
|
||||
#include <stdint.h>
|
||||
#include <arpa/inet.h>
|
||||
|
||||
void Route_Processv4(const interface_packet_t* packet, void* userData);
|
||||
void Route_Processv6(const interface_packet_t* packet, void* userData);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user