Initial revision

This commit is contained in:
David Parrish 2003-12-16 07:07:39 +00:00
commit c5e4c2cfc0
42 changed files with 16139 additions and 0 deletions

16
util.c Normal file
View file

@ -0,0 +1,16 @@
/* Misc util functions */
#include "l2tpns.h"
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <string.h>
char *inet_toa(unsigned long addr)
{
struct in_addr in;
memcpy(&in, &addr, sizeof(unsigned long));
return inet_ntoa(in);
}