svn commit: r194624 - stable/7/sbin/ipfw

2009-06-22 Thread Luigi Rizzo
Author: luigi Date: Mon Jun 22 14:21:14 2009 New Revision: 194624 URL: http://svn.freebsd.org/changeset/base/194624 Log: MFC: various minor fixes including - use a format string in a printf() - move a variable declaration at the beginning of a block - const-ify strings - fix prototypes

svn commit: r194625 - stable/7/sbin/ipfw

2009-06-22 Thread Luigi Rizzo
Author: luigi Date: Mon Jun 22 14:32:47 2009 New Revision: 194625 URL: http://svn.freebsd.org/changeset/base/194625 Log: MFC: another prototype missed in previous commit Modified: stable/7/sbin/ipfw/nat.c Modified: stable/7/sbin/ipfw/nat.c

svn commit: r194631 - head/release/picobsd/build

2009-06-22 Thread Luigi Rizzo
Author: luigi Date: Mon Jun 22 15:45:26 2009 New Revision: 194631 URL: http://svn.freebsd.org/changeset/base/194631 Log: Add code to generate a bootable ISO image, so we are finally free from the 2.88MB that we had using El Torito emulation. The --iso option was already there, just

svn commit: r194635 - head/release/picobsd/build

2009-06-22 Thread Luigi Rizzo
Author: luigi Date: Mon Jun 22 16:06:38 2009 New Revision: 194635 URL: http://svn.freebsd.org/changeset/base/194635 Log: fix wrong name for the iso! Modified: head/release/picobsd/build/picobsd Modified: head/release/picobsd/build/picobsd

svn commit: r194947 - head/share/man/man8

2009-06-25 Thread Luigi Rizzo
Author: luigi Date: Thu Jun 25 09:28:04 2009 New Revision: 194947 URL: http://svn.freebsd.org/changeset/base/194947 Log: update the manpage to track existing options (including --iso), and alphabetize them. MFC after:3 days Modified: head/share/man/man8/picobsd.8 Modified:

svn commit: r194948 - stable/7/release/picobsd/build

2009-06-25 Thread Luigi Rizzo
Author: luigi Date: Thu Jun 25 09:28:44 2009 New Revision: 194948 URL: http://svn.freebsd.org/changeset/base/194948 Log: MFC: enable creation of ISO images Modified: stable/7/release/picobsd/build/picobsd Modified: stable/7/release/picobsd/build/picobsd

svn commit: r197119 - head/release/picobsd/bridge

2009-09-12 Thread Luigi Rizzo
Author: luigi Date: Sat Sep 12 15:50:08 2009 New Revision: 197119 URL: http://svn.freebsd.org/changeset/base/197119 Log: ifconfig now needs -ljail (this needs to go to RELENG_8 as well after the release is out) MFC after:1 month Modified: head/release/picobsd/bridge/crunch.conf

svn commit: r197137 - head/sys/kern

2009-09-12 Thread Luigi Rizzo
Author: luigi Date: Sat Sep 12 21:44:34 2009 New Revision: 197137 URL: http://svn.freebsd.org/changeset/base/197137 Log: Make sure callouts are not processed one tick late. The problem was introduced in SVN 180608/ rev 1.114 and affects all users of callout_reset() (including select,

svn commit: r198136 - head/tools/tools/netrate/netsend

2009-10-15 Thread Luigi Rizzo
Author: luigi Date: Thu Oct 15 15:30:41 2009 New Revision: 198136 URL: http://svn.freebsd.org/changeset/base/198136 Log: Support the specification of a range of destination ports e.g. netsend 127.0.0.1 - [payloadsize] [packet_rate] [duration] This is useful to test the

svn commit: r199040 - head/release/picobsd/bridge

2009-11-08 Thread Luigi Rizzo
Author: luigi Date: Sun Nov 8 08:59:40 2009 New Revision: 199040 URL: http://svn.freebsd.org/changeset/base/199040 Log: create an SMP kernel by default in picobsd Modified: head/release/picobsd/bridge/PICOBSD Modified: head/release/picobsd/bridge/PICOBSD

svn commit: r206339 - head/sys/netinet/ipfw

2010-04-07 Thread Luigi Rizzo
Author: luigi Date: Wed Apr 7 08:23:58 2010 New Revision: 206339 URL: http://svn.freebsd.org/changeset/base/206339 Log: Hopefully fix the recent breakage in rule deletion. A few more tests and this will also go into -stable where the problem is more critical. Modified:

svn commit: r206340 - stable/8/sys/netinet/ipfw

2010-04-07 Thread Luigi Rizzo
Author: luigi Date: Wed Apr 7 12:42:49 2010 New Revision: 206340 URL: http://svn.freebsd.org/changeset/base/206340 Log: fix breakage in ipfw removal. Modified: stable/8/sys/netinet/ipfw/ip_fw_sockopt.c Modified: stable/8/sys/netinet/ipfw/ip_fw_sockopt.c

svn commit: r206341 - head/sys/modules/dummynet

2010-04-07 Thread Luigi Rizzo
Author: luigi Date: Wed Apr 7 13:02:20 2010 New Revision: 206341 URL: http://svn.freebsd.org/changeset/base/206341 Log: add priority scheduler to the module Modified: head/sys/modules/dummynet/Makefile Modified: head/sys/modules/dummynet/Makefile

svn commit: r206342 - in stable/8/sys: conf modules/dummynet netinet/ipfw netinet/ipfw/test

