EXTERNAL / PUBLIC. More...
Defines | |
| #define | DESSERT_FRAMEID_MAX ((uint64_t)-1) |
| type for local unique packet identification | |
| #define | DESSERT_OPT_DAEMONIZE 0x0100 |
| flag for dessert_init - daemonize when calling disables logging to STDERR | |
| #define | DESSERT_OPT_NODAEMONIZE 0x0200 |
| flag for dessert_init - do not daemonize when calling | |
| #define | DESSERT_OPT_PID 0x0400 |
| flag for dessert_init - create and write pid file | |
| #define | DESSERT_OPT_NOPID 0x0800 |
| flag for dessert_init - do not create and write pid file | |
Functions | |
| int | dessert_init (const char *proto, int version, uint16_t opts, char *pidfile) |
| Initializes dessert framework and sets up logging. | |
| int | dessert_run (void) |
| main loop - wait until dessert_exit() is called or killed | |
| void | dessert_exit (void) |
| Causes dessert_run() to break out of the main loop. | |
Variables | |
| char | dessert_proto [DESSERT_PROTO_STRLEN+1] |
| protocol string used in dessert_msg frames | |
| u_int8_t | dessert_ver |
| version int used in dessert_msg frames | |
| u_int8_t | dessert_l25_defsrc [ETHER_ADDR_LEN] |
| default src address used for local generated dessert_msg frames | |
| u_char | ether_broadcast [ETHER_ADDR_LEN] |
| constant holding ethernet broadcast address after dessert_init | |
| u_char | ether_null [ETHER_ADDR_LEN] |
| constant holding ethernet null address after dessert_init | |
| pthread_rwlock_t | dessert_cfglock |
| the config funnel | |
EXTERNAL / PUBLIC.
| int dessert_init | ( | const char * | proto, | |
| int | version, | |||
| uint16_t | opts, | |||
| char * | pidfile | |||
| ) |
Initializes dessert framework and sets up logging.
| int dessert_run | ( | void | ) |
main loop - wait until dessert_exit() is called or killed
1.6.2