网络分析专家论坛 netexpert's Archiver

huxiaozi 发表于 2008-5-16 20:53

请教(: Wireshark开发

改动文件packet-time.c中的:
dissect_time(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
{
   ......
   if (check_col(pinfo->cinfo, COL_PROTOCOL))
    col_set_str(pinfo->cinfo, COL_PROTOCOL, "[color=Red]MY_[/color]TIME");
......
}

函数col_set_str()是将“MY_TIME”设置给 COL_PROTOCOL,即将 Wireshark显示界面中Protocol栏下内容显示[color=Red]MY_[/color]TIME,
重新编译后怎么不显示呢???

我有改动了文件packet-tcp.c中的:
dissect_tcp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
{
    .............
    if (check_col(pinfo->cinfo, COL_PROTOCOL))
    col_set_str(pinfo->cinfo, COL_PROTOCOL, "[color=Red]MY_[/color]TCP");
   .........................
}
还没得到想象中的结果。

请好心人指教,先谢谢大家拉:)

huxiaozi 发表于 2008-5-19 10:27

没人互动啊
自己思考的
可能........
思考......
欢迎有志人士

maypower 发表于 2008-5-19 19:29

帮你顶一下.

sxmines 发表于 2008-6-9 14:38

要将epan目录下的libethereal.dll拷贝到ethereal目录下,启动即可,注意代码要改全,我修改过TCP是可以生效的。

huxiaozi 发表于 2008-6-9 14:40

谢谢 好心人
问题已解决

页: [1]

Powered by Discuz! Archiver 6.1.0  © 2001-2007 Comsenz Inc.