#include <stdio.h>#include <stdlib.h>#include <fd.h>#include <tcp.h>#include <unistd.h>#include <config.h>#include <string.h>#include <getopt.h>#include <errno.h>#include "init.h"#include "logging.h"#include "msg_buff.h"#include "proto.h"#include "mnl.h"
Macros | |
| #define | NFT_SYNC_CONF_DEFAULT "/etc/nft-sync.conf" |
Functions | |
| int | main (int argc, char *argv[]) |
Variables | |
| struct nft_sync_inst | nfts_inst |
| int main | ( | int | argc, |
| char * | argv[] | ||
| ) |
References tcp_conf::client, nft_sync_inst::cmd, tcp_conf::inet_addr, tcp_conf::ipv4, nft_sync_inst::mode, NFT_SYNC_CONF_DEFAULT, nft_sync_config_parse(), nft_sync_event_fini(), nft_sync_event_init(), nft_sync_event_loop(), nft_sync_log_fini(), nft_sync_log_init(), NFTS_CMD_FETCH, nfts_inst, nfts_log, NFTS_LOG_FATAL, NFTS_LOG_INFO, NFTS_MODE_CLIENT, NFTS_MODE_SERVER, nfts_socket_close(), nfts_socket_open(), NULL, tcp_conf::server, nft_sync_inst::tcp, tcp_client_start(), and tcp_server_start().

| struct nft_sync_inst nfts_inst |
Referenced by main(), nft_sync_event_loop(), and tcp_server_start().