ANNOUNCEMENT: Live Wireshark University & Allegro Packets online APAC Wireshark Training Session
April 17th, 2024 | 14:30-16:00 SGT (UTC+8) | Online

Wireshark-dev: [Wireshark-dev] Tap Compilation Error

From: eymanm <eymanm@xxxxxxxxx>
Date: Thu, 15 Jul 2010 13:48:17 -0400
I'm trying to create a tap by mimicking approach described in README.tapping. Compiler spits the following errors on the "const myprot_call_info_value *ri = arg2;" line:

myprot_stat.c(106) : error C2143: syntax error : missing ';' before '*'
myprot_stat.c(106) : error C2065: 'ri' : undeclared identifier
myprot_stat.c(106) : error C2100: illegal indirection
myprot_stat.c(106) : warning C4047: '=' : 'int' differs in levels of indirection from 'const void *'

Can somebody tell what's going wrong?
Thanks