Packet Generators

Grigory Kljuchnikov grn@ispras.ru
Wed, 30 May 2001 13:54:36 +0400 (MSK)


On Mon, 28 May 2001, marcelo wrote:

> Hi,
> At Universidad Carlos 3, in LONG project framework, we have migrated MGEN
> application to IPv6 so it can generate and receive all kind of IPv6 packets
> (including Hop by Hop options, routing header and destination options).
> You can find the application at http://www.it.uc3m.es/~alberto/mgen6/
> More information about our project can be found at
> http://long.ccaba.upc.es/.
> We hope you find it usefull, and if you need further information please
> contact us.
>
> marcelo
>

Hello,

I've tried to make mgen6 on FreeBSD 4.1 and have errors:

$ make
gcc -O -D_FREEBSD -g -D_GUI -IFreeBSD/X11R6/LessTif/Motif2.0/include
-I/usr/X11R6/include
 -c mgen.c
mgen.c: In function `SendOptionHeader':
mgen.c:122: `IP6OPT_BINDING_UPDATE' undeclared (first use in this function)
mgen.c:122: (Each undeclared identifier is reported only once
mgen.c:122: for each function it appears in.)
mgen.c:125: `IP6OPT_BINDING_ACK' undeclared (first use in this function)
mgen.c: In function `InsertExtensionHeader':
mgen.c:1071: `IP6OPT_ROUTER_ALERT' undeclared (first use in this function)
mgen.c:1077: `IP6_ALERT_AN' undeclared (first use in this function)
mgen.c:1116: `IP6OPT_HOME_ADDRESS' undeclared (first use in this function)
mgen.c:1129: `IP6OPT_BINDING_UPDATE' undeclared (first use in this function)
mgen.c:1136: `IP6_BUF_HOME' undeclared (first use in this function)
mgen.c:1148: `IP6OPT_BINDING_ACK' undeclared (first use in this function)
mgen.c:1164: `IP6OPT_BINDING_REQ' undeclared (first use in this function)
mgen.c: In function `LoadScript':
mgen.c:1337: `IP6OPT_ROUTER_ALERT' undeclared (first use in this function)
mgen.c:1343: `IP6OPT_HOME_ADDRESS' undeclared (first use in this function)
mgen.c:1346: `IP6OPT_BINDING_UPDATE' undeclared (first use in this function)
mgen.c:1349: `IP6OPT_BINDING_ACK' undeclared (first use in this function)
mgen.c:1352: `IP6OPT_BINDING_REQ' undeclared (first use in this function)
*** Error code 1

There aren't '#defines' for IP6OPT_BINDING*, IP6OPT_ROUTER_ALERT,
IP6OPT_HOME_ADDRESS and ... in
/usr/include/netinet/* and /usr/include/netinet6/*


What is the problem?
Thank you.



Grigory Klyuchnikov, System Engineer,
Institute for System Programming
Russian Academy of Sciences