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

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

?? packet-mgcp.c

?? ethereal公司開發的aodv路由協議代碼
?? C
?? 第 1 頁 / 共 3 頁
字號:
  else{    *hf = &hf_mgcp_param_invalid;  }  if(*hf == &hf_mgcp_param_invalid){    returnvalue = offset;  }  return returnvalue;}/*  * dissect_mgcp_firstline - Dissects the firstline of an MGCP message. *                          Adds the appropriate headers fields to    *                          tree for the dissection of the first line  *                          of an MGCP message. *  * Parameters: * tvb - The tvb containing the first line of an MGCP message.  This  *       tvb is presumed to ONLY contain the first line of the MGCP  *       message. * pinfo - The packet info for the packet.  This is not really used  *         by this function but is passed through so as to retain the  *         style of a dissector. * tree - The tree from which to hang the structured information parsed  *        from the first line of the MGCP message. */static void dissect_mgcp_firstline(tvbuff_t *tvb, 				   packet_info *pinfo, 				   proto_tree *tree){  gint tvb_current_offset,tvb_previous_offset,tvb_len,tvb_current_len;  gint tokennum, tokenlen;  mgcp_type_t mgcp_type = MGCP_OTHERS;  proto_item* (*my_proto_tree_add_string)(proto_tree*, int, tvbuff_t*, gint,					  gint, const char*);  tvb_previous_offset = 0;  tvb_len = tvb_length(tvb);  tvb_current_len = tvb_len;  tvb_current_offset = tvb_previous_offset;  if(tree){    tokennum = 0;    if(global_mgcp_dissect_tree){      my_proto_tree_add_string = proto_tree_add_string;    }    else{      my_proto_tree_add_string = proto_tree_add_string_hidden;    }    do {      tvb_current_len = tvb_length_remaining(tvb,tvb_previous_offset);      tvb_current_offset = tvb_find_guint8(tvb, tvb_previous_offset,					   tvb_current_len, ' ');      if(tvb_current_offset == -1){	tvb_current_offset = tvb_len;	tokenlen = tvb_current_len;      }				        else{	tokenlen = tvb_current_offset - tvb_previous_offset;      }      if(tokennum == 0){	if(is_mgcp_verb(tvb,tvb_previous_offset,tvb_current_len)){	  mgcp_type = MGCP_REQUEST;	  my_proto_tree_add_string(tree,hf_mgcp_req_verb, tvb, 				   tvb_previous_offset, tokenlen, 				   tvb_format_text(tvb,tvb_previous_offset						   ,tokenlen));	}	else if (is_mgcp_rspcode(tvb,tvb_previous_offset,tvb_current_len)){	  mgcp_type = MGCP_RESPONSE;	  my_proto_tree_add_string(tree,hf_mgcp_rsp_rspcode, tvb,				   tvb_previous_offset, tokenlen,				   tvb_format_text(tvb,tvb_previous_offset						   ,tokenlen));	}	else {	  break;	}      }      if(tokennum == 1){	my_proto_tree_add_string(tree,hf_mgcp_transid, tvb,				 tvb_previous_offset, tokenlen, 				 tvb_format_text(tvb,tvb_previous_offset,						 tokenlen));      }      if(tokennum == 2){	if(mgcp_type == MGCP_REQUEST){	  my_proto_tree_add_string(tree,hf_mgcp_req_endpoint, tvb,				   tvb_previous_offset, tokenlen,				   tvb_format_text(tvb, tvb_previous_offset,						   tokenlen));	}	else if(mgcp_type == MGCP_RESPONSE){	  if(tvb_current_offset < tvb_len){	    tokenlen = tvb_find_line_end(tvb, tvb_previous_offset, 					 -1,&tvb_current_offset);	  }	  else{	    tokenlen = tvb_current_len;	  }	  my_proto_tree_add_string(tree, hf_mgcp_rsp_rspstring, tvb,				   tvb_previous_offset, tokenlen,				   tvb_format_text(tvb, tvb_previous_offset,						   tokenlen));	  break;	}      }      if( (tokennum == 3 && mgcp_type == MGCP_REQUEST) ){	if(tvb_current_offset < tvb_len ){	  tokenlen = tvb_find_line_end(tvb, tvb_previous_offset, 				       -1,&tvb_current_offset);	}	else{	  tokenlen = tvb_current_len;	}	my_proto_tree_add_string(tree,hf_mgcp_version, tvb,				 tvb_previous_offset, tokenlen,				 tvb_format_text(tvb,tvb_previous_offset,						 tokenlen));	break;      }      if(tvb_current_offset < tvb_len){	tvb_previous_offset = tvb_skip_wsp(tvb, tvb_current_offset,					   tvb_current_len);      }      tokennum++;    } while( tvb_current_offset < tvb_len && tvb_previous_offset < tvb_len 	     && tokennum <= 3);    switch (mgcp_type){    case MGCP_RESPONSE:      proto_tree_add_boolean_hidden(tree, hf_mgcp_rsp, tvb, 0, 0, TRUE);      break;    case MGCP_REQUEST:      proto_tree_add_boolean_hidden(tree, hf_mgcp_req, tvb, 0, 0, TRUE);      break;    default:      break;    }  }}/*  * dissect_mgcp_params - Dissects the parameters of an MGCP message. *                       Adds the appropriate headers fields to    *                       tree for the dissection of the parameters  *                       of an MGCP message. *  * Parameters: * tvb - The tvb containing the parameters of an MGCP message.  This  *       tvb is presumed to ONLY contain the part of the MGCP  *       message which contains the MGCP parameters. * pinfo - The packet info for the packet.  This is not really used  *         by this function but is passed through so as to retain the  *         style of a dissector. * tree - The tree from which to hang the structured information parsed  *        from the parameters of the MGCP message. */static void dissect_mgcp_params(tvbuff_t *tvb, packet_info *pinfo, 					 proto_tree *tree){  int linelen, tokenlen, *my_param;  gint tvb_lineend,tvb_current_len, tvb_linebegin,tvb_len;  gint tvb_tokenbegin;  proto_tree *mgcp_param_ti, *mgcp_param_tree;  proto_item* (*my_proto_tree_add_string)(proto_tree*, int, tvbuff_t*, gint,					  gint, const char*);  tvb_len = tvb_length(tvb);  tvb_linebegin = 0;  tvb_current_len = tvb_length_remaining(tvb,tvb_linebegin);  tvb_lineend = tvb_linebegin;  if(tree){    if(global_mgcp_dissect_tree){      my_proto_tree_add_string = proto_tree_add_string;      mgcp_param_ti = proto_tree_add_item(tree, proto_mgcp, tvb, 					  tvb_linebegin, tvb_len, FALSE);      proto_item_set_text(mgcp_param_ti, "Parameters");      mgcp_param_tree = proto_item_add_subtree(mgcp_param_ti, ett_mgcp_param);    }    else{      my_proto_tree_add_string = proto_tree_add_string_hidden;      mgcp_param_tree = tree;      mgcp_param_ti = NULL;    }    /* Parse the parameters */    while(tvb_lineend < tvb_len){      linelen = tvb_find_line_end(tvb, tvb_linebegin, -1,&tvb_lineend);       tvb_tokenbegin = tvb_parse_param(tvb, tvb_linebegin, linelen, 				       &my_param);      if( my_param != NULL ){	tokenlen = tvb_find_line_end(tvb,tvb_tokenbegin,-1,&tvb_lineend);	my_proto_tree_add_string(mgcp_param_tree,*my_param, tvb,				 tvb_linebegin, linelen, 				 tvb_format_text(tvb,tvb_tokenbegin,						 tokenlen));      }      tvb_linebegin = tvb_lineend;    }   }}  	  /* * tvb_skip_wsp - Returns the position in tvb of the first non-whitespace  *                character following offset or offset + maxlength -1 whichever *                is smaller. * * Parameters:  * tvb - The tvbuff in which we are skipping whitespace. * offset - The offset in tvb from which we begin trying to skip whitespace. * maxlength - The maximum distance from offset that we may try to skip  * whitespace. * * Returns: The position in tvb of the first non-whitespace  *          character following offset or offset + maxlength -1 whichever *          is smaller. */static gint tvb_skip_wsp(tvbuff_t* tvb, gint offset, gint maxlength){  gint counter = offset;  gint end = offset + maxlength,tvb_len;  guint8 tempchar;  tvb_len = tvb_length(tvb);  end = offset + maxlength;  if(end >= tvb_len){    end = tvb_len;  }  for(counter = offset; counter < end && 	((tempchar = tvb_get_guint8(tvb,counter)) == ' ' || 	tempchar == '\t');counter++);  return (counter);}/* * tvb_find_null_line - Returns the length from offset to the first null *                      line found (a null line is a line that begins  *                      with a CR or LF.  The offset to the first character *                      after the null line is written into the gint pointed *                      to by next_offset. * * Parameters:  * tvb - The tvbuff in which we are looking for a null line. * offset - The offset in tvb at which we will begin looking for  *          a null line. * len - The maximum distance from offset in tvb that we will look for  *       a null line.  If it is -1 we will look to the end of the buffer. * * next_offset - The location to write the offset of first character  *               FOLLOWING the null line.  * * Returns: The length from offset to the first character BEFORE  *          the null line.. */static gint tvb_find_null_line(tvbuff_t* tvb, gint offset, 			       gint len, gint* next_offset){  gint tvb_lineend,tvb_current_len,tvb_linebegin,maxoffset;  guint tempchar;  tvb_linebegin = offset;  tvb_lineend = tvb_linebegin;  /* Simple setup to allow for the traditional -1 search to the end    * of the tvbuff    */  if(len != -1){    tvb_current_len = len;  }   else{    tvb_current_len = tvb_length_remaining(tvb,offset);  }  maxoffset = (tvb_current_len - 1) + offset;  /*   * Loop around until we either find a line begining with a carriage return   * or newline character or until we hit the end of the tvbuff.   */  do {    tvb_linebegin = tvb_lineend;    tvb_current_len = tvb_length_remaining(tvb,tvb_linebegin);    tvb_find_line_end(tvb, tvb_linebegin, tvb_current_len, &tvb_lineend);    tempchar = tvb_get_guint8(tvb,tvb_linebegin);  }   while( tempchar != '\r' && tempchar != '\n' &&	 tvb_lineend <= maxoffset);  *next_offset = tvb_lineend;  if( tvb_lineend <= maxoffset ) {    tvb_current_len = tvb_linebegin - offset;  }  else {    tvb_current_len = tvb_length_remaining(tvb,offset);  }  return (tvb_current_len);}/* * tvb_find_dot_line -  Returns the length from offset to the first line  *                      containing only a dot (.) character.  A line  *                      containing only a dot is used to indicate a  *                      separation between multiple MGCP messages  *                      piggybacked in the same UDP packet. * * Parameters:  * tvb - The tvbuff in which we are looking for a dot line. * offset - The offset in tvb at which we will begin looking for  *          a dot line. * len - The maximum distance from offset in tvb that we will look for  *       a dot line.  If it is -1 we will look to the end of the buffer. * * next_offset - The location to write the offset of first character  *               FOLLOWING the dot line.   * * Returns: The length from offset to the first character BEFORE  *          the dot line or -1 if the character at offset is a .  *          followed by a newline or a carriage return. */static gint tvb_find_dot_line(tvbuff_t* tvb, gint offset, 			       gint len, gint* next_offset){  gint tvb_current_offset, tvb_current_len, maxoffset,tvb_len;  guint8 tempchar;  tvb_current_offset = offset;  tvb_current_len = len;  tvb_len = tvb_length(tvb);  if(len == -1){    maxoffset = ( tvb_len - 1 );  }  else {     maxoffset = (len - 1 ) + offset;  }  tvb_current_offset = offset -1;  do {    tvb_current_offset = tvb_find_guint8(tvb, tvb_current_offset+1,					 tvb_current_len, '.');    tvb_current_len = maxoffset - tvb_current_offset + 1;    /*      * if we didn't find a . then break out of the loop     */    if(tvb_current_offset == -1){      break;    }    /* do we have and characters following the . ? */    if( tvb_current_offset < maxoffset ) {       tempchar = tvb_get_guint8(tvb,tvb_current_offset+1);      /*        * are the characters that follow the dot a newline or carriage return ?        */      if(tempchar == '\r' || tempchar == '\n'){	/*	 * do we have any charaters that proceed the . ?	 */	if( tvb_current_offset == 0 ){	  break;	}	else {	  tempchar = tvb_get_guint8(tvb,tvb_current_offset-1);	  /*	   * are the characters that follow the dot a newline or a carriage 	   * return ?	   */	  if(tempchar == '\r' || tempchar == '\n'){	    break;	  }	}      }    }    else if ( tvb_current_offset == maxoffset ) {      if( tvb_current_offset == 0 ){	break;      }      else {	tempchar = tvb_get_guint8(tvb,tvb_current_offset-1);	if(tempchar == '\r' || tempchar == '\n'){	  break;	}      }    }      } while (tvb_current_offset < maxoffset);  /*    * so now we either have the tvb_current_offset of a . in a dot line    * or a tvb_current_offset of -1   */  if(tvb_current_offset == -1){    tvb_current_offset = maxoffset +1;    *next_offset = maxoffset + 1;  }  else {    tvb_find_line_end(tvb,tvb_current_offset,tvb_current_len,next_offset);  }  if( tvb_current_offset == offset ){    tvb_current_len = -1;  }    else {    tvb_current_len = tvb_current_offset - offset;  }  return tvb_current_len;  }/* Start the functions we need for the plugin stuff */#ifndef __ETHEREAL_STATIC__G_MODULE_EXPORT voidplugin_reg_handoff(void){  proto_reg_handoff_mgcp();}G_MODULE_EXPORT voidplugin_init(plugin_address_table_t *pat){  /* initialise the table of pointers needed in Win32 DLLs */  plugin_address_table_init(pat);  /* register the new protocol, protocol fields, and subtrees */  if (proto_mgcp == -1) { /* execute protocol initialization only once */    proto_register_mgcp();  }}#endif/* End the functions we need for plugin stuff */

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日本电影亚洲天堂一区| 成人a级免费电影| 国产精品久久久久桃色tv| 欧美丰满少妇xxxbbb| 不卡高清视频专区| 久久99国产精品成人| 亚洲卡通动漫在线| 久久理论电影网| 欧美一卡二卡三卡四卡| 97精品久久久久中文字幕 | 亚洲福利一区二区三区| 国产精品欧美经典| 26uuu国产电影一区二区| 欧美剧情片在线观看| 一本大道久久a久久精二百| 国产.精品.日韩.另类.中文.在线.播放| 午夜电影网一区| 亚洲欧美日韩人成在线播放| 欧美精品一区二区久久久| 在线不卡a资源高清| 在线视频观看一区| 91色porny在线视频| 成人免费av在线| 国产99久久久国产精品潘金网站| 麻豆极品一区二区三区| 午夜av电影一区| 亚洲一区二区三区自拍| 亚洲蜜桃精久久久久久久| 亚洲国产精品精华液2区45| 久久久不卡影院| 26uuu亚洲综合色| 精品国产免费视频| 亚洲精品在线电影| 欧美va亚洲va| 欧美大片拔萝卜| 日韩精品一区二区三区swag | bt7086福利一区国产| 国产成人夜色高潮福利影视| 国产精品69久久久久水密桃| 国产一区二区三区| 成人免费精品视频| 成人av在线观| 91在线无精精品入口| 色婷婷一区二区三区四区| 91久久精品一区二区| 91国产成人在线| 欧美日韩国产一级片| 在线播放视频一区| 日韩女优制服丝袜电影| 精品国产91洋老外米糕| 久久久久久一级片| 中文字幕二三区不卡| 国产精品国产三级国产aⅴ无密码| 国产精品国产精品国产专区不蜜| 亚洲欧美区自拍先锋| 一区二区三区高清在线| 午夜精品久久一牛影视| 麻豆精品国产91久久久久久| 国产精品综合一区二区三区| 99在线精品观看| 欧美巨大另类极品videosbest| 欧美一区二区三区日韩视频| 欧美精品一区二区三区蜜桃| 亚洲国产岛国毛片在线| 夜夜精品浪潮av一区二区三区| 亚洲福利视频一区| 精品影院一区二区久久久| 成人午夜电影小说| 在线观看成人小视频| 91精品国产综合久久精品性色| 久久这里只有精品视频网| 综合av第一页| 日韩精品欧美成人高清一区二区| 极品美女销魂一区二区三区| 大尺度一区二区| 欧美日韩大陆一区二区| 久久久久久夜精品精品免费| 伊人一区二区三区| 久久机这里只有精品| youjizz国产精品| 欧美一区二区日韩| 中文字幕一区不卡| 奇米精品一区二区三区四区 | 日韩中文字幕一区二区三区| 国产99一区视频免费| 欧美色中文字幕| 久久精品欧美一区二区三区麻豆| 亚洲一区在线观看视频| 国产在线播放一区| 在线播放91灌醉迷j高跟美女| 国产日产欧美一区二区三区| 亚洲成人免费视频| 成人白浆超碰人人人人| 日韩一区二区三区电影在线观看| 综合久久给合久久狠狠狠97色| 日韩av网站在线观看| 91亚洲精品一区二区乱码| 日韩精品一区二区三区在线观看| 依依成人综合视频| 成人国产在线观看| 久久久影视传媒| 蜜臀精品一区二区三区在线观看 | 国产麻豆视频一区| 欧美男男青年gay1069videost | 久久99精品国产.久久久久 | 9191精品国产综合久久久久久| 国产精品水嫩水嫩| 久久成人久久爱| 欧美电影影音先锋| 一区二区免费在线播放| 国产成人a级片| 日韩一区二区视频| 亚洲成人三级小说| 色狠狠色狠狠综合| 中文字幕一区在线| 成人国产一区二区三区精品| 精品99999| 免费在线观看精品| 欧美乱熟臀69xxxxxx| 一区二区三区免费| 91美女在线观看| 成人免费在线播放视频| 成人免费三级在线| 日本一区二区三区视频视频| 国内精品久久久久影院一蜜桃| 日韩一级片网站| 日韩av网站免费在线| 欧美日韩精品欧美日韩精品一| 亚洲欧美日本在线| 色婷婷久久一区二区三区麻豆| 亚洲视频在线一区| av电影天堂一区二区在线| 中文字幕一区免费在线观看| caoporen国产精品视频| 1024精品合集| 色综合咪咪久久| 一区二区三区丝袜| 欧美色大人视频| 天天影视涩香欲综合网| 欧美日韩电影在线| 奇米四色…亚洲| 亚洲精品一区二区在线观看| 激情综合亚洲精品| 国产欧美一区二区三区沐欲| 成人免费毛片片v| 日韩理论在线观看| 91国偷自产一区二区三区成为亚洲经典 | 色偷偷成人一区二区三区91| 亚洲精品乱码久久久久久| 欧美性感一区二区三区| 日日夜夜精品视频天天综合网| 欧美一区二区三区啪啪| 麻豆精品在线播放| 国产日本欧美一区二区| 91影院在线免费观看| 亚洲高清免费在线| 精品成人一区二区三区| 懂色av一区二区三区免费看| 亚洲精品综合在线| 欧美二区三区91| 国产精品一二三区| 亚洲精品免费视频| 日韩欧美一区二区在线视频| 国产一区二区91| 伊人夜夜躁av伊人久久| 欧美一区三区二区| 国产黄色精品网站| 一区二区三区欧美激情| 欧美大胆一级视频| 成人精品高清在线| 午夜精品久久久久久久久久| 精品成人一区二区三区| 91网站在线观看视频| 三级欧美在线一区| 日本一区二区高清| 欧美日韩精品免费| 国产成人一级电影| 五月天亚洲精品| 国产精品久久久久久久久图文区| 欧美日韩精品专区| 风间由美性色一区二区三区| 亚洲高清免费在线| 国产精品国产三级国产| 日韩手机在线导航| 在线观看一区二区视频| 国产精品综合二区| 亚洲成人午夜影院| 专区另类欧美日韩| 久久青草国产手机看片福利盒子| 日本高清不卡视频| 国产91丝袜在线18| 美女视频免费一区| 一区二区三区视频在线看| 久久精品免费在线观看| 777午夜精品视频在线播放| 97精品国产露脸对白| 国产伦精品一区二区三区免费迷 | 天堂精品中文字幕在线| 国产精品久久久久久亚洲伦| 日韩精品一区国产麻豆|