亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? ftswap.c

?? netflow,抓包
?? C
?? 第 1 頁 / 共 3 頁
字號:
/* * Copyright (c) 2001 Mark Fullmer and The Ohio State University * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright *    notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright *    notice, this list of conditions and the following disclaimer in the *    documentation and/or other materials provided with the distribution. * * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * *      $Id: ftswap.c,v 1.14 2003/02/13 02:38:42 maf Exp $ */#include "ftconfig.h"#include "ftlib.h"/* * function: ftpdu_swap * * Swap bytes in any PDU structure.  cur is the current * byte order of the PDU **/void ftpdu_swap(void *pdu, int cur){  struct ftpdu_header *ph;  int16 i;  char agg_method, agg_version;  ph = pdu;  i = ph->version;#if BYTE_ORDER == LITTLE_ENDIAN  if (cur == BIG_ENDIAN)    SWAPINT16(i);#endif /* BYTE_ORDER == LITTLE_ENDIAN */#if BYTE_ORDER == BIG_ENDIAN  if (cur == LITTLE_ENDIAN)    SWAPINT16(i);#endif /* BYTE_ORDER == LITTLE_ENDIAN */  switch (i) {    case 1:      ftpdu_v1_swap(pdu, cur);      break;    case 5:      ftpdu_v5_swap(pdu, cur);      break;    case 6:      ftpdu_v6_swap(pdu, cur);      break;    case 7:      ftpdu_v7_swap(pdu, cur);      break;    case 8:      agg_method = *((char*)pdu+22);      agg_version = *((char*)pdu+23);      switch (agg_method) {        case 1:          ftpdu_v8_1_swap(pdu, cur);          break;        case 2:          ftpdu_v8_2_swap(pdu, cur);          break;        case 3:          ftpdu_v8_3_swap(pdu, cur);          break;        case 4:          ftpdu_v8_4_swap(pdu, cur);          break;        case 5:          ftpdu_v8_5_swap(pdu, cur);          break;        case 6:          ftpdu_v8_6_swap(pdu, cur);          break;        case 7:          ftpdu_v8_7_swap(pdu, cur);          break;        case 8:          ftpdu_v8_8_swap(pdu, cur);          break;        case 9:          ftpdu_v8_9_swap(pdu, cur);          break;        case 10:          ftpdu_v8_10_swap(pdu, cur);          break;        case 11:          ftpdu_v8_11_swap(pdu, cur);          break;        case 12:          ftpdu_v8_12_swap(pdu, cur);          break;        case 13:          ftpdu_v8_13_swap(pdu, cur);          break;        case 14:          ftpdu_v8_14_swap(pdu, cur);          break;        default:          fterr_warnx("Internal error agg_method=%d", (int)agg_method);          break;      } /* switch */      break;    default:      fterr_warnx("Internal error i=%d", (int)i);      break;  } /* switch */} /* ftpdu_swap *//* * function: ftpdu_v1_swap * * Swap bytes in a V1 PDU.  cur is the current * byte order of the PDU **/void ftpdu_v1_swap(struct ftpdu_v1 *pdu, int cur){  int16 i;  i = pdu->count;#if BYTE_ORDER == LITTLE_ENDIAN  if (cur == BIG_ENDIAN)    SWAPINT16(i);#endif /* BYTE_ORDER == LITTLE_ENDIAN */#if BYTE_ORDER == BIG_ENDIAN  if (cur == LITTLE_ENDIAN)    SWAPINT16(i);#endif /* BYTE_ORDER == LITTLE_ENDIAN */  SWAPINT16(pdu->version);  SWAPINT16(pdu->count);  SWAPINT32(pdu->sysUpTime);  SWAPINT32(pdu->unix_secs);  SWAPINT32(pdu->unix_nsecs);  for (--i; i >= 0; --i) {    SWAPINT32(pdu->records[i].srcaddr);    SWAPINT32(pdu->records[i].dstaddr);    SWAPINT32(pdu->records[i].nexthop);    SWAPINT16(pdu->records[i].input);    SWAPINT16(pdu->records[i].output);    SWAPINT32(pdu->records[i].dPkts);    SWAPINT32(pdu->records[i].dOctets);    SWAPINT32(pdu->records[i].First);    SWAPINT32(pdu->records[i].Last);    SWAPINT16(pdu->records[i].dstport);    SWAPINT16(pdu->records[i].srcport);  }} /* ftpdu_v1_swap */void ftpdu_v5_swap(struct ftpdu_v5 *pdu, int cur){  int16 i;  i = pdu->count;#if BYTE_ORDER == LITTLE_ENDIAN  if (cur == BIG_ENDIAN)    SWAPINT16(i);#endif /* BYTE_ORDER == LITTLE_ENDIAN */#if BYTE_ORDER == BIG_ENDIAN  if (cur == LITTLE_ENDIAN)    SWAPINT16(i);#endif /* BYTE_ORDER == LITTLE_ENDIAN */  SWAPINT16(pdu->version);  SWAPINT16(pdu->count);  SWAPINT32(pdu->sysUpTime);  SWAPINT32(pdu->unix_secs);  SWAPINT32(pdu->unix_nsecs);  SWAPINT32(pdu->flow_sequence);  for (--i; i >= 0; --i) {    SWAPINT32(pdu->records[i].srcaddr);    SWAPINT32(pdu->records[i].dstaddr);    SWAPINT32(pdu->records[i].nexthop);    SWAPINT16(pdu->records[i].input)   ;    SWAPINT16(pdu->records[i].output);    SWAPINT32(pdu->records[i].dPkts);    SWAPINT32(pdu->records[i].dOctets);    SWAPINT32(pdu->records[i].First);    SWAPINT32(pdu->records[i].Last);    SWAPINT16(pdu->records[i].dstport);    SWAPINT16(pdu->records[i].srcport);    SWAPINT16(pdu->records[i].src_as);    SWAPINT16(pdu->records[i].dst_as);    SWAPINT16(pdu->records[i].drops);  }} /* ftpdu_v5_swap *//* * function: ftpdu_v6_swap * * Swap bytes in a V6 PDU.  cur is the current * byte order of the PDU **/void ftpdu_v6_swap(struct ftpdu_v6 *pdu, int cur){  int16 i;  i = pdu->count;#if BYTE_ORDER == LITTLE_ENDIAN  if (cur == BIG_ENDIAN)    SWAPINT16(i);#endif /* BYTE_ORDER == LITTLE_ENDIAN */#if BYTE_ORDER == BIG_ENDIAN  if (cur == LITTLE_ENDIAN)    SWAPINT16(i);#endif /* BYTE_ORDER == LITTLE_ENDIAN */  SWAPINT16(pdu->version);  SWAPINT16(pdu->count);  SWAPINT32(pdu->sysUpTime);  SWAPINT32(pdu->unix_secs);  SWAPINT32(pdu->unix_nsecs);  SWAPINT32(pdu->flow_sequence);  for (--i; i >= 0; --i) {    SWAPINT32(pdu->records[i].srcaddr);    SWAPINT32(pdu->records[i].dstaddr);    SWAPINT32(pdu->records[i].nexthop);    SWAPINT16(pdu->records[i].input);    SWAPINT16(pdu->records[i].output);    SWAPINT32(pdu->records[i].dPkts);    SWAPINT32(pdu->records[i].dOctets);    SWAPINT32(pdu->records[i].First);    SWAPINT32(pdu->records[i].Last);    SWAPINT16(pdu->records[i].dstport);    SWAPINT16(pdu->records[i].srcport);    SWAPINT16(pdu->records[i].src_as);    SWAPINT16(pdu->records[i].dst_as);    SWAPINT32(pdu->records[i].peer_nexthop);  }} /* ftpdu_v6_swap *//* * function: ftpdu_v7_swap * * Swap bytes in a V7 PDU.  cur is the current * byte order of the PDU **/void ftpdu_v7_swap(struct ftpdu_v7 *pdu, int cur){  int16 i;  i = pdu->count;#if BYTE_ORDER == LITTLE_ENDIAN  if (cur == BIG_ENDIAN)    SWAPINT16(i);#endif /* BYTE_ORDER == LITTLE_ENDIAN */#if BYTE_ORDER == BIG_ENDIAN  if (cur == LITTLE_ENDIAN)    SWAPINT16(i);#endif /* BYTE_ORDER == LITTLE_ENDIAN */  SWAPINT16(pdu->version);  SWAPINT16(pdu->count);  SWAPINT32(pdu->sysUpTime);  SWAPINT32(pdu->unix_secs);  SWAPINT32(pdu->unix_nsecs);  SWAPINT32(pdu->flow_sequence);  for (--i; i >= 0; --i) {    SWAPINT32(pdu->records[i].srcaddr);    SWAPINT32(pdu->records[i].dstaddr);    SWAPINT32(pdu->records[i].nexthop);    SWAPINT16(pdu->records[i].input)   ;    SWAPINT16(pdu->records[i].output);    SWAPINT32(pdu->records[i].dPkts);    SWAPINT32(pdu->records[i].dOctets);    SWAPINT32(pdu->records[i].First);    SWAPINT32(pdu->records[i].Last);    SWAPINT16(pdu->records[i].dstport);    SWAPINT16(pdu->records[i].srcport);    SWAPINT16(pdu->records[i].src_as);    SWAPINT16(pdu->records[i].dst_as);    SWAPINT16(pdu->records[i].drops);    SWAPINT32(pdu->records[i].router_sc);  }} /* ftpdu_v7_swap *//* * function: ftpdu_v8_1_swap * * Swap bytes in a V8 agg method 1 PDU.  cur is the current * byte order of the PDU **/void ftpdu_v8_1_swap(struct ftpdu_v8_1 *pdu, int cur){  int16 i;  i = pdu->count;#if BYTE_ORDER == LITTLE_ENDIAN  if (cur == BIG_ENDIAN)    SWAPINT16(i);#endif /* BYTE_ORDER == LITTLE_ENDIAN */#if BYTE_ORDER == BIG_ENDIAN  if (cur == LITTLE_ENDIAN)    SWAPINT16(i);#endif /* BYTE_ORDER == LITTLE_ENDIAN */  SWAPINT16(pdu->version);  SWAPINT16(pdu->count);  SWAPINT32(pdu->sysUpTime);  SWAPINT32(pdu->unix_secs);  SWAPINT32(pdu->unix_nsecs);  SWAPINT32(pdu->flow_sequence);  for (--i; i >= 0; --i) {    SWAPINT32(pdu->records[i].dFlows);    SWAPINT32(pdu->records[i].dPkts);    SWAPINT32(pdu->records[i].dOctets);    SWAPINT32(pdu->records[i].First);    SWAPINT32(pdu->records[i].Last);    SWAPINT16(pdu->records[i].src_as);    SWAPINT16(pdu->records[i].dst_as);    SWAPINT16(pdu->records[i].input);    SWAPINT16(pdu->records[i].output);  }} /* ftpdu_v8_1_swap *//* * function: ftpdu_v8_2_swap * * Swap bytes in a V8 agg method 2 PDU.  cur is the current * byte order of the PDU **/void ftpdu_v8_2_swap(struct ftpdu_v8_2 *pdu, int cur){  int16 i;  i = pdu->count;#if BYTE_ORDER == LITTLE_ENDIAN  if (cur == BIG_ENDIAN)    SWAPINT16(i);#endif /* BYTE_ORDER == LITTLE_ENDIAN */#if BYTE_ORDER == BIG_ENDIAN  if (cur == LITTLE_ENDIAN)    SWAPINT16(i);#endif /* BYTE_ORDER == LITTLE_ENDIAN */  SWAPINT16(pdu->version);  SWAPINT16(pdu->count);  SWAPINT32(pdu->sysUpTime);  SWAPINT32(pdu->unix_secs);  SWAPINT32(pdu->unix_nsecs);  SWAPINT32(pdu->flow_sequence);  for (--i; i >= 0; --i) {    SWAPINT32(pdu->records[i].dFlows);    SWAPINT32(pdu->records[i].dPkts);    SWAPINT32(pdu->records[i].dOctets);    SWAPINT32(pdu->records[i].First);    SWAPINT32(pdu->records[i].Last);    SWAPINT16(pdu->records[i].srcport);    SWAPINT16(pdu->records[i].dstport);  }} /* ftpdu_v8_2_swap *//* * function: ftpdu_v8_3_swap * * Swap bytes in a V8 agg method 3 PDU.  cur is the current * byte order of the PDU **/void ftpdu_v8_3_swap(struct ftpdu_v8_3 *pdu, int cur){  int16 i;  i = pdu->count;#if BYTE_ORDER == LITTLE_ENDIAN  if (cur == BIG_ENDIAN)    SWAPINT16(i);#endif /* BYTE_ORDER == LITTLE_ENDIAN */#if BYTE_ORDER == BIG_ENDIAN  if (cur == LITTLE_ENDIAN)    SWAPINT16(i);#endif /* BYTE_ORDER == LITTLE_ENDIAN */  SWAPINT16(pdu->version);  SWAPINT16(pdu->count);  SWAPINT32(pdu->sysUpTime);  SWAPINT32(pdu->unix_secs);  SWAPINT32(pdu->unix_nsecs);  SWAPINT32(pdu->flow_sequence);  for (--i; i >= 0; --i) {    SWAPINT32(pdu->records[i].dFlows);    SWAPINT32(pdu->records[i].dPkts);    SWAPINT32(pdu->records[i].dOctets);    SWAPINT32(pdu->records[i].First);    SWAPINT32(pdu->records[i].Last);    SWAPINT32(pdu->records[i].src_prefix);    SWAPINT16(pdu->records[i].src_as);    SWAPINT16(pdu->records[i].input);  }} /* ftpdu_v8_3_swap *//* * function: ftpdu_v8_4_swap * * Swap bytes in a V8 agg method 4 PDU.  cur is the current * byte order of the PDU **/void ftpdu_v8_4_swap(struct ftpdu_v8_4 *pdu, int cur){  int16 i;  i = pdu->count;#if BYTE_ORDER == LITTLE_ENDIAN  if (cur == BIG_ENDIAN)    SWAPINT16(i);#endif /* BYTE_ORDER == LITTLE_ENDIAN */#if BYTE_ORDER == BIG_ENDIAN  if (cur == LITTLE_ENDIAN)    SWAPINT16(i);#endif /* BYTE_ORDER == LITTLE_ENDIAN */  SWAPINT16(pdu->version);  SWAPINT16(pdu->count);

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
一区精品在线播放| 国产精品伦理在线| 国产精品萝li| 三级久久三级久久| 成人精品视频一区二区三区尤物| 欧美男男青年gay1069videost| 久久天天做天天爱综合色| 日韩高清一区在线| 在线精品视频一区二区三四| 中文在线资源观看网站视频免费不卡| 日韩精品久久理论片| 日本精品免费观看高清观看| 欧美极品aⅴ影院| 奇米精品一区二区三区四区| 在线观看91精品国产入口| 国产精品久久久久久户外露出 | 丰满岳乱妇一区二区三区| 在线成人av影院| 亚洲综合色自拍一区| 在线国产亚洲欧美| 国产精品福利影院| 国产成人av网站| 久久久午夜精品| 激情六月婷婷综合| 精品少妇一区二区三区在线播放 | 久久99精品国产麻豆不卡| 欧美美女黄视频| 五月综合激情日本mⅴ| 色呦呦国产精品| 亚洲免费av观看| 色播五月激情综合网| 亚洲色图.com| 欧亚一区二区三区| 五月天激情综合网| 欧美一区二区三区视频在线| 免费观看久久久4p| 国产精品18久久久久| 国产精品三级在线观看| 在线播放91灌醉迷j高跟美女| 亚洲精品一区二区在线观看| 极品少妇一区二区| 久久九九影视网| 成a人片国产精品| 亚洲私人影院在线观看| 欧美专区亚洲专区| 日精品一区二区| 欧美精品一区二区蜜臀亚洲| 久久99国产精品麻豆| 日本一区二区三区电影| 91蜜桃免费观看视频| 午夜精品福利视频网站| 日韩一本二本av| 免费国产亚洲视频| 国产校园另类小说区| 成人黄色在线视频| 夜夜精品浪潮av一区二区三区| 欧美亚洲高清一区| 精品在线播放免费| 国产精品网站导航| 欧美日韩国产另类一区| 色综合久久88色综合天天6| 亚洲最新视频在线播放| 在线一区二区三区| 免费成人小视频| 国产一区二区三区精品视频| 久久精品视频免费观看| 亚洲最大成人网4388xx| 日韩一区二区三区电影在线观看| 国产一区二区三区av电影| 国产精品免费久久| 91精品国产麻豆国产自产在线| 国产精品91一区二区| 亚洲综合无码一区二区| 欧美精品一区二区在线播放| 91亚洲国产成人精品一区二三 | 最新国产の精品合集bt伙计| 欧美日韩成人在线一区| 成人av午夜电影| 亚洲靠逼com| 亚洲一区二区三区视频在线播放| 精品一区免费av| 91在线看国产| 亚洲人妖av一区二区| 欧美一区二区三区喷汁尤物| 99v久久综合狠狠综合久久| 久久99精品国产| 亚洲一区二区av在线| 欧美国产欧美综合| 欧美大片在线观看一区| 91精彩视频在线观看| 成人白浆超碰人人人人| 国内久久婷婷综合| 五月综合激情网| 一区二区高清免费观看影视大全 | 国产午夜精品一区二区三区四区| 欧美日韩一区精品| 91原创在线视频| 久久成人av少妇免费| 亚洲va中文字幕| 欧美日韩免费视频| 欧美日韩在线播| 艳妇臀荡乳欲伦亚洲一区| 久久综合九色综合97_久久久| 欧美日本韩国一区二区三区视频| 国产精品一区二区三区99| 国产日产精品一区| 国产大片一区二区| 亚洲免费在线观看| 中文字幕中文乱码欧美一区二区| 久久久一区二区| 久久久三级国产网站| 久久无码av三级| 亚洲视频精选在线| 国产精品无遮挡| 国产精品麻豆99久久久久久| 国产精品天干天干在线综合| 中文字幕成人在线观看| 日本一二三不卡| 国产精品青草久久| 9191国产精品| 久久91精品久久久久久秒播| 一区二区三区四区不卡在线| 欧美日韩免费一区二区三区视频| 亚洲欧美激情在线| 亚洲另类中文字| 亚洲一区中文日韩| 婷婷国产在线综合| 精东粉嫩av免费一区二区三区| 国内偷窥港台综合视频在线播放| 国产精品一区三区| 成人国产精品免费观看视频| 色又黄又爽网站www久久| 欧美日韩精品一区二区天天拍小说| 51午夜精品国产| 久久综合九色综合久久久精品综合| 国产精品视频你懂的| 亚洲天堂av老司机| 日韩激情视频在线观看| 韩国女主播一区| 91捆绑美女网站| 欧美老女人在线| 久久综合色之久久综合| 亚洲视频一区二区在线| 视频一区二区中文字幕| 欧美色爱综合网| 久久精品这里都是精品| 中文字幕久久午夜不卡| 亚洲一区二区三区四区五区黄 | 午夜精品一区二区三区免费视频| 日本人妖一区二区| 成人午夜视频免费看| 欧美中文字幕不卡| 精品国产精品网麻豆系列| 亚洲欧美视频在线观看视频| 免费成人小视频| 色哟哟一区二区| 国产日韩综合av| 首页综合国产亚洲丝袜| 成人丝袜视频网| 欧美一卡2卡三卡4卡5免费| 亚洲三级在线免费观看| 韩国女主播一区| 欧美熟乱第一页| 国产精品久久久爽爽爽麻豆色哟哟| 五月婷婷综合网| 99re6这里只有精品视频在线观看 99re8在线精品视频免费播放 | 福利视频网站一区二区三区| 欧美日韩情趣电影| 一区在线中文字幕| 久久国产生活片100| 欧美在线视频你懂得| 中文字幕一区二区在线观看| 国产综合久久久久久久久久久久| 色拍拍在线精品视频8848| 久久久欧美精品sm网站| 日本不卡高清视频| 欧美吻胸吃奶大尺度电影| 亚洲素人一区二区| 成人一区二区三区视频在线观看| 日韩一区二区三| 午夜一区二区三区在线观看| 色嗨嗨av一区二区三区| 国产精品女同互慰在线看| 国产精品一区二区三区乱码| 欧美成人综合网站| 青青草国产成人av片免费| 欧美日本一区二区三区四区| 一区二区三区四区高清精品免费观看 | 韩国一区二区在线观看| 91精品国产综合久久久久久久久久 | eeuss鲁片一区二区三区| 26uuuu精品一区二区| 日韩不卡一区二区| 91精品在线观看入口| 国产一区二区免费在线| 日韩欧美久久一区| 六月婷婷色综合| 久久久久国产精品麻豆ai换脸 | 中文字幕不卡在线播放| 国产精品一卡二|