00001 /* 00002 * mod.h 00003 * 00004 * Copyright (c) 2002 Dug Song <dugsong@monkey.org> 00005 * 00006 * $Id: mod.h,v 1.2 2002/03/29 06:07:27 dugsong Exp $ 00007 */ 00008 00009 #ifndef MOD_H 00010 #define MOD_H 00011 00012 struct mod { 00013 char *name; 00014 int type; 00015 int (*main)(int argc, char *argv[]); 00016 }; 00017 00018 /* 00019 * Module types 00020 */ 00021 #define MOD_TYPE_DATA 0x01 /* generate data */ 00022 #define MOD_TYPE_ENCAP 0x02 /* encapsulate data */ 00023 #define MOD_TYPE_XMIT 0x04 /* send datagrams */ 00024 #define MOD_TYPE_KERN 0x08 /* kernel network info */ 00025 00026 #endif /* MOD_H */