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

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

?? print-chdlc.c

?? TCPDUMP的C語言源代碼,是在數據鏈路層的應用
?? C
字號:
/* * Copyright (c) 1990, 1991, 1993, 1994, 1995, 1996, 1997 *	The Regents of the University of California.  All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that: (1) source code distributions * retain the above copyright notice and this paragraph in its entirety, (2) * distributions including binary code include the above copyright notice and * this paragraph in its entirety in the documentation or other materials * provided with the distribution, and (3) all advertising materials mentioning * features or use of this software display the following acknowledgement: * ``This product includes software developed by the University of California, * Lawrence Berkeley Laboratory and its contributors.'' Neither the name of * the University nor the names of its contributors may be used to endorse * or promote products derived from this software without specific prior * written permission. * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED * WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. */#ifndef lintstatic const char rcsid[] _U_ =    "@(#) $Header: /tcpdump/master/tcpdump/print-chdlc.c,v 1.43 2005-11-29 08:56:19 hannes Exp $ (LBL)";#endif#ifdef HAVE_CONFIG_H#include "config.h"#endif#include <tcpdump-stdinc.h>#include <pcap.h>#include <stdio.h>#include "interface.h"#include "addrtoname.h"#include "ethertype.h"#include "extract.h"#include "ppp.h"#include "chdlc.h"static void chdlc_slarp_print(const u_char *, u_int);const struct tok chdlc_cast_values[] = {     { CHDLC_UNICAST, "unicast" },    { CHDLC_BCAST, "bcast" },    { 0, NULL}};/* Standard CHDLC printer */u_intchdlc_if_print(const struct pcap_pkthdr *h, register const u_char *p){	register u_int length = h->len;	register u_int caplen = h->caplen;	if (caplen < CHDLC_HDRLEN) {		printf("[|chdlc]");		return (caplen);	}        return (chdlc_print(p,length));}u_intchdlc_print(register const u_char *p, u_int length) {	u_int proto;	proto = EXTRACT_16BITS(&p[2]);	if (eflag) {                printf("%s, ethertype %s (0x%04x), length %u: ",                       tok2str(chdlc_cast_values, "0x%02x", p[0]),                       tok2str(ethertype_values, "Unknown", proto),                       proto,                       length);	}	length -= CHDLC_HDRLEN;	p += CHDLC_HDRLEN;	switch (proto) {	case ETHERTYPE_IP:		ip_print(gndo, p, length);		break;#ifdef INET6	case ETHERTYPE_IPV6:		ip6_print(p, length);		break;#endif	case CHDLC_TYPE_SLARP:		chdlc_slarp_print(p, length);		break;#if 0	case CHDLC_TYPE_CDP:		chdlc_cdp_print(p, length);		break;#endif        case ETHERTYPE_MPLS:        case ETHERTYPE_MPLS_MULTI:                mpls_print(p, length);		break;        case ETHERTYPE_ISO:                /* is the fudge byte set ? lets verify by spotting ISO headers */                if (*(p+1) == 0x81 ||                    *(p+1) == 0x82 ||                    *(p+1) == 0x83)                    isoclns_print(p+1, length-1, length-1);                else                    isoclns_print(p, length, length);                break;	default:                if (!eflag)                        printf("unknown CHDLC protocol (0x%04x)", proto);                break;	}	return (CHDLC_HDRLEN);}/* * The fixed-length portion of a SLARP packet. */struct cisco_slarp {	u_int8_t code[4];#define SLARP_REQUEST	0#define SLARP_REPLY	1#define SLARP_KEEPALIVE	2	union {		struct {			u_int8_t addr[4];			u_int8_t mask[4];		} addr;		struct {			u_int8_t myseq[4];			u_int8_t yourseq[4];			u_int8_t rel[2];		} keep;	} un;};#define SLARP_MIN_LEN	14#define SLARP_MAX_LEN	18static voidchdlc_slarp_print(const u_char *cp, u_int length){	const struct cisco_slarp *slarp;        u_int sec,min,hrs,days;        printf("SLARP (length: %u), ",length);	if (length < SLARP_MIN_LEN)		goto trunc;	slarp = (const struct cisco_slarp *)cp;	TCHECK2(*slarp, SLARP_MIN_LEN);	switch (EXTRACT_32BITS(&slarp->code)) {	case SLARP_REQUEST:		printf("request");		/*		 * At least according to William "Chops" Westfield's		 * message in		 *		 *	http://www.nethelp.no/net/cisco-hdlc.txt		 *		 * the address and mask aren't used in requests -		 * they're just zero.		 */		break;	case SLARP_REPLY:		printf("reply %s/%s",			ipaddr_string(&slarp->un.addr.addr),			ipaddr_string(&slarp->un.addr.mask));		break;	case SLARP_KEEPALIVE:		printf("keepalive: mineseen=0x%08x, yourseen=0x%08x, reliability=0x%04x",                       EXTRACT_32BITS(&slarp->un.keep.myseq),                       EXTRACT_32BITS(&slarp->un.keep.yourseq),                       EXTRACT_16BITS(&slarp->un.keep.rel));                if (length >= SLARP_MAX_LEN) { /* uptime-stamp is optional */                        cp += SLARP_MIN_LEN;                        if (!TTEST2(*cp, 4))                                goto trunc;                        sec = EXTRACT_32BITS(cp) / 1000;                        min = sec / 60; sec -= min * 60;                        hrs = min / 60; min -= hrs * 60;                        days = hrs / 24; hrs -= days * 24;                        printf(", link uptime=%ud%uh%um%us",days,hrs,min,sec);                }		break;	default:		printf("0x%02x unknown", EXTRACT_32BITS(&slarp->code));                if (vflag <= 1)                    print_unknown_data(cp+4,"\n\t",length-4);		break;	}	if (SLARP_MAX_LEN < length && vflag)		printf(", (trailing junk: %d bytes)", length - SLARP_MAX_LEN);        if (vflag > 1)            print_unknown_data(cp+4,"\n\t",length-4);	return;trunc:	printf("[|slarp]");}/* * Local Variables: * c-style: whitesmith * c-basic-offset: 8 * End: */

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
精品美女在线观看| 亚洲免费在线视频一区 二区| 欧美人动与zoxxxx乱| 欧美四级电影网| 欧美日韩亚洲综合在线 欧美亚洲特黄一级| 99精品国产热久久91蜜凸| 成人av午夜电影| av资源网一区| 91啪亚洲精品| 色8久久精品久久久久久蜜| 欧美自拍偷拍一区| 欧美色网一区二区| 欧美一区在线视频| 2023国产一二三区日本精品2022| 精品久久久久久久久久久院品网| 欧美大尺度电影在线| 久久精品男人的天堂| 一区在线中文字幕| 亚洲精品欧美综合四区| 亚洲国产欧美日韩另类综合| 日韩高清在线电影| 久久99精品久久久久久动态图| 久久精品国产第一区二区三区| 国产乱码字幕精品高清av| 国产成人精品亚洲777人妖| 暴力调教一区二区三区| 91福利国产精品| 日韩欧美久久久| 国产精品久久久久毛片软件| 一区二区在线观看免费视频播放| 五月天一区二区| 国产最新精品免费| 色诱视频网站一区| 日韩欧美在线一区二区三区| 国产精品天天看| 亚洲一区免费视频| 精品一区二区三区久久| 成人午夜大片免费观看| 欧美图区在线视频| 久久婷婷色综合| 亚洲在线视频网站| 国产永久精品大片wwwapp| 91麻豆免费看片| 欧洲色大大久久| 欧美精品一区二区三区蜜桃视频| 亚洲国产精品t66y| 图片区小说区区亚洲影院| 国产成人在线色| 欧美日韩国产三级| 中文字幕不卡的av| 日韩不卡一二三区| 成人动漫精品一区二区| 日韩亚洲欧美中文三级| 国产精品电影院| 久久草av在线| 欧美日韩在线不卡| 国产精品每日更新在线播放网址 | 蜜桃视频在线观看一区| 成人伦理片在线| 欧美一二三区精品| 亚洲精品成人a在线观看| 国产精品亚洲专一区二区三区| 欧美日韩国产综合视频在线观看| 日本一区二区三区高清不卡| 午夜欧美电影在线观看| 波多野结衣精品在线| 欧美成人伊人久久综合网| 一二三区精品视频| a在线播放不卡| 久久亚区不卡日本| 免费成人你懂的| 在线观看一区二区视频| 国产精品福利一区| 国产成人亚洲精品狼色在线| 制服丝袜日韩国产| 亚洲二区视频在线| 色综合天天天天做夜夜夜夜做| 国产亚洲欧美在线| 国内精品伊人久久久久av一坑| 欧美一区三区四区| 亚洲成人在线网站| 欧洲生活片亚洲生活在线观看| 成人免费在线视频观看| 国产91高潮流白浆在线麻豆| 精品久久久久久久人人人人传媒| 琪琪一区二区三区| 欧美一区午夜精品| 日韩av一级片| 欧美一区二区高清| 日精品一区二区三区| 欧美日韩在线三区| 午夜久久久久久| 欧美三日本三级三级在线播放| 一区二区三区四区乱视频| 波多野结衣亚洲| 中文字幕日韩欧美一区二区三区| 成人av资源站| 亚洲国产成人一区二区三区| 成人亚洲精品久久久久软件| 久久午夜老司机| 国产白丝精品91爽爽久久| 久久嫩草精品久久久久| 国产91富婆露脸刺激对白| 国产日韩精品一区二区三区| 国产福利精品导航| 国产精品欧美一区二区三区| 国产不卡在线一区| 中文字幕一区二区三| 色综合久久综合网97色综合| 亚洲欧美日韩国产综合在线| 日本精品视频一区二区三区| 亚洲五码中文字幕| 69av一区二区三区| 激情五月播播久久久精品| 久久亚洲一区二区三区四区| 国产精品正在播放| 国产精品国产a| 在线精品亚洲一区二区不卡| 亚洲成av人影院| 日韩欧美一区二区在线视频| 国产精品亚洲а∨天堂免在线| 国产精品免费丝袜| 在线观看一区不卡| 视频一区在线播放| 久久你懂得1024| 色综合中文字幕国产| 亚洲影院在线观看| 日韩一区二区免费高清| 国产精品亚洲第一| 有码一区二区三区| 日韩一区二区免费高清| 高清成人免费视频| 亚洲综合激情网| 精品入口麻豆88视频| av一二三不卡影片| 婷婷综合五月天| 久久精品在线免费观看| 色婷婷一区二区三区四区| 天堂蜜桃一区二区三区| 久久久久久综合| 欧洲精品中文字幕| 国产美女精品一区二区三区| 亚洲欧美在线高清| 日韩精品最新网址| 91亚洲午夜精品久久久久久| 日本欧美在线看| 亚洲欧洲av在线| 日韩午夜激情电影| 色综合天天做天天爱| 蜜桃精品视频在线| 亚洲私人黄色宅男| 精品国产免费视频| 色婷婷亚洲综合| 国产伦精品一区二区三区免费| 亚洲一区二区在线视频| 国产午夜精品福利| 91精品欧美久久久久久动漫| 成人app在线观看| 开心九九激情九九欧美日韩精美视频电影 | 久草中文综合在线| 亚洲蜜臀av乱码久久精品| 精品电影一区二区| 欧美亚洲一区三区| 懂色一区二区三区免费观看| 日韩高清中文字幕一区| 亚洲人成影院在线观看| 久久一区二区三区四区| 7777精品伊人久久久大香线蕉经典版下载| 粉嫩绯色av一区二区在线观看| 日韩成人午夜精品| 中文字幕亚洲在| 久久亚洲精精品中文字幕早川悠里 | 99re成人精品视频| 国产九色精品成人porny| 热久久一区二区| 亚洲影院免费观看| 国产精品污网站| 久久婷婷国产综合精品青草| 欧美一级理论性理论a| 99精品在线免费| 成人免费的视频| 国产呦萝稀缺另类资源| 麻豆成人综合网| 天天色天天爱天天射综合| 一区二区三区在线播放| 亚洲欧美区自拍先锋| 欧美经典三级视频一区二区三区| 欧美mv和日韩mv国产网站| 欧美丰满一区二区免费视频 | 日韩美女在线视频| 欧美性一区二区| 一本大道久久a久久精二百| 91免费看视频| av一区二区三区| 粉嫩在线一区二区三区视频| 日韩精品一区第一页| 久久精品水蜜桃av综合天堂| 欧美亚洲国产一区二区三区| 99久久国产免费看| 蜜乳av一区二区三区|