diff options
Diffstat (limited to 'accel-pppd/utils.c')
-rw-r--r-- | accel-pppd/utils.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/accel-pppd/utils.c b/accel-pppd/utils.c new file mode 100644 index 0000000..491e650 --- /dev/null +++ b/accel-pppd/utils.c @@ -0,0 +1,11 @@ +#include <stdio.h> + +#include "triton.h" +#include "utils.h" + +#include "memdebug.h" + +void __export u_inet_ntoa(in_addr_t addr, char *str) +{ + sprintf(str, "%i.%i.%i.%i", addr & 0xff, (addr >> 8) & 0xff, (addr >> 16) & 0xff, (addr >> 24) & 0xff); +} |