2010-04-07 Thread Luigi Rizzo
Author: luigi Date: Wed Apr 7 13:18:58 2010 New Revision: 206342 URL: http://svn.freebsd.org/changeset/base/206342 Log: add priority scheduler. Added: stable/8/sys/netinet/ipfw/dn_sched_prio.c (contents, props changed) Modified: stable/8/sys/conf/files

svn commit: r206425 - head/sys/netinet/ipfw

2010-04-09 Thread Luigi Rizzo
Author: luigi Date: Fri Apr 9 16:06:53 2010 New Revision: 206425 URL: http://svn.freebsd.org/changeset/base/206425 Log: no need to pass an argument to dn_compat_calc_size() MFC after:3 days Modified: head/sys/netinet/ipfw/ip_dn_glue.c head/sys/netinet/ipfw/ip_dn_private.h

svn commit: r206428 - head/sys/netinet/ipfw

2010-04-09 Thread Luigi Rizzo
Author: luigi Date: Fri Apr 9 18:02:19 2010 New Revision: 206428 URL: http://svn.freebsd.org/changeset/base/206428 Log: This commit enables partial operation of dummynet with kernels compiled with options VIMAGE. As it is now, there is still a single instance of the pipes, and it is only

svn commit: r206494 - head/sbin/ipfw

2010-04-12 Thread Luigi Rizzo
Author: luigi Date: Mon Apr 12 08:27:53 2010 New Revision: 206494 URL: http://svn.freebsd.org/changeset/base/206494 Log: fix a buffer overflow with large (100k+) number of input lines. MFC after:3 days Modified: head/sbin/ipfw/main.c Modified: head/sbin/ipfw/main.c

svn commit: r206497 - in head: sbin/geom/class sbin/geom/class/sched sys/geom/sched sys/modules/geom sys/modules/geom/geom_sched sys/modules/geom/geom_sched/gs_sched sys/modules/geom/geom_sched/gsc...

