> I have developed a HSRP printer, but am unsure how to integrate it into the 
> TCPDump code. I have included first draft code versions.
> 
> What do I need to do?? I think I need to amend interface.h?

Yes, you'd need to declare the HSRP printing routine in "interface.h" -
and you'd also have to modify "print-udp.c" to call the printing routine.

You should also probably put a Berkeley-style copyright notice into both
"print-hsrp.c" and "hsrp.h", and give "hsrp.h" a combination SCCS/RCS ID
in a comment.

Also, update "Makefile.in" to include "print-hsrp.c" in the CSRC macro,
and update "FILES" to include "print-hsrp.c".

By the way, if you're building this on a UNIX system (this includes
Linux and the BSDs), and are using GCC, if you don't already have a
".devel" file in the tcpdump source directory, create an empty ".devel"
file in that directory, run "make distclean", run "configure", and run
"make" - and if there are any warnings issued when it compiles
"print-hsrp.c", fix them.  (The ".devel" file causes the configure
script to set up the Makefile to

        1) generate dependencies

and

        2) turn on some additional options to GCC to do more checks.)
-
This is the TCPDUMP workers list. It is archived at
http://www.tcpdump.org/lists/workers/index.html
To unsubscribe use mailto:[EMAIL PROTECTED]?body=unsubscribe

Reply via email to