summaryrefslogtreecommitdiff
path: root/accel-pppd/utils.c
blob: e45025f0302e43c1c1341d545ecd621ce69d1db8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#include <stdio.h>

#include "triton.h"
#include "utils.h"

#include "memdebug.h"

void __export u_inet_ntoa(in_addr_t addr, char *str)
{
	addr = ntohl(addr);
	sprintf(str, "%i.%i.%i.%i", (addr >> 24) & 0xff, (addr >> 16) & 0xff, (addr >> 8) & 0xff, addr & 0xff);
}