callwaveiam.c

来自「FERRET - a broadcast analysis tool Th」· C语言 代码 · 共 27 行

C
27
字号
/* Copyright (c) 2007 by Errata Security */
#include "protos.h"
#include "ferret.h"
#include "netframe.h"
#include "formats.h"

#include <ctype.h>
#include <string.h>


void process_callwave_iam(struct Seaper *seap, struct NetFrame *frame, const unsigned char *px, unsigned length)
{
	if (length > 5) {
		if (ex32le(px+1) == (int)length) {
			unsigned op = px[0];
			process_record(seap,
				"proto",	REC_SZ,			"CallWave-IAM",				-1,
				"op",		REC_UNSIGNED,	&op,						sizeof(op),
				"ip.src",	REC_FRAMESRC,	frame,						-1,
				"length",	REC_UNSIGNED,	&length,					sizeof(length),
				0);

		}
	}
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?