Files
hide-eid/pass-1/util.h

20 lines
457 B
C
Raw Normal View History

#ifndef _UTIL_H_
#define _UTIL_H
#include <stdlib.h>
#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 );
#endif