Networking Forums

Networking Forums > Computer Networking > Linux Networking > nistnet build problems

Reply
Thread Tools Display Modes

nistnet build problems

 
 
Shai Revzen
Guest
Posts: n/a

 
      05-05-2004, 10:11 PM
I've bumped into a few people who are having trouble building the
NistNet network simulation tool on newer 2.4 kernels (I haven't tried it
on 2.6's) and/or with gcc >3.0

Here's a patch that works for me (provided as-is, your mileage may vary...)

--Shai


*** nistnet/include/nistnet.h 2001-07-23 12:24:18.000000000 -0700
--- nistnet-shai/include/nistnet.h 2004-05-03 14:24:02.000000000 -0700
***************
*** 158,165 ****
#ifdef __KERNEL__
#include <net/protocol.h>
#endif
- #include <linux/igmp.h>
#endif

struct lin_mungestats {
struct iphdr ip;
--- 158,165 ----
#ifdef __KERNEL__
#include <net/protocol.h>
#endif
#endif
+ #include <linux/igmp.h>

struct lin_mungestats {
struct iphdr ip;
*** nistnet/cli/hitbox.c 2001-01-23 16:06:08.000000000 -0800
--- nistnet-shai/cli/hitbox.c 2004-05-03 14:43:39.000000000 -0700
***************
*** 174,194 ****
void
Usage(void)
{
! fprintf(stderr, "Usage: hitbox\n\
! -u up (on)\n\
! -d down (off)\n\
#ifdef CONFIG_ECN
! -a src dest delay delsigma bandwidth drop dup drdmin drdmax drdcongestion add new\n\
#else
! -a src dest delay delsigma bandwidth drop dup drdmin drdmax add new\n\
#endif
! -r src dest remove\n\
! -s src dest see stats\n\
! -S src dest see stats continuously\n\
! -R read table\n\
! -D debug on\n\
! -U debug off\n\
! -G global stats\n");
exit(1);
}

--- 174,194 ----
void
Usage(void)
{
! fprintf(stderr, "Usage: hitbox\n"
! " -u up (on)\n"
! " -d down (off)\n"
#ifdef CONFIG_ECN
! " -a src dest delay delsigma bandwidth drop dup drdmin drdmax drdcongestion add new\n"
#else
! " -a src dest delay delsigma bandwidth drop dup drdmin drdmax add new\n"
#endif
! " -r src dest remove\n"
! " -s src dest see stats\n"
! " -S src dest see stats continuously\n"
! " -R read table\n"
! " -D debug on\n"
! " -U debug off\n"
! " -G global stats\n");
exit(1);
}


 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
I can't get Nistnet to work - Please help Al Linux Networking 6 03-10-2007 08:08 PM
NISTnet not working properly Deepz Linux Networking 4 07-28-2006 03:53 PM
NistNet Bit-Error JonLangdon Linux Networking 0 12-15-2004 03:29 PM
NISTNet & kernel 2.6 Paul Gibbs Linux Networking 1 09-14-2004 03:09 AM
Config bandwidth with NISTNet ? Frank Chu Linux Networking 0 05-13-2004 07:49 PM



1 2 3 4 5 6 7 8 9 10 11