2010-04-12 Thread Luigi Rizzo
Mon Apr 12 16:37:45 2010 (r206497) @@ -0,0 +1,123 @@ +/*- + * Copyright (c) 2009 Fabio Checconi, Luigi Rizzo + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions

Re: svn commit: r206497 - in head: sbin/geom/class sbin/geom/class/sched sys/geom/sched sys/modules/geom sys/modules/geom/geom_sched sys/modules/geom/geom_sched/gs_sched sys/modules/geom/geom_sched/gs

2010-04-12 Thread Luigi Rizzo
On Mon, Apr 12, 2010 at 10:49:26PM +0200, Pawel Jakub Dawidek wrote: ... @@ -0,0 +1,19 @@ +# GEOM_LIBRARY_PATH +# $FreeBSD$ + +.PATH: /usr/src/sbin/geom/misc + +CFLAGS += -I/usr/src/sbin/geom This doesn't look right. probably a leftover from older versions of this code for 6.x .

svn commit: r206550 - head/sbin/geom/class/sched

2010-04-13 Thread Luigi Rizzo
Author: luigi Date: Tue Apr 13 09:52:42 2010 New Revision: 206550 URL: http://svn.freebsd.org/changeset/base/206550 Log: use correct .PATH, remove unused CFLAGS Modified: head/sbin/geom/class/sched/Makefile Modified: head/sbin/geom/class/sched/Makefile

svn commit: r206551 - head/sys/geom/sched

2010-04-13 Thread Luigi Rizzo
Author: luigi Date: Tue Apr 13 09:53:08 2010 New Revision: 206551 URL: http://svn.freebsd.org/changeset/base/206551 Log: make code compile with KTR Modified: head/sys/geom/sched/g_sched.c Modified: head/sys/geom/sched/g_sched.c

svn commit: r206552 - in head: sbin/geom/class/sched sys/geom/sched

2010-04-13 Thread Luigi Rizzo
(r206551) +++ head/sbin/geom/class/sched/geom_sched.c Tue Apr 13 09:56:17 2010 (r206552) @@ -1,5 +1,6 @@ /*- - * Copyright (c) 2009 Fabio Checconi, Luigi Rizzo + * Copyright (c) 2009 Fabio Checconi + * Copyright (c) 2010 Luigi Rizzo, Universita` di Pisa * All rights reserved

Re: svn commit: r206497 - in head: sbin/geom/class sbin/geom/class/sched sys/geom/sched sys/modules/geom sys/modules/geom/geom_sched sys/modules/geom/geom_sched/gs_sched sys/modules/geom/geom_sched/gs

2010-04-13 Thread Luigi Rizzo
On Tue, Apr 13, 2010 at 09:35:00PM +0200, Roman Divacky wrote: you dont seem to have commited the anticipatory scheduler gsched_as. why? gsched_rr has anticipation too, and is the production quality one, so i only included that one in the svn repository. You can find other schedulers in the

Re: svn commit: r206497 - in head: sbin/geom/class sbin/geom/class/sched sys/geom/sched sys/modules/geom sys/modules/geom/geom_sched sys/modules/geom/geom_sched/gs_sched sys/modules/geom/geom_sched/gs

2010-04-14 Thread Luigi Rizzo
[Cc-ing Fabio as he may have more details] On Wed, Apr 14, 2010 at 09:46:17AM +0200, Pawel Jakub Dawidek wrote: On Mon, Apr 12, 2010 at 11:05:12PM +0200, Luigi Rizzo wrote: On Mon, Apr 12, 2010 at 10:49:26PM +0200, Pawel Jakub Dawidek wrote: ... @@ -0,0 +1,19 @@ +# GEOM_LIBRARY_PATH

Re: svn commit: r206497 - in head: sbin/geom/class sbin/geom/class/sched sys/geom/sched sys/modules/geom sys/modules/geom/geom_sched sys/modules/geom/geom_sched/gs_sched sys/modules/geom/geom_sched/gs

2010-04-15 Thread Luigi Rizzo
On Wed, Apr 14, 2010 at 11:01:17PM +0200, Pawel Jakub Dawidek wrote: On Wed, Apr 14, 2010 at 06:05:54PM +0200, Fabio Checconi wrote: - Some classes (from a quick look I've seen only g_mirror, but I'm pretty sure there were some other ones) cache pointers to their providers. With

svn commit: r206843 - head/sbin/ipfw

2010-04-19 Thread Luigi Rizzo
Author: luigi Date: Mon Apr 19 15:11:45 2010 New Revision: 206843 URL: http://svn.freebsd.org/changeset/base/206843 Log: Slightly different handling of printf/snprintf for unaligned uint64_t, which should improve readability, and also to ease the port to platforms that do not support %llu

svn commit: r206845 - in head/sys/netinet: . ipfw

2010-04-19 Thread Luigi Rizzo
Author: luigi Date: Mon Apr 19 16:17:30 2010 New Revision: 206845 URL: http://svn.freebsd.org/changeset/base/206845 Log: whitespace fixes (trailing whitespace, bad indentation after a merge, etc.) Modified: head/sys/netinet/ip_dummynet.h head/sys/netinet/ipfw/dn_sched.h

svn commit: r206846 - head/sbin/ipfw

2010-04-19 Thread Luigi Rizzo
Author: luigi Date: Mon Apr 19 16:35:47 2010 New Revision: 206846 URL: http://svn.freebsd.org/changeset/base/206846 Log: fix 64-bit build Reported by: Robert Noland Modified: head/sbin/ipfw/ipfw2.c Modified: head/sbin/ipfw/ipfw2.c

Re: svn commit: r206843 - head/sbin/ipfw

2010-04-19 Thread Luigi Rizzo
On Mon, Apr 19, 2010 at 11:01:40AM -0500, Robert Noland wrote: ... +#ifdef TCC +#define U64_FMT I64 +#else +#define U64_FMT llu This is broken on amd64. It either needs casting or the following patch... thanks, i prefer passing through an unsigned long long as in the previous version

Re: svn commit: r206843 - head/sbin/ipfw

2010-04-19 Thread Luigi Rizzo
On Mon, Apr 19, 2010 at 03:44:25PM -0700, Julian Elischer wrote: On 4/19/10 9:01 AM, Robert Noland wrote: Luigi Rizzo wrote: [...] Index: sbin/ipfw/ipfw2.c === --- sbin/ipfw/ipfw2.c (revision 206844) +++ sbin/ipfw

svn commit: r206899 - in stable/8: sbin/geom/class sbin/geom/class/sched sys/geom/sched sys/modules/geom sys/modules/geom/geom_sched

2010-04-20 Thread Luigi Rizzo
) +++ stable/8/sbin/geom/class/sched/geom_sched.c Tue Apr 20 15:23:12 2010 (r206899) @@ -1,5 +1,6 @@ /*- - * Copyright (c) 2009 Fabio Checconi, Luigi Rizzo + * Copyright (c) 2009 Fabio Checconi + * Copyright (c) 2010 Luigi Rizzo, Universita` di Pisa * All rights reserved. * * Redistribution

svn commit: r206929 - stable/8/sys/geom/sched

2010-04-20 Thread Luigi Rizzo
Author: luigi Date: Tue Apr 20 21:33:14 2010 New Revision: 206929 URL: http://svn.freebsd.org/changeset/base/206929 Log: MFC r206551 (forgotten in previous commit): fix builds with ktr Modified: stable/8/sys/geom/sched/g_sched.c Directory Properties: stable/8/sys/geom/sched/ (props

Re: svn commit: r208857 - head/sys/netinet

2010-06-05 Thread Luigi Rizzo
On Sat, Jun 05, 2010 at 09:39:53PM +, Randall Stewart wrote: Author: rrs Date: Sat Jun 5 21:39:52 2010 New Revision: 208857 URL: http://svn.freebsd.org/changeset/base/208857 Log: Purge out a Windows def that somehow slipped past the scrubber. i wonder if it makes sense to scrub

Re: svn commit: r208857 - head/sys/netinet

2010-06-05 Thread Luigi Rizzo
. cheers luigi R On Jun 5, 2010, at 5:44 PM, Luigi Rizzo wrote: On Sat, Jun 05, 2010 at 09:39:53PM +, Randall Stewart wrote: Author: rrs Date: Sat Jun 5 21:39:52 2010 New Revision: 208857 URL: http://svn.freebsd.org/changeset/base/208857 Log: Purge out a Windows def that somehow

svn commit: r210119 - head/sys/netinet/ipfw

2010-07-15 Thread Luigi Rizzo
Author: luigi Date: Thu Jul 15 14:37:02 2010 New Revision: 210119 URL: http://svn.freebsd.org/changeset/base/210119 Log: fix a comment and final empty line Modified: head/sys/netinet/ipfw/dn_heap.c Modified: head/sys/netinet/ipfw/dn_heap.c

svn commit: r210120 - head/sys/netinet/ipfw

2010-07-15 Thread Luigi Rizzo
Author: luigi Date: Thu Jul 15 14:37:59 2010 New Revision: 210120 URL: http://svn.freebsd.org/changeset/base/210120 Log: whitespace fixes Modified: head/sys/netinet/ipfw/ip_fw2.c Modified: head/sys/netinet/ipfw/ip_fw2.c

svn commit: r210121 - head/sys/net

2010-07-15 Thread Luigi Rizzo
Author: luigi Date: Thu Jul 15 14:41:06 2010 New Revision: 210121 URL: http://svn.freebsd.org/changeset/base/210121 Log: small portability fix to build on linux/windows Modified: head/sys/net/pfil.h Modified: head/sys/net/pfil.h

svn commit: r210122 - head/sys/net

2010-07-15 Thread Luigi Rizzo
Author: luigi Date: Thu Jul 15 14:41:59 2010 New Revision: 210122 URL: http://svn.freebsd.org/changeset/base/210122 Log: whitespace cleanup Modified: head/sys/net/radix.c Modified: head/sys/net/radix.c == ---

svn commit: r210123 - head/sys/netinet/ipfw

2010-07-15 Thread Luigi Rizzo
Author: luigi Date: Thu Jul 15 14:43:12 2010 New Revision: 210123 URL: http://svn.freebsd.org/changeset/base/210123 Log: remove some conditional #ifdefs (no-op on FreeBSD); run the timer routine on cpu 0. Modified: head/sys/netinet/ipfw/ip_fw_dynamic.c Modified:

svn commit: r210125 - head/release/picobsd/qemu

2010-07-15 Thread Luigi Rizzo
Author: luigi Date: Thu Jul 15 16:32:59 2010 New Revision: 210125 URL: http://svn.freebsd.org/changeset/base/210125 Log: add some modern stuff: SMP, SCHED_ULE, PREEMPTION and support for VIMAGE Modified: head/release/picobsd/qemu/PICOBSD head/release/picobsd/qemu/crunch.conf Modified:

Re: svn commit: r210121 - head/sys/net

2010-07-17 Thread Luigi Rizzo
On Sat, Jul 17, 2010 at 02:21:48PM +0100, Rui Paulo wrote: On 15 Jul 2010, at 15:41, Luigi Rizzo wrote: Author: luigi Date: Thu Jul 15 14:41:06 2010 New Revision: 210121 URL: http://svn.freebsd.org/changeset/base/210121 Log: small portability fix to build on linux/windows

Re: moving sctp to a separate directory ?

2010-01-09 Thread Luigi Rizzo
On Fri, Jan 08, 2010 at 05:56:40PM -0700, M. Warner Losh wrote: In message: 201001080812.21124@freebsd.org John Baldwin j...@freebsd.org writes: : On Thursday 07 January 2010 4:43:34 pm Luigi Rizzo wrote: : What do you do with udp, for instance? Compared to tcp and sctp

svn commit: r203343 - head/sys/netinet

2010-02-01 Thread Luigi Rizzo
Author: luigi Date: Mon Feb 1 14:13:44 2010 New Revision: 203343 URL: http://svn.freebsd.org/changeset/base/203343 Log: use u_char instead of u_int for short bitfields. For our compiler the two constructs are completely equivalent, but some compilers (including MSC and tcc) use the base

Re: svn commit: r203343 - head/sys/netinet

2010-02-01 Thread Luigi Rizzo
, Luigi Rizzo wrote: : : Log: : use u_char instead of u_int for short bitfields. : : This clobbers my ip.h rev.1.15 and tcp.h rev.1.9 (1998), which fixed : the type of these struct members. In C, bit-fields have type _Bool, : int, signed int or unsigned int. Other types are unporortable

Re: svn commit: r203343 - head/sys/netinet

2010-02-01 Thread Luigi Rizzo
On Mon, Feb 01, 2010 at 12:03:07PM -0700, M. Warner Losh wrote: In message: 20100201183923.ga32...@onelab2.iet.unipi.it Luigi Rizzo ri...@iet.unipi.it writes: : On Mon, Feb 01, 2010 at 10:38:03AM -0700, M. Warner Losh wrote: : I concur with Bruce's assessment. Leave well enough

svn commit: r203876 - head/release/picobsd/tinyware/login

2010-02-14 Thread Luigi Rizzo
Author: luigi Date: Sun Feb 14 15:51:36 2010 New Revision: 203876 URL: http://svn.freebsd.org/changeset/base/203876 Log: a minimal set of changes to adapt to the utmp-utmpx changes. lastlog still not implemented, i am hoping that Ed or someone has some idea on how to fix this, but it is

svn commit: r203877 - head/release/picobsd/build

2010-02-14 Thread Luigi Rizzo
Author: luigi Date: Sun Feb 14 15:55:30 2010 New Revision: 203877 URL: http://svn.freebsd.org/changeset/base/203877 Log: use log instead of logverbose in three places so the build won't need input to run to completion MFC after:3 days Modified: head/release/picobsd/build/picobsd

svn commit: r204003 - head/sys/netinet/ipfw

2010-02-17 Thread Luigi Rizzo
Author: luigi Date: Wed Feb 17 13:06:06 2010 New Revision: 204003 URL: http://svn.freebsd.org/changeset/base/204003 Log: remove recursive lock/unlock calls, we do them already before entering the switch. Reported by: Marta Carbone Modified: head/sys/netinet/ipfw/ip_fw_sockopt.c

svn commit: r185132 - head/sys/boot/common

2008-11-20 Thread Luigi Rizzo
Author: luigi Date: Thu Nov 20 14:57:09 2008 New Revision: 185132 URL: http://svn.freebsd.org/changeset/base/185132 Log: As reported in kern/118222, pxeboot in RELENG7 (and presumably above) exhibits some misbehaviours on machines with AMD64 CPUs, which at least in some cases I have tracked

svn commit: r185458 - stable/7/sys/boot/i386/boot0

2008-11-29 Thread Luigi Rizzo
Author: luigi Date: Sun Nov 30 00:00:02 2008 New Revision: 185458 URL: http://svn.freebsd.org/changeset/base/185458 Log: MFC: pass the correct value in %si to the next stage boot Approved by: re@ Modified: stable/7/sys/boot/i386/boot0/boot0.S Modified:

svn commit: r185475 - head/usr.sbin/kldxref

2008-11-30 Thread Luigi Rizzo
Author: luigi Date: Sun Nov 30 14:20:08 2008 New Revision: 185475 URL: http://svn.freebsd.org/changeset/base/185475 Log: Make the linker.hints file have mode 644 instead of 600. There is nothing secret in the file, and the missing read permission breaks diskless operation. MFC after:

svn commit: r185562 - head/sys/boot/i386/boot0

2008-12-02 Thread Luigi Rizzo
+1,5 @@ /* + * Copyright (c) 2008 Luigi Rizzo (mostly documentation) * Copyright (c) 2002 Bruce M. Simpson * Copyright (c) 1998 Robert Nordier * All rights reserved. @@ -16,50 +17,158 @@ * $FreeBSD$ */ -/* A 512-byte boot manager. */ -#ifdef SIO -/* ... using a serial console on COM1

