version 1.1.1.1, 2022/06/22 13:01:55
|
version 1.3, 2022/07/04 13:29:10
|
Line 11 static intptr_t fwsync_wchan;
|
Line 11 static intptr_t fwsync_wchan;
|
static void |
static void |
fwsync_edge_proc(void *arg) |
fwsync_edge_proc(void *arg) |
{ |
{ |
int e, rcvflg; | int e, rcvflg = 0; |
struct uio uio; |
struct uio uio; |
struct mbuf *m = NULL; |
struct mbuf *m = NULL; |
|
struct fws_proto *pkt; |
|
|
DTRACE(); |
DTRACE(); |
|
|
Line 34 fwsync_edge_proc(void *arg)
|
Line 35 fwsync_edge_proc(void *arg)
|
tsleep(&fwsync_wchan, 0, "edge_handler", hz); |
tsleep(&fwsync_wchan, 0, "edge_handler", hz); |
continue; |
continue; |
} |
} |
|
pkt = mtod(m, struct fws_proto*); |
|
if (m_length(m, NULL) != sizeof(struct fws_proto)) { |
|
printf("FWSync packet length=%d isn't match expected %lu\n", |
|
m_length(m, NULL), sizeof(struct fws_proto)); |
|
continue; |
|
} |
|
|
printf("%u...-> %s\n", m->m_len, m->m_data); | printf("%u...-> %s version=%c\n", m->m_len, m->m_data, pkt->fws_version); |
} |
} |
fws_ctx.config &= ~CTX_EDGE_ONLINE; |
fws_ctx.config &= ~CTX_EDGE_ONLINE; |
|
|
Line 285 fwsync_start(struct ip_fw_chain *ch, ip_fw3_opheader *
|
Line 292 fwsync_start(struct ip_fw_chain *ch, ip_fw3_opheader *
|
fws_ctx.config |= CTX_COLLECTOR_2_ONLINE; |
fws_ctx.config |= CTX_COLLECTOR_2_ONLINE; |
} |
} |
|
|
/* at last but not at least, activate config status of started sync service */ |
|
fws_cfg.cfg.on |= *n; |
|
return 0; |
return 0; |
} |
} |
|
|
Line 328 fwsync_stop(struct ip_fw_chain *ch, ip_fw3_opheader *o
|
Line 333 fwsync_stop(struct ip_fw_chain *ch, ip_fw3_opheader *o
|
ipfw_unregister_alias_hook(); |
ipfw_unregister_alias_hook(); |
} |
} |
|
|
/* at last but not at least, stop sync service */ |
|
fws_cfg.cfg.on &= ~*n; |
|
return 0; |
return 0; |
} |
} |