Re: ipfw versions - /usr/src/sbin

2006-10-17 Thread Alvin Oga
  Alvin Oga wrote:
   
  i need to change the lines:
  #
  # line 3484 in ipfw2.c  v1.99 
  #
  if ( p.fs.qsize  100 )
  errx ( EX_DATAERR, 2 = queue size = 100 )
  
  the 100 need to be changed to 10,000  to allow for a bigger queue 
  according to the customer that wants to use ipfw + dummynet for
  testing gigE thruput
 
...

 src/sys/netinet/ip_dummynet.c:
 
 set_fs_parms(struct dn_flow_set *x, struct dn_flow_set *src)
 {
x-flags_fs = src-flags_fs;
x-qsize = src-qsize;
x-plr = src-plr;
x-flow_mask = src-flow_mask;
if (x-flags_fs  DN_QSIZE_IS_BYTES) {
if (x-qsize  1024*1024)
x-qsize = 1024*1024 ;
} else {
if (x-qsize == 0)
x-qsize = 50 ;
if (x-qsize  100)
x-qsize = 50 ;

we're changing the 100 to 1

}

...

 If I just remove this limit, will I hit some other limits in
 dummynet code (except overall KVA or UMA zone limit)?

there's other equivalent ( gigE ) changes we're making in:

src/sys/dev/em/if/en.h
/etc/sysctl.conf
ipfw2.c
DUMMYNET kernel ( modified GENERIC )
.. and still hunting for more options to see if we can go
.. bigger and faster than the generic bear

c ya
alvin

___
freebsd-ipfw@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ipfw
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: ipfw versions - /usr/src/sbin - solved

2006-10-13 Thread Alvin Oga

hi andrey

- solved ...

Forwarded message:
 
  Andrey V. Elsukov wrote:
 
...

   Which FreeBSD version you use?
 
  i'm using a generic freebsd-6.1 ( from its official cd )
  
  i have done portupgrades -arR but nothing more to the system
  
  i have modified the default GENERIC kernel to DUMMYNET.nn 
  that includes IPFIREWALL
  
 
...

   And why you want to use another version of ipfw?
   
  i need to change the lines:
  #
  # line 3484 in ipfw2.c  v1.99 
  #
  if ( p.fs.qsize  100 )
  errx ( EX_DATAERR, 2 = queue size = 100 )
 
 the 100 need to be changed to 10,000  to allow for a bigger queue 
 according to the customer that wants to use ipfw + dummynet for
 testing gigE thruput
 
yes ... hopefully, we'll be changing the related/affected values

  Please, provide output of these commands:
  # uname -a
 
 FreeBSD FreeBSD2.BSD-Consulting.org 6.1-RELEASE FreeBSD 6.1-RELEASE #0: Thu 
 Oct  5 00:43:06 PDT 2006 [EMAIL 
 PROTECTED]:/usr/src/sys/i386/compile/DUMMYNET.nn  i386
 
  # sysctl kern | grep osrel
 
 ysctl kern | grep osrel
 kern.osrelease: 6.1-RELEASE
 kern.osreldate: 601000
 
  # grep ^REV /usr/src/sys/conf/newvers.sh
 
 REVISION=6.1
 
  # ident /usr/src/sbin/ipfw/ipfw2.c
 
   #
   # remember that i did a cvs checkout for this version
   # in /usr/src/sbin where i created /usr/src/sbin that didn't exist
   #
 /usr/src/sbin/ipfw/ipfw2.c:
  $FreeBSD: /repoman/r/ncvs/src/sbin/ipfw/ipfw2.c,v 1.99 2006/09/29 
 08:00:40 maxim Exp $
 
  # ident /usr/src/sys/netinet/ip_fw.h
  
 /usr/src/sys/netinet/ip_fw.h:
  $FreeBSD: src/sys/netinet/ip_fw.h,v 1.100.2.3 2006/02/17 16:46:47 ru Exp 
 $
 


 #
 # my cvs checkout of ipfw
 #
 cd /usr/src/sbin
 setenv CVSROOT [EMAIL PROTECTED]:/home/ncvs 
 setenv CVS_RSH ssh
 cvs co ipfw

per your online reply, that i didnt see, looks like the proper cvs command is:

cvs co -r RELENG_6_1 ipfw

now it compiles under freebsd-6.1
and i've made the changes to p.fs.qsize

 #   cvs checkout: Updating ipfw
 #   U ipfw/Makefile
 #   U ipfw/ipfw.8
 #   U ipfw/ipfw2.c
 #
 # End of stuff
 
thanx
alvin

___
freebsd-ipfw@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ipfw
To unsubscribe, send any mail to [EMAIL PROTECTED]