svn commit: r185746 - head/sys/boot/forth

2008-12-07 Thread Luigi Rizzo
Author: luigi Date: Sun Dec 7 19:42:20 2008 New Revision: 185746 URL: http://svn.freebsd.org/changeset/base/185746 Log: PROBLEM: putting in a loader config file a line of the form loader_conf_files=foo bar baz should cause loading the files listed, and then resume with the

svn commit: r193435 - head/sys/netinet

2009-06-04 Thread Luigi Rizzo
Author: luigi Date: Thu Jun 4 12:27:57 2009 New Revision: 193435 URL: http://svn.freebsd.org/changeset/base/193435 Log: fix a bug introduced in rev.190865 related to the signedness of the credit of a pipe. On passing, also use explicit signed/unsigned types for two other fields. Noticed

svn commit: r193500 - head/sbin/ipfw

2009-06-05 Thread Luigi Rizzo
Author: luigi Date: Fri Jun 5 13:11:34 2009 New Revision: 193500 URL: http://svn.freebsd.org/changeset/base/193500 Log: remove a printf that was only useful for debugging. MFC after:3 days Modified: head/sbin/ipfw/dummynet.c Modified: head/sbin/ipfw/dummynet.c

svn commit: r193502 - in head/sys: net netinet

2009-06-05 Thread Luigi Rizzo
Author: luigi Date: Fri Jun 5 13:44:30 2009 New Revision: 193502 URL: http://svn.freebsd.org/changeset/base/193502 Log: More cleanup in preparation of ipfw relocation (no actual code change): + move ipfw and dummynet hooks declarations to raw_ip.c (definitions in ip_var.h) same as for

