Don't warn about unknown subtype attribute
[l2tpns.git] / util.c
1 /* Misc util functions */
2
3 char const *cvs_id_util = "$Id: util.c,v 1.2 2004/06/28 02:43:13 fred_nerk Exp $";
4
5 #include "l2tpns.h"
6
7 #include <sys/socket.h>
8 #include <netinet/in.h>
9 #include <arpa/inet.h>
10 #include <string.h>
11
12 char *inet_toa(unsigned long addr)
13 {
14 struct in_addr in;
15 memcpy(&in, &addr, sizeof(unsigned long));
16 return inet_ntoa(in);
17 }
18