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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? 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);

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
av午夜精品一区二区三区| 欧美日韩国产高清一区二区| 国产精品久久久久久久久久免费看 | 偷拍日韩校园综合在线| 亚洲精品成a人| 亚洲精品一二三区| 精品动漫一区二区三区在线观看| 精品国产123| 欧美日精品一区视频| 91黄色免费版| 26uuu另类欧美| 一片黄亚洲嫩模| 老汉av免费一区二区三区| 久久疯狂做爰流白浆xx| 精品久久久久久久人人人人传媒| 国产成人亚洲综合a∨猫咪| 成人久久久精品乱码一区二区三区| 亚洲一区二区三区自拍| 国产不卡一区视频| 欧美偷拍一区二区| 欧美一区二区三区在| 欧美大白屁股肥臀xxxxxx| 欧美伊人久久久久久久久影院| 激情综合色丁香一区二区| 青青草国产成人99久久| 天堂影院一区二区| 高清国产午夜精品久久久久久| 一区二区三区在线观看动漫| 一区二区三区在线免费视频 | 色综合色综合色综合| 精品国产免费人成在线观看| 欧美日韩亚洲综合在线| 在线看国产日韩| 亚洲一卡二卡三卡四卡五卡| 日韩欧美卡一卡二| 91麻豆国产精品久久| 精品一区二区三区在线视频| 国产精品久久久久久久久动漫| 欧美日韩国产综合视频在线观看| 亚洲美女少妇撒尿| 欧美岛国在线观看| 97超碰欧美中文字幕| 国产一区 二区 三区一级| 一区二区在线看| 欧美激情一区二区| 欧美一级一区二区| 在线不卡a资源高清| 色哟哟国产精品| 国产成人精品一区二区三区网站观看| 日韩有码一区二区三区| 亚洲人成7777| 中文一区在线播放| 精品国内二区三区| 91精品国产91综合久久蜜臀| 在线观看视频一区| 91亚洲午夜精品久久久久久| 国产精品小仙女| 国产一区二区精品久久| 美女性感视频久久| 国产毛片精品国产一区二区三区| 精品在线亚洲视频| 丁香激情综合五月| 国产成人亚洲综合色影视| 国产精品一区2区| 免费xxxx性欧美18vr| 伊人开心综合网| 欧美最猛黑人xxxxx猛交| 色婷婷激情一区二区三区| 五月婷婷综合在线| 日韩在线卡一卡二| 日本人妖一区二区| 另类小说一区二区三区| 婷婷一区二区三区| 亚洲成av人片一区二区三区| 亚洲一区二区三区自拍| 亚洲h精品动漫在线观看| 婷婷国产v国产偷v亚洲高清| 免费在线观看精品| 国产精品毛片大码女人| 国产精品国产三级国产普通话蜜臀| ●精品国产综合乱码久久久久| 婷婷夜色潮精品综合在线| 国模冰冰炮一区二区| 国产精品综合视频| 91丨porny丨中文| 国产精品18久久久久久久网站| 97aⅴ精品视频一二三区| 欧美精品色综合| 中文字幕一区在线观看| 一区二区三区在线视频观看58| 男男gaygay亚洲| 97se狠狠狠综合亚洲狠狠| 国产一区二区视频在线播放| 欧美日韩一区不卡| 最新日韩在线视频| 国产999精品久久久久久绿帽| 日韩三区在线观看| 亚洲欧美电影一区二区| 国产美女视频一区| 欧美在线观看视频一区二区三区 | 中文字幕亚洲在| 国产成人8x视频一区二区| 日韩视频中午一区| 亚洲午夜久久久久久久久久久| www.亚洲色图.com| 国产午夜精品一区二区三区视频 | 久久午夜电影网| 国产一二精品视频| 国产精品视频免费看| 国产精品996| 国产精品久久午夜| 国产乱码字幕精品高清av | 国产成人亚洲精品青草天美| 国产一区欧美日韩| 国产免费成人在线视频| 成人国产免费视频| 亚洲午夜三级在线| 欧美高清激情brazzers| 久久99国产精品免费| 精品国产伦一区二区三区免费| 日韩激情av在线| 久久综合一区二区| 国产日韩视频一区二区三区| 国产一区二区在线影院| 国产精品婷婷午夜在线观看| 91香蕉视频mp4| 亚洲图片欧美一区| 久久久久久久久久久电影| 色中色一区二区| 国内久久婷婷综合| 亚洲精品国产高清久久伦理二区| 欧美浪妇xxxx高跟鞋交| 国产精品一区二区三区乱码| 国产精品卡一卡二| 欧美二区三区91| 色狠狠色噜噜噜综合网| 国产成人8x视频一区二区| 免费人成网站在线观看欧美高清| 夜夜嗨av一区二区三区四季av| 欧美精品久久一区| 99久久免费精品高清特色大片| 日韩精品成人一区二区在线| 国产精品久久网站| 欧美韩国日本一区| 久久精品视频在线免费观看| 一本久久精品一区二区 | 欧美日韩一区二区三区高清| 成人在线视频首页| 麻豆精品精品国产自在97香蕉| 成人欧美一区二区三区| 国产精品无圣光一区二区| 亚洲精品在线三区| 日韩三级在线观看| 欧美日韩成人综合| 色欧美片视频在线观看| 在线观看91精品国产入口| 成人午夜免费av| 97精品国产97久久久久久久久久久久 | 麻豆成人久久精品二区三区小说| 亚洲一卡二卡三卡四卡无卡久久 | 精品国产人成亚洲区| 久久精品国产网站| 国产综合色精品一区二区三区| 蜜臀av在线播放一区二区三区| 狠狠色狠狠色综合| 成人黄色在线看| 亚洲国产你懂的| 日韩精品亚洲专区| 国产精品资源在线看| 欧美网站大全在线观看| 久久久影视传媒| 国产精品久久午夜夜伦鲁鲁| 亚洲男人的天堂av| 亚洲18色成人| 国产精品白丝av| 91国偷自产一区二区三区成为亚洲经典| 欧美少妇一区二区| 久久精品一区二区三区av| 国产亚洲污的网站| 欧美日韩一本到| 久久久影视传媒| 久久精品国产99国产| 色综合一区二区| 精品国产99国产精品| 一区二区激情小说| 毛片基地黄久久久久久天堂| www.av亚洲| 国产校园另类小说区| 亚洲成av人片在线观看| 日韩av成人高清| 欧美日韩在线三级| 91免费视频观看| 久久久久久久久久久99999| 日韩av网站免费在线| 欧洲av一区二区嗯嗯嗯啊| 亚洲日本一区二区三区| 国产一区激情在线| 精品粉嫩超白一线天av| 日韩国产精品久久久久久亚洲| a美女胸又www黄视频久久|