Add username parameter to "show users" command
[l2tpns.git] / util.c
1 /* Misc util functions */
2
3 #include "l2tpns.h"
4
5 #include <sys/socket.h>
6 #include <netinet/in.h>
7 #include <arpa/inet.h>
8 #include <string.h>
9
10 char *inet_toa(unsigned long addr)
11 {
12 struct in_addr in;
13 memcpy(&in, &addr, sizeof(unsigned long));
14 return inet_ntoa(in);
15 }
16