在Linux下怎么加Plugins形式的dissector?
我按照Developer Guide的例子写了foo.c,然后放到了plugins下面,建了文件夹,把agentx的文件拷了过来,还把它下面的.deps\的两个.Plo拷了过来,然后把所有Make相关的文件都替换了一遍,按照README.plugin里写的步骤把所有目录下的make相关文件改了。可是,./confiure后make总是说plugin.lo出现错误,-t无效什么的。
下面是我用了./autogen.sh 后产生的错误,是不是代码写的有错误才编不过啊?
有没有编译器啊,LINUX下只能build才能发现错误吗?
packet-foo.c:134: error: `hf_foo_pdu_flags' undeclared (first use in this function)
packet-foo.c:135: error: `hf_foo_pdu_startflag' undeclared (first use in this function)
packet-foo.c:136: error: `hf_foo_pdu_endflag' undeclared (first use in this function)
packet-foo.c:137: error: `hf_foo_pdu_priorityflag' undeclared (first use in this function)
packet-foo.c:138: error: `hf_foo_pdu_sequenceno' undeclared (first use in this function)
packet-foo.c:139: error: `hf_foo_pdu_initialip' undeclared (first use in this function)
packet-foo.c: At top level:
packet-foo.c:29: warning: 'hf_foo_engflag' defined but not used
make[3]: *** [packet-foo.lo] Error 1
make[3]: Leaving directory `/home/user1/wireshark-1.0.0/plugins/foo'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/user1/wireshark-1.0.0/plugins'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/user1/wireshark-1.0.0'
make: *** [all] Error 2