svn commit: r193516 - in head: sbin/ipfw sys/netinet

2009-06-05 Thread Luigi Rizzo
(r193515) +++ head/sys/netinet/ip_fw.hFri Jun 5 16:16:07 2009(r193516) @@ -1,5 +1,5 @@ /*- - * Copyright (c) 2002 Luigi Rizzo, Universita` di Pisa + * Copyright (c) 2002-2009 Luigi Rizzo, Universita` di Pisa * * Redistribution and use in source and binary forms, with or without

svn commit: r193532 - in head/sys: conf modules/dummynet modules/ipfw modules/ipfw_nat netinet netinet/ipfw

2009-06-05 Thread Luigi Rizzo
) == --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sys/netinet/ipfw/ip_dummynet.c Fri Jun 5 19:22:47 2009 (r193532, copy of r193497, head/sys/netinet/ip_dummynet.c) @@ -0,0 +1,2371 @@ +/*- + * Copyright (c) 1998-2002 Luigi Rizzo, Universita` di Pisa + * Portions

svn commit: r193702 - head/sbin/ipfw

2009-06-08 Thread Luigi Rizzo
Author: luigi Date: Mon Jun 8 10:53:18 2009 New Revision: 193702 URL: http://svn.freebsd.org/changeset/base/193702 Log: add a missing format in a printf Detected building with gcc 4.3.3 MFC after:3 days Modified: head/sbin/ipfw/ipfw2.c Modified: head/sbin/ipfw/ipfw2.c

svn commit: r193715 - head/sbin/ipfw

2009-06-08 Thread Luigi Rizzo
Author: luigi Date: Mon Jun 8 14:32:29 2009 New Revision: 193715 URL: http://svn.freebsd.org/changeset/base/193715 Log: Permit the specification of bandwidth values within profile files (bandwidth is mandatory when using a profile, so it makes sense to have everything in one place).

svn commit: r193894 - head/sys/netinet/ipfw

2009-06-10 Thread Luigi Rizzo
Author: luigi Date: Wed Jun 10 10:34:59 2009 New Revision: 193894 URL: http://svn.freebsd.org/changeset/base/193894 Log: small simplifications to the code in charge of reaping deleted rules: - clear the head pointer immediately before using it, so there is no chance of mistakes; - call

svn commit: r193896 - head/sys/netinet/ipfw

2009-06-10 Thread Luigi Rizzo
Author: luigi Date: Wed Jun 10 10:47:31 2009 New Revision: 193896 URL: http://svn.freebsd.org/changeset/base/193896 Log: in ip_dn_ctl(), do not allocate a large structure on the stack, and use malloc() instead if/when it is necessary. The problem is less relevant in previous versions

svn commit: r193981 - in head/sys: geom sys

2009-06-11 Thread Luigi Rizzo
Author: luigi Date: Thu Jun 11 09:55:26 2009 New Revision: 193981 URL: http://svn.freebsd.org/changeset/base/193981 Log: As discussed in the devsummit, introduce two fields in the struct bio to store classification information, and a hook for classifier functions that can be called by

svn commit: r190338 - stable/7/release/picobsd/build

2009-03-23 Thread Luigi Rizzo
Author: luigi Date: Mon Mar 23 21:32:03 2009 New Revision: 190338 URL: http://svn.freebsd.org/changeset/base/190338 Log: MFC: add support for local config files and non-chroot copy of files from the host filesystem Modified: stable/7/release/picobsd/build/picobsd Modified:

svn commit: r190378 - head/release/picobsd/build

2009-03-24 Thread Luigi Rizzo
Author: luigi Date: Tue Mar 24 16:03:46 2009 New Revision: 190378 URL: http://svn.freebsd.org/changeset/base/190378 Log: remove unused package entry. default to use devfs (we do that anyways) Many small changes in comments Modified: head/release/picobsd/build/picobsd Modified:

svn commit: r190383 - head/release/picobsd/build

2009-03-24 Thread Luigi Rizzo
Author: luigi Date: Tue Mar 24 17:47:50 2009 New Revision: 190383 URL: http://svn.freebsd.org/changeset/base/190383 Log: add a function to help copying shared binaries from the output of a buildworld. Modified: head/release/picobsd/build/picobsd Modified:

svn commit: r190385 - head/release/picobsd/bridge

2009-03-24 Thread Luigi Rizzo
Author: luigi Date: Tue Mar 24 18:02:35 2009 New Revision: 190385 URL: http://svn.freebsd.org/changeset/base/190385 Log: remove stale comments on the size of objects, they are more than 10 years old and do not reflect reality anymore. Also remove some commented out entries that have no

svn commit: r190388 - stable/7/release/picobsd/bridge

2009-03-24 Thread Luigi Rizzo
Author: luigi Date: Tue Mar 24 18:34:19 2009 New Revision: 190388 URL: http://svn.freebsd.org/changeset/base/190388 Log: make the mfs larger to give room for shared libs. Build /dev/random so ssh can find it Approved by: re (blanket on picobsd) Modified:

svn commit: r190389 - stable/7/release/picobsd/bridge

2009-03-24 Thread Luigi Rizzo
Author: luigi Date: Tue Mar 24 18:35:01 2009 New Revision: 190389 URL: http://svn.freebsd.org/changeset/base/190389 Log: remove unused entries and stale comments on the size of objects Approved by: re (blanket on picobsd) Modified: stable/7/release/picobsd/bridge/crunch.conf Modified:

svn commit: r190411 - head/release/picobsd/build

2009-03-25 Thread Luigi Rizzo
Author: luigi Date: Wed Mar 25 14:02:26 2009 New Revision: 190411 URL: http://svn.freebsd.org/changeset/base/190411 Log: add support for shared crunch binary. Modified: head/release/picobsd/build/picobsd Modified: head/release/picobsd/build/picobsd

svn commit: r190420 - head/release/picobsd/bridge

2009-03-25 Thread Luigi Rizzo
Author: luigi Date: Wed Mar 25 17:56:28 2009 New Revision: 190420 URL: http://svn.freebsd.org/changeset/base/190420 Log: devfs is the standard now Modified: head/release/picobsd/bridge/config Modified: head/release/picobsd/bridge/config

svn commit: r190421 - head/release/picobsd/bridge

2009-03-25 Thread Luigi Rizzo
Author: luigi Date: Wed Mar 25 18:48:46 2009 New Revision: 190421 URL: http://svn.freebsd.org/changeset/base/190421 Log: This config file uses dynamically linked binaries, which is more convenient when you want to import other programs because the libraries will not be replicated.

svn commit: r190760 - head/release/picobsd/bridge

2009-04-06 Thread Luigi Rizzo
Author: luigi Date: Mon Apr 6 11:08:33 2009 New Revision: 190760 URL: http://svn.freebsd.org/changeset/base/190760 Log: add some popular device and comment some potentially useful options Modified: head/release/picobsd/bridge/PICOBSD Modified: head/release/picobsd/bridge/PICOBSD

svn commit: r190763 - stable/7/release/picobsd/mfs_tree/etc

2009-04-06 Thread Luigi Rizzo
Author: luigi Date: Mon Apr 6 11:21:14 2009 New Revision: 190763 URL: http://svn.freebsd.org/changeset/base/190763 Log: put the absolute path for /etc/rc1 Approved by: re (blanket on picobsd) Modified: stable/7/release/picobsd/mfs_tree/etc/rc Modified:

svn commit: r190761 - head/release/picobsd/mfs_tree/etc

2009-04-06 Thread Luigi Rizzo
Author: luigi Date: Mon Apr 6 11:14:30 2009 New Revision: 190761 URL: http://svn.freebsd.org/changeset/base/190761 Log: provide the absolute path for /etc/rc1 Modified: head/release/picobsd/mfs_tree/etc/rc Modified: head/release/picobsd/mfs_tree/etc/rc

svn commit: r190765 - stable/7/release/picobsd/bridge

2009-04-06 Thread Luigi Rizzo
Author: luigi Date: Mon Apr 6 11:22:29 2009 New Revision: 190765 URL: http://svn.freebsd.org/changeset/base/190765 Log: diff reduction with the version in head Approved by: re (blanket on picobsd) Modified: stable/7/release/picobsd/bridge/PICOBSD Modified:

svn commit: r190767 - stable/7/release/picobsd/bridge

2009-04-06 Thread Luigi Rizzo
Author: luigi Date: Mon Apr 6 11:31:31 2009 New Revision: 190767 URL: http://svn.freebsd.org/changeset/base/190767 Log: MFC: use shared libraries for the crunched binary, put together the basic binaries so it is easier to replace them with busybox. Approved by: re (blanket on

sctp files location

2009-04-08 Thread Luigi Rizzo
Randall, there is now a total of 36 sctp files under sys/netinet (22 headers, 12 source). Wouldn't it be the case to move them (except for the userland headers) under netinet/sctp/ ? cheers luigi ___ svn-src-all@freebsd.org mailing list

svn commit: r190846 - head/sbin/ipfw

2009-04-08 Thread Luigi Rizzo
Author: luigi Date: Wed Apr 8 15:18:21 2009 New Revision: 190846 URL: http://svn.freebsd.org/changeset/base/190846 Log: Various cleanup of text, moving a couple of paragraphs above to avoid referencing undefined terms (humans are not compilers but still care about these things).

Re: sctp files location

2009-04-08 Thread Luigi Rizzo
not be an issue. cheers luigi R On Apr 8, 2009, at 9:03 AM, Luigi Rizzo wrote: Randall, there is now a total of 36 sctp files under sys/netinet (22 headers, 12 source). Wouldn't it be the case to move them (except for the userland headers) under netinet/sctp/ ? cheers luigi

svn commit: r190865 - in head: sbin/ipfw sys/netinet

2009-04-09 Thread Luigi Rizzo
The following parameters can be configured for a queue: @@ -2917,10 +2991,17 @@ API based upon code written by .An Daniel Boulet for BSDI. .Pp +Dummynet has been introduced by Luigi Rizzo in 1997-1998. +.Pp Some early work (1999-2000) on the .Nm dummynet traffic shaper supported by Akamba Corp

svn commit: r190866 - head/sys/sys

2009-04-09 Thread Luigi Rizzo
Author: luigi Date: Thu Apr 9 13:02:55 2009 New Revision: 190866 URL: http://svn.freebsd.org/changeset/base/190866 Log: Bump version after changes in the userland/kernel ABI for dummynet (plain ipfw rules unchanged) Modified: head/sys/sys/param.h Modified: head/sys/sys/param.h

Re: svn commit: r190865 - in head: sbin/ipfw sys/netinet

2009-04-09 Thread Luigi Rizzo
On Thu, Apr 09, 2009 at 02:25:59PM +0100, Robert Watson wrote: On Thu, 9 Apr 2009, Luigi Rizzo wrote: Note- this commit changes the userland/kernel ABI for pipes (but not for ordinary firewall rules) so you need to rebuild kernel and /sbin/ipfw to use dummynet features. Please check

per-cpu counters (Re: svn commit: r190967 - head/sys/netinet)

2009-04-12 Thread Luigi Rizzo
On Sun, Apr 12, 2009 at 02:06:26PM +, Robert Watson wrote: Author: rwatson Date: Sun Apr 12 14:06:26 2009 New Revision: 190967 URL: http://svn.freebsd.org/changeset/base/190967 Log: Update stats in struct pimstat using two new macros: PIMSTAT_ADD() and PIMSTAT_INC(), rather than

Re: per-cpu counters (Re: svn commit: r190967 - head/sys/netinet)

2009-04-12 Thread Luigi Rizzo
On Sun, Apr 12, 2009 at 03:29:38PM +0100, Robert Watson wrote: On Sun, 12 Apr 2009, Robert Watson wrote: As an example, an approach i was considering is replace the existing counters with an index in a global_counters[MAXCPU][] array so the counter update will become something like this:

svn commit: r191565 - head/release/picobsd/tinyware/ns

2009-04-27 Thread Luigi Rizzo
Author: luigi Date: Mon Apr 27 16:57:19 2009 New Revision: 191565 URL: http://svn.freebsd.org/changeset/base/191565 Log: fix various build errors (missing or wrong return types for various functions returning void, missing headers, and so on). MFC after:4 weeks (not before 7.3 is

svn commit: r204582 - head/sys/net

2010-03-02 Thread Luigi Rizzo
Author: luigi Date: Tue Mar 2 16:24:16 2010 New Revision: 204582 URL: http://svn.freebsd.org/changeset/base/204582 Log: remove unnecessary casts leftover from a bogus fix to a previous bug Modified: head/sys/net/radix.c Modified: head/sys/net/radix.c

svn commit: r204591 - in head: sbin/ipfw sys/conf sys/net sys/netinet sys/netinet/ipfw sys/netinet/ipfw/test

2010-03-02 Thread Luigi Rizzo
== --- head/sbin/ipfw/dummynet.c Tue Mar 2 17:34:11 2010(r204590) +++ head/sbin/ipfw/dummynet.c Tue Mar 2 17:40:48 2010(r204591) @@ -1,10 +1,5 @@ /* - * Copyright (c) 2002-2003 Luigi Rizzo - * Copyright (c) 1996 Alex Nash, Paul Traina, Poul-Henning Kamp

Re: svn commit: r204591 - in head: sbin/ipfw sys/conf sys/net sys/netinet sys/netinet/ipfw sys/netinet/ipfw/test

2010-03-02 Thread Luigi Rizzo
On Tue, Mar 02, 2010 at 08:51:30PM +0200, Kostik Belousov wrote: ... --- head/sbin/ipfw/Makefile Tue Mar 2 17:34:11 2010(r204590) +++ head/sbin/ipfw/Makefile Tue Mar 2 17:40:48 2010(r204591) @@ -3,7 +3,6 @@ PROG= ipfw SRCS= ipfw2.c dummynet.c ipv6.c main.c

svn commit: r204712 - head/sbin/ipfw

2010-03-04 Thread Luigi Rizzo
Author: luigi Date: Thu Mar 4 16:08:51 2010 New Revision: 204712 URL: http://svn.freebsd.org/changeset/base/204712 Log: remove stale comment Modified: head/sbin/ipfw/dummynet.c Modified: head/sbin/ipfw/dummynet.c

svn commit: r204713 - head/sys/netinet/ipfw

2010-03-04 Thread Luigi Rizzo
Author: luigi Date: Thu Mar 4 16:52:26 2010 New Revision: 204713 URL: http://svn.freebsd.org/changeset/base/204713 Log: improve compatibility with RELENG_7.2 Modified: head/sys/netinet/ipfw/ip_fw_sockopt.c Modified: head/sys/netinet/ipfw/ip_fw_sockopt.c

svn commit: r204714 - head/sys/netinet/ipfw

2010-03-04 Thread Luigi Rizzo
Author: luigi Date: Thu Mar 4 16:53:38 2010 New Revision: 204714 URL: http://svn.freebsd.org/changeset/base/204714 Log: use callout_drain() (outside the lock) when unloading the module. This prevents a potential deadlock. Submitted by: Francesco Magno Modified:

svn commit: r204716 - head/sbin/ipfw

2010-03-04 Thread Luigi Rizzo
Author: luigi Date: Thu Mar 4 16:54:56 2010 New Revision: 204716 URL: http://svn.freebsd.org/changeset/base/204716 Log: reduce diffs with the cross-platform version (windows needs some extra initialization) Modified: head/sbin/ipfw/main.c Modified: head/sbin/ipfw/main.c

svn commit: r204717 - head/sbin/ipfw

2010-03-04 Thread Luigi Rizzo
Author: luigi Date: Thu Mar 4 16:55:32 2010 New Revision: 204717 URL: http://svn.freebsd.org/changeset/base/204717 Log: fix handling of sets Modified: head/sbin/ipfw/ipfw2.c Modified: head/sbin/ipfw/ipfw2.c == ---

svn commit: r204718 - head/sbin/ipfw

2010-03-04 Thread Luigi Rizzo
Author: luigi Date: Thu Mar 4 16:56:36 2010 New Revision: 204718 URL: http://svn.freebsd.org/changeset/base/204718 Log: make the listing of queues/pipes/schedulers handle the case of data size increasing while we fetch the info. Modified: head/sbin/ipfw/dummynet.c Modified:

svn commit: r204735 - head/sys/netinet/ipfw/test

2010-03-04 Thread Luigi Rizzo
Author: luigi Date: Thu Mar 4 21:01:59 2010 New Revision: 204735 URL: http://svn.freebsd.org/changeset/base/204735 Log: don't use keywords as variable names. Modified: head/sys/netinet/ipfw/test/mylist.h Modified: head/sys/netinet/ipfw/test/mylist.h

svn commit: r204754 - head/sys/netinet/ipfw

2010-03-05 Thread Luigi Rizzo
Author: luigi Date: Fri Mar 5 12:58:19 2010 New Revision: 204754 URL: http://svn.freebsd.org/changeset/base/204754 Log: fix a memory leak when deleting RED queues Modified: head/sys/netinet/ipfw/ip_dummynet.c Modified: head/sys/netinet/ipfw/ip_dummynet.c

svn commit: r204758 - head/sbin/ipfw

2010-03-05 Thread Luigi Rizzo
Author: luigi Date: Fri Mar 5 14:13:58 2010 New Revision: 204758 URL: http://svn.freebsd.org/changeset/base/204758 Log: more documentation on new dummynet features. Modified: head/sbin/ipfw/ipfw.8 Modified: head/sbin/ipfw/ipfw.8

svn commit: r204763 - head/sys/netinet/ipfw

2010-03-05 Thread Luigi Rizzo
Author: luigi Date: Fri Mar 5 17:53:28 2010 New Revision: 204763 URL: http://svn.freebsd.org/changeset/base/204763 Log: plug a memory leak on pipe's reconfiguration Modified: head/sys/netinet/ipfw/ip_dummynet.c Modified: head/sys/netinet/ipfw/ip_dummynet.c

svn commit: r204831 - stable/8/sys/kern

2010-03-07 Thread Luigi Rizzo
Author: luigi Date: Sun Mar 7 14:29:12 2010 New Revision: 204831 URL: http://svn.freebsd.org/changeset/base/204831 Log: MFC r197137 and r200510, which fixes a problem in 8.0 with callouts firing one tick too late. See the logs for the original patch for details. RELENG_7 is not affected

  1   2   3   4   5   6   7   >