2010-06-03 22:46:59 +00:00
|
|
|
/* this header file comes from libowfat, http://www.fefe.de/libowfat/ */
|
2001-02-05 21:55:25 +00:00
|
|
|
#ifndef IP4_H
|
|
|
|
#define IP4_H
|
|
|
|
|
2012-02-07 17:02:40 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2003-09-06 23:49:47 +00:00
|
|
|
unsigned int scan_ip4(const char *src,char *ip);
|
|
|
|
unsigned int fmt_ip4(char *dest,const char *ip);
|
2001-02-05 22:03:11 +00:00
|
|
|
|
|
|
|
/* for djb backwards compatibility */
|
|
|
|
#define ip4_scan scan_ip4
|
|
|
|
#define ip4_fmt fmt_ip4
|
2001-02-05 21:55:25 +00:00
|
|
|
|
|
|
|
#define IP4_FMT 20
|
2005-08-12 10:10:42 +00:00
|
|
|
#define FMT_IP4 20
|
2001-02-05 21:55:25 +00:00
|
|
|
|
2001-02-05 22:03:11 +00:00
|
|
|
extern const char ip4loopback[4]; /* = {127,0,0,1};*/
|
|
|
|
|
2012-02-07 17:02:40 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2001-02-05 21:55:25 +00:00
|
|
|
#endif
|