Magellan Linux

Contents of /trunk/mkinitrd-magellan/klibc/usr/kinit/ipconfig/ipconfig.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 532 - (show annotations) (download)
Sat Sep 1 22:45:15 2007 UTC (16 years, 8 months ago) by niro
File MIME type: text/plain
File size: 714 byte(s)
-import if magellan mkinitrd; it is a fork of redhats mkinitrd-5.0.8 with all magellan patches and features; deprecates magellan-src/mkinitrd

1 #ifndef IPCONFIG_IPCONFIG_H
2 #define IPCONFIG_IPCONFIG_H
3
4 #include <stdint.h>
5 #include <sys/types.h>
6
7 #define LOCAL_PORT 68
8 #define REMOTE_PORT (LOCAL_PORT - 1)
9
10 extern uint16_t cfg_local_port;
11 extern uint16_t cfg_remote_port;
12
13 extern char vendor_class_identifier[];
14 extern int vendor_class_identifier_len;
15
16 int ipconfig_main(int argc, char *argv[]);
17 uint32_t ipconfig_server_address(void *next);
18
19 /*
20 * Note for gcc 3.2.2:
21 *
22 * If you're turning on debugging, make sure you get rid of -Os from
23 * the gcc command line, or else ipconfig will fail to link.
24 */
25 #undef IPC_DEBUG
26
27 #undef DEBUG
28 #ifdef IPC_DEBUG
29 #define DEBUG(x) printf x
30 #else
31 #define DEBUG(x) do { } while(0)
32 #endif
33
34 #endif /* IPCONFIG_IPCONFIG_H */