1 #include <l4/ankh/client-c.h>
2 #include <l4/ankh/netboot.h>
3 #include <l4/ankh/session.h>
8 #include <pthread-l4.h>
11 #define GETOPT_LIST_END { 0, 0, 0, 0 }
19 static int bufsize = 1024;
20 static char *shm_name = "";
23 int main(int argc, char **argv)
27 l4_cap_idx_t c = pthread_l4_cap(pthread_self());
29 static struct option long_opts[] = {
30 {"bufsize", 1, 0, BUF_SIZE },
31 {"shm", 1, 0, SHM_NAME },
37 int opt = getopt_long(argc, argv, "b:s:", long_opts, &optind);
38 printf("getopt: %d\n", opt);
45 printf("buf size: %d\n", atoi(optarg));
46 bufsize = atoi(optarg);
49 printf("shm name: %s\n", optarg);
50 shm_name = strdup(optarg);
57 netboot_init(shm_name, bufsize, c, c);
59 print_network_configuration();