📄 ftswap.c
字号:
SWAPINT16(rec->srcport); SWAPINT16(rec->dstport);}/* * function: fts3rec_swap_v5 * * Swap bytes in a fts3rec_v5 struct **/void fts3rec_swap_v5(struct fts3rec_v5 *rec){ SWAPINT32(rec->unix_secs); SWAPINT32(rec->unix_nsecs); SWAPINT32(rec->sysUpTime); SWAPINT32(rec->exaddr); SWAPINT32(rec->srcaddr); SWAPINT32(rec->dstaddr); SWAPINT32(rec->nexthop); SWAPINT16(rec->input); SWAPINT16(rec->output); SWAPINT32(rec->dPkts); SWAPINT32(rec->dOctets); SWAPINT32(rec->First); SWAPINT32(rec->Last); SWAPINT16(rec->srcport); SWAPINT16(rec->dstport); SWAPINT16(rec->src_as); SWAPINT16(rec->dst_as);}/* * function: fts3rec_swap_v6 * * Swap bytes in a fts3rec_v6 struct **/void fts3rec_swap_v6(struct fts3rec_v6 *rec){ SWAPINT32(rec->unix_secs); SWAPINT32(rec->unix_nsecs); SWAPINT32(rec->sysUpTime); SWAPINT32(rec->exaddr); SWAPINT32(rec->srcaddr); SWAPINT32(rec->dstaddr); SWAPINT32(rec->nexthop); SWAPINT16(rec->input); SWAPINT16(rec->output); SWAPINT32(rec->dPkts); SWAPINT32(rec->dOctets); SWAPINT32(rec->First); SWAPINT32(rec->Last); SWAPINT16(rec->srcport); SWAPINT16(rec->dstport); SWAPINT16(rec->src_as); SWAPINT16(rec->dst_as); SWAPINT32(rec->peer_nexthop);}/* * function: fts3rec_swap_v7 * * Swap bytes in a fts3rec_v7 struct **/void fts3rec_swap_v7(struct fts3rec_v7 *rec){ SWAPINT32(rec->unix_secs); SWAPINT32(rec->unix_nsecs); SWAPINT32(rec->sysUpTime); SWAPINT32(rec->exaddr); SWAPINT32(rec->srcaddr); SWAPINT32(rec->dstaddr); SWAPINT32(rec->nexthop); SWAPINT16(rec->input); SWAPINT16(rec->output); SWAPINT32(rec->dPkts); SWAPINT32(rec->dOctets); SWAPINT32(rec->First); SWAPINT32(rec->Last); SWAPINT16(rec->srcport); SWAPINT16(rec->dstport); SWAPINT16(rec->src_as); SWAPINT16(rec->dst_as); SWAPINT32(rec->router_sc);}/* * function: fts3rec_swap_v8_1 * * Swap bytes in a fts3rec_v8_1 struct **/void fts3rec_swap_v8_1(struct fts3rec_v8_1 *rec){ SWAPINT32(rec->unix_secs); SWAPINT32(rec->unix_nsecs); SWAPINT32(rec->sysUpTime); SWAPINT32(rec->exaddr); SWAPINT32(rec->dFlows); SWAPINT32(rec->dPkts); SWAPINT32(rec->dOctets); SWAPINT32(rec->First); SWAPINT32(rec->Last); SWAPINT16(rec->src_as); SWAPINT16(rec->dst_as); SWAPINT16(rec->input); SWAPINT16(rec->output);}/* * function: fts3rec_swap_v8_2 * * Swap bytes in a fts3rec_v8_2 struct **/void fts3rec_swap_v8_2(struct fts3rec_v8_2 *rec){ SWAPINT32(rec->unix_secs); SWAPINT32(rec->unix_nsecs); SWAPINT32(rec->sysUpTime); SWAPINT32(rec->exaddr); SWAPINT32(rec->dFlows); SWAPINT32(rec->dPkts); SWAPINT32(rec->dOctets); SWAPINT32(rec->First); SWAPINT32(rec->Last); SWAPINT16(rec->srcport); SWAPINT16(rec->dstport);}/* * function: fts3rec_swap_v8_3 * * Swap bytes in a fts3rec_v8_3 struct **/void fts3rec_swap_v8_3(struct fts3rec_v8_3 *rec){ SWAPINT32(rec->unix_secs); SWAPINT32(rec->unix_nsecs); SWAPINT32(rec->sysUpTime); SWAPINT32(rec->exaddr); SWAPINT32(rec->dFlows); SWAPINT32(rec->dPkts); SWAPINT32(rec->dOctets); SWAPINT32(rec->First); SWAPINT32(rec->Last); SWAPINT32(rec->srcaddr); SWAPINT16(rec->src_as); SWAPINT16(rec->input);}/* * function: fts3rec_swap_v8_4 * * Swap bytes in a fts3rec_v8_4 struct **/void fts3rec_swap_v8_4(struct fts3rec_v8_4 *rec){ SWAPINT32(rec->unix_secs); SWAPINT32(rec->unix_nsecs); SWAPINT32(rec->sysUpTime); SWAPINT32(rec->exaddr); SWAPINT32(rec->dFlows); SWAPINT32(rec->dPkts); SWAPINT32(rec->dOctets); SWAPINT32(rec->First); SWAPINT32(rec->Last); SWAPINT32(rec->dstaddr); SWAPINT16(rec->dst_as); SWAPINT16(rec->output);}/* * function: fts3rec_swap_v8_5 * * Swap bytes in a fts3rec_v8_5 struct **/void fts3rec_swap_v8_5(struct fts3rec_v8_5 *rec){ SWAPINT32(rec->unix_secs); SWAPINT32(rec->unix_nsecs); SWAPINT32(rec->sysUpTime); SWAPINT32(rec->exaddr); SWAPINT32(rec->dFlows); SWAPINT32(rec->dPkts); SWAPINT32(rec->dOctets); SWAPINT32(rec->First); SWAPINT32(rec->Last); SWAPINT32(rec->srcaddr); SWAPINT32(rec->dstaddr); SWAPINT16(rec->src_as); SWAPINT16(rec->dst_as); SWAPINT16(rec->input); SWAPINT16(rec->output);}/* * function: fts3rec_swap_v8_6 * * Swap bytes in a fts3rec_v8_6 struct **/void fts3rec_swap_v8_6(struct fts3rec_v8_6 *rec){ SWAPINT32(rec->unix_secs); SWAPINT32(rec->unix_nsecs); SWAPINT32(rec->sysUpTime); SWAPINT32(rec->exaddr); SWAPINT32(rec->dPkts); SWAPINT32(rec->dOctets); SWAPINT32(rec->First); SWAPINT32(rec->Last); SWAPINT32(rec->dstaddr); SWAPINT32(rec->extra_pkts); SWAPINT32(rec->router_sc); SWAPINT16(rec->output);}/* * function: fts3rec_swap_v8_7 * * Swap bytes in a fts3rec_v8_7 struct **/void fts3rec_swap_v8_7(struct fts3rec_v8_7 *rec){ SWAPINT32(rec->unix_secs); SWAPINT32(rec->unix_nsecs); SWAPINT32(rec->sysUpTime); SWAPINT32(rec->exaddr); SWAPINT32(rec->dPkts); SWAPINT32(rec->dOctets); SWAPINT32(rec->First); SWAPINT32(rec->Last); SWAPINT32(rec->dstaddr); SWAPINT32(rec->srcaddr); SWAPINT32(rec->extra_pkts); SWAPINT32(rec->router_sc); SWAPINT16(rec->input); SWAPINT16(rec->output);}/* * function: fts3rec_swap_v8_8 * * Swap bytes in a fts3rec_v8_8 struct **/void fts3rec_swap_v8_8(struct fts3rec_v8_8 *rec){ SWAPINT32(rec->unix_secs); SWAPINT32(rec->unix_nsecs); SWAPINT32(rec->sysUpTime); SWAPINT32(rec->exaddr); SWAPINT32(rec->dPkts); SWAPINT32(rec->dOctets); SWAPINT32(rec->First); SWAPINT32(rec->Last); SWAPINT32(rec->dstaddr); SWAPINT32(rec->srcaddr); SWAPINT32(rec->extra_pkts); SWAPINT32(rec->router_sc); SWAPINT16(rec->srcport); SWAPINT16(rec->dstport); SWAPINT16(rec->input); SWAPINT16(rec->output);}/* * function: fts3rec_swap_v8_9 * * Swap bytes in a fts3rec_v8_9 struct **/void fts3rec_swap_v8_9(struct fts3rec_v8_9 *rec){ SWAPINT32(rec->unix_secs); SWAPINT32(rec->unix_nsecs); SWAPINT32(rec->sysUpTime); SWAPINT32(rec->exaddr); SWAPINT32(rec->dFlows); SWAPINT32(rec->dPkts); SWAPINT32(rec->dOctets); SWAPINT32(rec->First); SWAPINT32(rec->Last); SWAPINT16(rec->src_as); SWAPINT16(rec->dst_as); SWAPINT16(rec->input); SWAPINT16(rec->output);}/* * function: fts3rec_swap_v8_10 * * Swap bytes in a fts3rec_v8_10 struct **/void fts3rec_swap_v8_10(struct fts3rec_v8_10 *rec){ SWAPINT32(rec->unix_secs); SWAPINT32(rec->unix_nsecs); SWAPINT32(rec->sysUpTime); SWAPINT32(rec->exaddr); SWAPINT32(rec->dFlows); SWAPINT32(rec->dPkts); SWAPINT32(rec->dOctets); SWAPINT32(rec->First); SWAPINT32(rec->Last); SWAPINT16(rec->srcport); SWAPINT16(rec->dstport); SWAPINT16(rec->input); SWAPINT16(rec->output);}/* * function: fts3rec_swap_v8_11 * * Swap bytes in a fts3rec_v8_11 struct **/void fts3rec_swap_v8_11(struct fts3rec_v8_11 *rec){ SWAPINT32(rec->unix_secs); SWAPINT32(rec->unix_nsecs); SWAPINT32(rec->sysUpTime); SWAPINT32(rec->exaddr); SWAPINT32(rec->dFlows); SWAPINT32(rec->dPkts); SWAPINT32(rec->dOctets); SWAPINT32(rec->First); SWAPINT32(rec->Last); SWAPINT32(rec->srcaddr); SWAPINT16(rec->src_as); SWAPINT16(rec->input);}/* * function: fts3rec_swap_v8_12 * * Swap bytes in a fts3rec_v8_12 struct **/void fts3rec_swap_v8_12(struct fts3rec_v8_12 *rec){ SWAPINT32(rec->unix_secs); SWAPINT32(rec->unix_nsecs); SWAPINT32(rec->sysUpTime); SWAPINT32(rec->exaddr); SWAPINT32(rec->dFlows); SWAPINT32(rec->dPkts); SWAPINT32(rec->dOctets); SWAPINT32(rec->First); SWAPINT32(rec->Last); SWAPINT32(rec->dstaddr); SWAPINT16(rec->output);}/* * function: fts3rec_swap_v8_13 * * Swap bytes in a fts3rec_v8_13 struct **/void fts3rec_swap_v8_13(struct fts3rec_v8_13 *rec){ SWAPINT32(rec->unix_secs); SWAPINT32(rec->unix_nsecs); SWAPINT32(rec->sysUpTime); SWAPINT32(rec->exaddr); SWAPINT32(rec->dFlows); SWAPINT32(rec->dPkts); SWAPINT32(rec->dOctets); SWAPINT32(rec->First); SWAPINT32(rec->Last); SWAPINT32(rec->srcaddr); SWAPINT32(rec->dstaddr); SWAPINT16(rec->src_as); SWAPINT16(rec->dst_as); SWAPINT16(rec->input); SWAPINT16(rec->output);}/* * function: fts3rec_swap_v8_14 * * Swap bytes in a fts3rec_v8_14 struct **/void fts3rec_swap_v8_14(struct fts3rec_v8_14 *rec){ SWAPINT32(rec->unix_secs); SWAPINT32(rec->unix_nsecs); SWAPINT32(rec->sysUpTime); SWAPINT32(rec->exaddr); SWAPINT32(rec->dFlows); SWAPINT32(rec->dPkts); SWAPINT32(rec->dOctets); SWAPINT32(rec->First); SWAPINT32(rec->Last); SWAPINT32(rec->srcaddr); SWAPINT32(rec->dstaddr); SWAPINT16(rec->srcport); SWAPINT16(rec->dstport); SWAPINT16(rec->input); SWAPINT16(rec->output);}/* * function: fts3rec_swap_v1005 * * Swap bytes in a fts3rec_v1005 struct **/void fts3rec_swap_v1005(struct fts3rec_v1005 *rec){ SWAPINT32(rec->unix_secs); SWAPINT32(rec->unix_nsecs); SWAPINT32(rec->sysUpTime); SWAPINT32(rec->srcaddr); SWAPINT32(rec->dstaddr); SWAPINT32(rec->nexthop); SWAPINT16(rec->input); SWAPINT16(rec->output); SWAPINT32(rec->dPkts); SWAPINT32(rec->dOctets); SWAPINT32(rec->First); SWAPINT32(rec->Last); SWAPINT16(rec->srcport); SWAPINT16(rec->dstport); SWAPINT16(rec->src_as); SWAPINT16(rec->dst_as); SWAPINT16(rec->src_tag); SWAPINT16(rec->dst_tag);}/* * function: fts3rec_swap_compat * * Swap bytes in a fts3rec_compat struct **/void fts1rec_swap_compat(struct fts1rec_compat *rec){ SWAPINT32(rec->unix_secs); SWAPINT32(rec->unix_msecs); SWAPINT32(rec->srcaddr); SWAPINT32(rec->dstaddr); SWAPINT32(rec->nexthop); SWAPINT16(rec->input); SWAPINT16(rec->output); SWAPINT32(rec->dPkts); SWAPINT32(rec->dOctets); SWAPINT32(rec->First); SWAPINT32(rec->Last); SWAPINT16(rec->srcport); SWAPINT16(rec->dstport); SWAPINT16(rec->pad); SWAPINT16(rec->src_as); SWAPINT16(rec->dst_as); SWAPINT16(rec->drops);}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -