A
Alexander Bartzas
I'm trying to compile route.cpp part of the NetBench Suite (UCLA) and...:
There is no problem in the compilation of the code but when I try to run
it...
Segmentation fault (core dumped)
I've located where the problem is... It is part of the following function's
code:
int rtrequest(int req, struct sockaddr *Dst, struct sockaddr *Gateway,
struct sockaddr *Netmask, int flags, class rtentry **ret_nrt)
{
register class rtentry *rt;
register class radix_node *rn;
register class radix_node_head *rnh;
struct ifaddr *ifa;
struct sockaddr *Ndst;
....
rt->rt_ifp = (struct ifnet *) ifa->ifa_ifp;
....}
rt_ifp is of type struct ifnet *
I don't what to do to overcome the problem.
Any help is welcomed.
Thanks in advance
Alexander Bartzas
cc packet.c radix.c route.c -o route
There is no problem in the compilation of the code but when I try to run
it...
Segmentation fault (core dumped)
I've located where the problem is... It is part of the following function's
code:
int rtrequest(int req, struct sockaddr *Dst, struct sockaddr *Gateway,
struct sockaddr *Netmask, int flags, class rtentry **ret_nrt)
{
register class rtentry *rt;
register class radix_node *rn;
register class radix_node_head *rnh;
struct ifaddr *ifa;
struct sockaddr *Ndst;
....
rt->rt_ifp = (struct ifnet *) ifa->ifa_ifp;
....}
rt_ifp is of type struct ifnet *
I don't what to do to overcome the problem.
Any help is welcomed.
Thanks in advance
Alexander Bartzas