📄 arcdump.c
字号:
/* ARCNET trace routines
*/
#include <stdio.h>
#include "global.h"
#include "mbuf.h"
#include "arcnet.h"
#include "trace.h"
void
arc_dump(fp,bpp,check)
FILE *fp;
struct mbuf **bpp;
int check; /* Not used */
{
struct arc ahdr;
char s[20],d[20];
ntoharc(&ahdr,bpp);
parc(s,ahdr.source);
parc(d,ahdr.dest);
fprintf(fp,"Arcnet: len %u %s->%s",ARCLEN + len_p(*bpp),s,d);
switch(ahdr.type){
case ARC_IP:
fprintf(fp," type IP\n");
ip_dump(fp,bpp,1);
break;
case ARC_ARP:
fprintf(fp," type ARP\n");
arp_dump(fp,bpp);
break;
default:
fprintf(fp," type 0x%x\n",ahdr.type);
break;
}
}
int
arc_forus(iface,bp)
struct iface *iface;
struct mbuf *bp;
{
return 1;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -