Usermode/AxWin4 - Tweak handling of AcessNative (doesn't have SHM and mmap)
[tpg/acess2.git] / Usermode / Applications / ip_src / common.h
1 /*
2  * Acess2 ip command
3  * - By John Hodge (thePowersGang)
4  * 
5  * common.h
6  * - Shared header
7  */
8 #ifndef _COMMON_H_
9 #define _COMMON_H_
10
11 #include <stdlib.h>
12 #include <stdio.h>
13 #include <stdint.h>
14 #include <string.h>
15 #include <net.h>
16 #include <acess/sys.h>
17
18 #define FILENAME_MAX    255
19 #define IPSTACK_ROOT    "/Devices/ip"
20
21 #define ntohs(v)        (((v&0xFF)<<8)|((v>>8)&0xFF))
22
23 extern void     PrintUsage(const char *ProgName);
24 extern int      ParseIPAddress(const char *Address, uint8_t *Dest, int *SubnetBits);
25 extern int      Addr_main(int argc, char *argv[]);
26 extern int      Routes_main(int argc, char *argv[]);
27
28 #endif
29

UCC git Repository :: git.ucc.asn.au