Reorganise so we have wrapper, unwraper and hide-eid.
unwrapper and hide-eid don't work yet, of course.
This commit is contained in:
@@ -5,16 +5,26 @@
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
#include <netinet/ip.h>
|
||||
|
||||
#define info(msg, ...) { fprintf( stdout, msg, ##__VA_ARGS__ ) ; fprintf( stdout, "\n" ); }
|
||||
#define warn(msg, ...) { fprintf( stderr, msg, ##__VA_ARGS__ ) ; fprintf( stderr, "\n" ); }
|
||||
|
||||
#define IPPROTO_HIDE_EID 0xfd
|
||||
|
||||
void* xmalloc( size_t bytes );
|
||||
int create_tun( const char* name );
|
||||
|
||||
int link_set_up( char *link_name, int state );
|
||||
|
||||
/* Our programs use this common struct to take advantage of common init code */
|
||||
struct session {
|
||||
struct rlocs *rlocs;
|
||||
int listen_if;
|
||||
int output_if;
|
||||
int same_if;
|
||||
};
|
||||
|
||||
int session_setup( struct session *session, char *config_file, char *listen_if, char *output_if );
|
||||
void session_teardown( struct session *session );
|
||||
|
||||
|
||||
|
||||
#endif
|
Reference in New Issue
Block a user