summaryrefslogtreecommitdiff
path: root/accel-pppd/utils.h
blob: 87582648eb5834afd0c13991d27c188f904f1865 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#ifndef __UTILS_H
#define __UTILS_H

#include <netinet/in.h>

void u_inet_ntoa(in_addr_t, char *str);
int u_readlong(long int *dst, const char *src, long int min, long int max);
int u_parse_ip4addr(const char *src, struct in_addr *addr,
		    const char **err_msg);
int u_randbuf(void *buf, size_t buf_len, int *err);

#endif