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

2010-03-21 Thread Luigi Rizzo
Author: luigi Date: Sun Mar 21 15:52:55 2010 New Revision: 205414 URL: http://svn.freebsd.org/changeset/base/205414 Log: revise documentation Modified: head/sys/netinet/ipfw/dn_sched.h Modified: head/sys/netinet/ipfw/dn_sched.h

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

2010-03-21 Thread Luigi Rizzo
Author: luigi Date: Sun Mar 21 15:54:07 2010 New Revision: 205415 URL: http://svn.freebsd.org/changeset/base/205415 Log: no need for ipfw_flush_tables(), we just need ipfw_destroy_tables() Modified: head/sys/netinet/ipfw/ip_fw_private.h head/sys/netinet/ipfw/ip_fw_table.c Modified:

svn commit: r205417 - in head/sys: conf netinet/ipfw netinet/ipfw/test

2010-03-21 Thread Luigi Rizzo
Author: luigi Date: Sun Mar 21 16:30:32 2010 New Revision: 205417 URL: http://svn.freebsd.org/changeset/base/205417 Log: Add a priority-based packet scheduler. Sponsored by: The ONELAB2 Project Submitted by: Riccardo Panicucci Added: head/sys/netinet/ipfw/dn_sched_prio.c (contents,

svn commit: r205174 - stable/8/release/picobsd/floppy.tree

2010-03-15 Thread Luigi Rizzo
Author: luigi Date: Mon Mar 15 17:52:55 2010 New Revision: 205174 URL: http://svn.freebsd.org/changeset/base/205174 Log: wrong name for this file... Added: - copied unchanged from r205079, stable/8/release/picobsd/floppy.tree/sbin Directory Properties:

svn commit: r205175 - in stable/8/release/picobsd/floppy.tree: . sbin

2010-03-15 Thread Luigi Rizzo
Author: luigi Date: Mon Mar 15 17:54:01 2010 New Revision: 205175 URL: http://svn.freebsd.org/changeset/base/205175 Log: and wrong place too! Added: stable/8/release/picobsd/floppy.tree/sbin/ stable/8/release/picobsd/floppy.tree/sbin/dhclient-script - copied unchanged from r205174,

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

2010-03-15 Thread Luigi Rizzo
Author: luigi Date: Mon Mar 15 18:09:21 2010 New Revision: 205178 URL: http://svn.freebsd.org/changeset/base/205178 Log: small fixes to estimate the buffer size when requesting all pipes/flows. Modified: head/sys/netinet/ipfw/ip_dummynet.c Modified: head/sys/netinet/ipfw/ip_dummynet.c

svn commit: r205181 - head/sbin/ipfw

2010-03-15 Thread Luigi Rizzo
Author: luigi Date: Mon Mar 15 18:26:09 2010 New Revision: 205181 URL: http://svn.freebsd.org/changeset/base/205181 Log: accept lower case m as a synonym for Mega (bit/s or bytes/s). Modified: head/sbin/ipfw/dummynet.c Modified: head/sbin/ipfw/dummynet.c

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

2010-03-11 Thread Luigi Rizzo
Author: luigi Date: Thu Mar 11 22:42:33 2010 New Revision: 205050 URL: http://svn.freebsd.org/changeset/base/205050 Log: implement listing of a subset of pipes/queues/schedulers. The filtering of the output is done in the kernel instead of userland to reduce the amount of data transfered.

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

2010-03-10 Thread Luigi Rizzo
Author: luigi Date: Wed Mar 10 14:21:05 2010 New Revision: 204954 URL: http://svn.freebsd.org/changeset/base/204954 Log: fix handling of commands issued by RELENG_7 version of /sbin/ipfw, Submitted by: Riccardo Panicucci Modified: head/sys/netinet/ipfw/ip_dn_glue.c

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

2010-03-08 Thread Luigi Rizzo
Author: luigi Date: Mon Mar 8 11:22:47 2010 New Revision: 204862 URL: http://svn.freebsd.org/changeset/base/204862 Log: do not report an error unnecessarily Modified: head/sys/netinet/ipfw/ip_dummynet.c Modified: head/sys/netinet/ipfw/ip_dummynet.c

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

2010-03-08 Thread Luigi Rizzo
Author: luigi Date: Mon Mar 8 11:27:08 2010 New Revision: 204865 URL: http://svn.freebsd.org/changeset/base/204865 Log: don't use C++ keywords as variable names Modified: head/sys/netinet/ipfw/dn_heap.c head/sys/netinet/ipfw/dn_heap.h Modified: head/sys/netinet/ipfw/dn_heap.c

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

2010-03-08 Thread Luigi Rizzo
Author: luigi Date: Mon Mar 8 11:27:39 2010 New Revision: 204866 URL: http://svn.freebsd.org/changeset/base/204866 Log: cosmetic changes and C++ compatibility Modified: head/sys/netinet/ipfw/test/dn_test.h Modified: head/sys/netinet/ipfw/test/dn_test.h

svn commit: r204868 - in stable/8/release/picobsd: build floppy.tree

2010-03-08 Thread Luigi Rizzo
Author: luigi Date: Mon Mar 8 13:37:14 2010 New Revision: 204868 URL: http://svn.freebsd.org/changeset/base/204868 Log: MFC main build script and missing directory Added: stable/8/release/picobsd/floppy.tree/sbin - copied unchanged from r204826,

svn commit: r204869 - head/sbin/ipfw

2010-03-08 Thread Luigi Rizzo
Author: luigi Date: Mon Mar 8 14:43:55 2010 New Revision: 204869 URL: http://svn.freebsd.org/changeset/base/204869 Log: add back DPADD (removed by mistake in a previous commit) Modified: head/sbin/ipfw/Makefile Modified: head/sbin/ipfw/Makefile

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

svn commit: r204835 - in stable/8/release/picobsd: bridge build floppy.tree/etc

2010-03-07 Thread Luigi Rizzo
Author: luigi Date: Sun Mar 7 15:07:24 2010 New Revision: 204835 URL: http://svn.freebsd.org/changeset/base/204835 Log: reduce diffs from HEAD Modified: stable/8/release/picobsd/bridge/PICOBSD stable/8/release/picobsd/bridge/crunch.conf stable/8/release/picobsd/build/mfs.mtree

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

2010-03-07 Thread Luigi Rizzo
On Sun, Mar 07, 2010 at 03:15:28PM +, Bjoern A. Zeeb wrote: On Sun, 7 Mar 2010, Bruce Cran wrote: On Sat, Mar 06, 2010 at 09:27:26PM +, Bjoern A. Zeeb wrote: Author: bz Date: Sat Mar 6 21:27:26 2010 New Revision: 204808 URL: http://svn.freebsd.org/changeset/base/204808 Log:

svn commit: r204839 - stable/8/release/picobsd/qemu

2010-03-07 Thread Luigi Rizzo
Author: luigi Date: Sun Mar 7 16:24:33 2010 New Revision: 204839 URL: http://svn.freebsd.org/changeset/base/204839 Log: MFC qemu configuration Added: stable/8/release/picobsd/qemu/ stable/8/release/picobsd/qemu/PICOBSD (contents, props changed)

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: 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: 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: 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: 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: 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

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: r201732 - head/sys/netinet/ipfw

2010-01-07 Thread Luigi Rizzo
Author: luigi Date: Thu Jan 7 10:08:05 2010 New Revision: 201732 URL: http://svn.freebsd.org/changeset/base/201732 Log: some header shuffling to help decoupling ip_divert from ipfw Modified: head/sys/netinet/ipfw/ip_dummynet.c head/sys/netinet/ipfw/ip_fw_log.c

svn commit: r201734 - head/sys/net

2010-01-07 Thread Luigi Rizzo
Author: luigi Date: Thu Jan 7 10:27:52 2010 New Revision: 201734 URL: http://svn.freebsd.org/changeset/base/201734 Log: put ip_var before ip_fw_private.h as this will be needed in the near future Modified: head/sys/net/if_ethersubr.c Modified: head/sys/net/if_ethersubr.c

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

2010-01-07 Thread Luigi Rizzo
Author: luigi Date: Thu Jan 7 10:39:15 2010 New Revision: 201735 URL: http://svn.freebsd.org/changeset/base/201735 Log: Following up on a request from Ermal Luci to make ip_divert work as a client of pf(4), make ip_divert not depend on ipfw. This is achieved by moving to ip_var.h the

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

2010-01-07 Thread Luigi Rizzo
Author: luigi Date: Thu Jan 7 12:00:54 2010 New Revision: 201740 URL: http://svn.freebsd.org/changeset/base/201740 Log: check that we have an ipv4 packet before swapping ip_len and ip_off. This should fix the handling of ipv6 packets which i broke when i made ipfw operate on packets in

svn commit: r201748 - head/sys/netgraph

2010-01-07 Thread Luigi Rizzo
Author: luigi Date: Thu Jan 7 14:23:19 2010 New Revision: 201748 URL: http://svn.freebsd.org/changeset/base/201748 Log: ip_var.h now needs to be before ip_fw_private.h Modified: head/sys/netgraph/ng_ipfw.c Modified: head/sys/netgraph/ng_ipfw.c

Re: moving sctp to a separate directory ? (Re: svn commit: r201523 - head/sys/netinet)

2010-01-07 Thread Luigi Rizzo
On Thu, Jan 07, 2010 at 09:35:36PM +0100, Philip Paeps wrote: On 2010-01-04 23:23:23 (+0100), Luigi Rizzo ri...@iet.unipi.it wrote: This was the reason why I moved ipfw-related stuff out of the way and plan to do the same with tcp unless someone precedes me. Please discuss this on -net

moving sctp to a separate directory ? (Re: svn commit: r201523 - head/sys/netinet)

2010-01-04 Thread Luigi Rizzo
taking a random commit to this tree -- would you guys consider moving the sctp sources to its own directory, e.g. netinet/sctp/ or something that suits better ? It would help to browse through the directory: NAMEFILES LINES netinet/156

svn commit: r201527 - in head/sys: net netgraph netinet netinet/ipfw

2010-01-04 Thread Luigi Rizzo
Author: luigi Date: Mon Jan 4 19:01:22 2010 New Revision: 201527 URL: http://svn.freebsd.org/changeset/base/201527 Log: Various cleanup done in ipfw3-head branch including: - use a uniform mtag format for all packets that exit and re-enter the firewall in the middle of a rulechain. On

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

2009-12-28 Thread Luigi Rizzo
Author: luigi Date: Mon Dec 28 10:19:53 2009 New Revision: 201121 URL: http://svn.freebsd.org/changeset/base/201121 Log: readability fixes -- add braces on large blocks, remove unnecessary initializations Modified: head/sys/netinet/ipfw/ip_dummynet.c Modified:

svn commit: r201122 - in head/sys: net netgraph netinet netinet/ipfw

2009-12-28 Thread Luigi Rizzo
Author: luigi Date: Mon Dec 28 10:47:04 2009 New Revision: 201122 URL: http://svn.freebsd.org/changeset/base/201122 Log: bring in several cleanups tested in ipfw3-head branch, namely: r201011 - move most of ng_ipfw.h into ip_fw_private.h, as this code is ipfw-specific. This removes a

svn commit: r201123 - head/lib/libnetgraph

2009-12-28 Thread Luigi Rizzo
Author: luigi Date: Mon Dec 28 10:48:01 2009 New Revision: 201123 URL: http://svn.freebsd.org/changeset/base/201123 Log: this file is also affected by the ipfw changes Modified: head/lib/libnetgraph/debug.c Modified: head/lib/libnetgraph/debug.c

svn commit: r201124 - in head: lib/libnetgraph sys/netgraph sys/netinet/ipfw

2009-12-28 Thread Luigi Rizzo
Author: luigi Date: Mon Dec 28 12:29:13 2009 New Revision: 201124 URL: http://svn.freebsd.org/changeset/base/201124 Log: bring the NGM_IPFW_COOKIE back into ng_ipfw.h, libnetgraph expects to find it there. Unfortunately this reintroduces the dependency on ip_fw_pfil.c Modified:

svn commit: r201125 - head/sys/netinet

2009-12-28 Thread Luigi Rizzo
Author: luigi Date: Mon Dec 28 14:09:46 2009 New Revision: 201125 URL: http://svn.freebsd.org/changeset/base/201125 Log: + remove an unused #define print_ip; + remove two unnecessary initializations in ip_output; + localize 'len'; + introduce a temporary variable n to count the number of

svn commit: r201131 - head/sys/netinet

2009-12-28 Thread Luigi Rizzo
Author: luigi Date: Mon Dec 28 14:48:32 2009 New Revision: 201131 URL: http://svn.freebsd.org/changeset/base/201131 Log: introduce a local variable rte acting as a cache of ro-ro_rt within ip_output, achieving (in random order of importance): - a reduction of the number of 'r's in the

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

2009-12-28 Thread Luigi Rizzo
On Mon, Dec 28, 2009 at 09:14:19PM +, Bjoern A. Zeeb wrote: Author: bz Date: Mon Dec 28 21:14:18 2009 New Revision: 201141 URL: http://svn.freebsd.org/changeset/base/201141 Log: Make the compiler happy after r201125: - + remove two unnecessary initializations in ip_output; + +

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

2009-12-28 Thread Luigi Rizzo
Author: luigi Date: Tue Dec 29 00:02:57 2009 New Revision: 201150 URL: http://svn.freebsd.org/changeset/base/201150 Log: we really need htonl() here, see the comment a few lines above in the code. Modified: head/sys/netinet/ipfw/ip_fw2.c Modified: head/sys/netinet/ipfw/ip_fw2.c

svn commit: r201045 - stable/8/release/picobsd/bridge

2009-12-27 Thread Luigi Rizzo
Author: luigi Date: Sun Dec 27 10:13:31 2009 New Revision: 201045 URL: http://svn.freebsd.org/changeset/base/201045 Log: explicitly define HZ for picosd images Modified: stable/8/release/picobsd/bridge/PICOBSD Modified: stable/8/release/picobsd/bridge/PICOBSD

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

2009-12-27 Thread Luigi Rizzo
Author: luigi Date: Sun Dec 27 10:19:10 2009 New Revision: 201046 URL: http://svn.freebsd.org/changeset/base/201046 Log: diverted packet must re-enter _after_ the matching rule, or we create loops. The divert cookie (that can be set from userland too) contains the matching rule nr, so we

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

2009-12-27 Thread Luigi Rizzo
Author: luigi Date: Sun Dec 27 21:13:53 2009 New Revision: 201059 URL: http://svn.freebsd.org/changeset/base/201059 Log: fix a typo (not that it matters) Modified: head/release/picobsd/build/picobsd Modified: head/release/picobsd/build/picobsd

svn commit: r201061 - in head/release/picobsd: build floppy.tree/etc

2009-12-27 Thread Luigi Rizzo
Author: luigi Date: Sun Dec 27 21:17:31 2009 New Revision: 201061 URL: http://svn.freebsd.org/changeset/base/201061 Log: dhclient needs to have /var/empty and a _dhcp user (it also needs /sbin/dhclient-script, will handle that later) Modified: head/release/picobsd/build/mfs.mtree

svn commit: r201062 - in head/release/picobsd: floppy.tree/sbin qemu

2009-12-27 Thread Luigi Rizzo
Author: luigi Date: Sun Dec 27 21:58:48 2009 New Revision: 201062 URL: http://svn.freebsd.org/changeset/base/201062 Log: add a 'qemu' floppy type, useful for running tests on new kernels Added: head/release/picobsd/floppy.tree/sbin/ head/release/picobsd/floppy.tree/sbin/dhclient-script

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

2009-12-27 Thread Luigi Rizzo
Author: luigi Date: Mon Dec 28 00:51:00 2009 New Revision: 201072 URL: http://svn.freebsd.org/changeset/base/201072 Log: more support to import files and libraries from the host. Modified: head/release/picobsd/build/picobsd Modified: head/release/picobsd/build/picobsd

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

2009-12-27 Thread Luigi Rizzo
Author: luigi Date: Mon Dec 28 01:02:45 2009 New Revision: 201073 URL: http://svn.freebsd.org/changeset/base/201073 Log: clear leftover from previous computations Modified: head/release/picobsd/build/picobsd Modified: head/release/picobsd/build/picobsd

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

2009-12-27 Thread Luigi Rizzo
Author: luigi Date: Mon Dec 28 01:25:05 2009 New Revision: 201076 URL: http://svn.freebsd.org/changeset/base/201076 Log: make the memory filesystem larger, and add an example on how to import files from the host Modified: head/release/picobsd/qemu/PICOBSD head/release/picobsd/qemu/config

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

2009-12-24 Thread Luigi Rizzo
Author: luigi Date: Thu Dec 24 17:35:28 2009 New Revision: 200951 URL: http://svn.freebsd.org/changeset/base/200951 Log: fix poor indentation resulting from a merge Modified: head/sys/netinet/ipfw/ip_fw_sockopt.c Modified: head/sys/netinet/ipfw/ip_fw_sockopt.c

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

2009-12-23 Thread Luigi Rizzo
Author: luigi Date: Wed Dec 23 12:00:50 2009 New Revision: 200896 URL: http://svn.freebsd.org/changeset/base/200896 Log: fix build on 64-bit architectures. Also fix the indentation on a few lines. Modified: head/sys/netinet/ipfw/ip_fw2.c Modified: head/sys/netinet/ipfw/ip_fw2.c

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

2009-12-23 Thread Luigi Rizzo
Author: luigi Date: Wed Dec 23 12:15:21 2009 New Revision: 200897 URL: http://svn.freebsd.org/changeset/base/200897 Log: fix build with the new fast lookup structure. Also remove some unnecessary headers Modified: head/sys/netinet/ipfw/ip_fw_nat.c Modified:

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

2009-12-23 Thread Luigi Rizzo
Author: luigi Date: Wed Dec 23 18:53:11 2009 New Revision: 200909 URL: http://svn.freebsd.org/changeset/base/200909 Log: mostly style changes, such as removal of trailing whitespace, reformatting to avoid unnecessary line breaks, small block restructuring to avoid unnecessary nesting,

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

2009-12-22 Thread Luigi Rizzo
:53:34 2009 (r200838) @@ -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 * modification, are permitted provided

svn commit: r200855 - in head/sys: net netgraph netinet netinet/ipfw

2009-12-22 Thread Luigi Rizzo
) 2002 Luigi Rizzo, Universita` di Pisa + * Copyright (c) 2002-2009 Luigi Rizzo, Universita` di Pisa + * + * Supported by: Valeria Paoli * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -26,9 +28,6

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

2009-12-17 Thread Luigi Rizzo
Author: luigi Date: Thu Dec 17 12:27:54 2009 New Revision: 200629 URL: http://svn.freebsd.org/changeset/base/200629 Log: simplify the code that finds the next rule after reinjections MFC after:1 week Modified: head/sys/netinet/ipfw/ip_fw2.c Modified: head/sys/netinet/ipfw/ip_fw2.c

svn commit: r200636 - head/sys/modules/ipfw

2009-12-17 Thread Luigi Rizzo
Author: luigi Date: Thu Dec 17 17:44:34 2009 New Revision: 200636 URL: http://svn.freebsd.org/changeset/base/200636 Log: Now that ipfw is split into multiple files, we need to list them all in the Makefile for the module, otherwise it won't load due to missing symbols. The problem only

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

2009-12-17 Thread Luigi Rizzo
Dec 17 21:42:10 2009 (r200653) +++ head/sys/netinet/ipfw/ip_fw_log.c Thu Dec 17 23:11:16 2009 (r200654) @@ -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

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

2009-12-16 Thread Luigi Rizzo
2009 (r200600) +++ head/sys/netinet/ipfw/ip_fw_table.c Wed Dec 16 10:48:40 2009 (r200601) @@ -1,5 +1,5 @@ /*- - * Copyright (c) 2002 Luigi Rizzo, Universita` di Pisa + * Copyright (c) 2002 . * * Redistribution and use in source and binary forms, with or without

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

2009-12-16 Thread Luigi Rizzo
Author: luigi Date: Wed Dec 16 13:00:37 2009 New Revision: 200603 URL: http://svn.freebsd.org/changeset/base/200603 Log: bring back a couple of #include that are supplied by nesting, and explain why they are used. Modified: head/sys/netinet/ipfw/ip_fw_dynamic.c

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

2009-12-16 Thread Luigi Rizzo
Author: luigi Date: Wed Dec 16 18:03:35 2009 New Revision: 200610 URL: http://svn.freebsd.org/changeset/base/200610 Log: remove a duplicate sysctl entry Modified: head/sys/netinet/ipfw/ip_fw_sockopt.c Modified: head/sys/netinet/ipfw/ip_fw_sockopt.c

svn commit: r200566 - head/sbin/ipfw

2009-12-15 Thread Luigi Rizzo
Author: luigi Date: Tue Dec 15 09:32:35 2009 New Revision: 200566 URL: http://svn.freebsd.org/changeset/base/200566 Log: fix the indentation for addr: values MFC after:3 days Modified: head/sbin/ipfw/ipfw.8 Modified: head/sbin/ipfw/ipfw.8

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

2009-12-15 Thread Luigi Rizzo
Author: luigi Date: Tue Dec 15 09:46:27 2009 New Revision: 200567 URL: http://svn.freebsd.org/changeset/base/200567 Log: implement a new match option, lookup {dst-ip|src-ip|dst-port|src-port|uid|jail} N which searches the specified field in table N and sets tablearg accordingly.

svn commit: r200510 - head/sys/kern

2009-12-14 Thread Luigi Rizzo
Author: luigi Date: Mon Dec 14 12:23:46 2009 New Revision: 200510 URL: http://svn.freebsd.org/changeset/base/200510 Log: Properly fix callout handling by putting all the per-cpu info in struct callout_cpu. From the comment in the file: + * There is one struct callout_cpu per cpu, holding

Re: svn commit: r200510 - head/sys/kern

2009-12-14 Thread Luigi Rizzo
On Mon, Dec 14, 2009 at 02:18:42PM +, Robert Watson wrote: On Mon, 14 Dec 2009, Luigi Rizzo wrote: ... Together with a smaller patch committed in september, this fixes a bug that affects 8.0 with apps that rely on callouts to fire exactly in the number of ticks specified (qemu among

svn commit: r200537 - head/sys/net

2009-12-14 Thread Luigi Rizzo
Author: luigi Date: Mon Dec 14 20:12:51 2009 New Revision: 200537 URL: http://svn.freebsd.org/changeset/base/200537 Log: Move the scan for max_keylen into route.c::route_init(), and make max_keylen an argument for rn_init(). This removes an unnecessary dependency on domain.h from radix.c

svn commit: r200560 - in stable/8/release/picobsd: bridge build

2009-12-14 Thread Luigi Rizzo
Author: luigi Date: Tue Dec 15 00:26:42 2009 New Revision: 200560 URL: http://svn.freebsd.org/changeset/base/200560 Log: sync with head Modified: stable/8/release/picobsd/bridge/PICOBSD stable/8/release/picobsd/bridge/crunch.conf stable/8/release/picobsd/build/picobsd Modified:

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

2009-12-14 Thread Luigi Rizzo
Author: luigi Date: Tue Dec 15 07:04:20 2009 New Revision: 200564 URL: http://svn.freebsd.org/changeset/base/200564 Log: MFC r200301 when calling ldd, use the cross libraries and not the host version Modified: stable/7/release/picobsd/build/picobsd Modified:

svn commit: r200439 - head/sys/net

2009-12-12 Thread Luigi Rizzo
Author: luigi Date: Sat Dec 12 15:49:28 2009 New Revision: 200439 URL: http://svn.freebsd.org/changeset/base/200439 Log: Make the code buildable in userland so it is easier to test it: this requires a small reordering of headers and a few #defines to map functions not available in userland.

svn commit: r200403 - head/sys/sys

2009-12-11 Thread Luigi Rizzo
Author: luigi Date: Fri Dec 11 10:35:58 2009 New Revision: 200403 URL: http://svn.freebsd.org/changeset/base/200403 Log: only export bio_cmd and flags to userland (bio_cmd are used by ggatectl, flags are potentially useful). Other parts are internal kernel data structures and should not

svn commit: r200354 - head/sys/net

2009-12-10 Thread Luigi Rizzo
Author: luigi Date: Thu Dec 10 10:34:30 2009 New Revision: 200354 URL: http://svn.freebsd.org/changeset/base/200354 Log: No functional changes (who dares to touch this code!) but: - cast the result of LEN() to int as this is the main usage. - use LEN() in one place where it was

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

2009-12-10 Thread Luigi Rizzo
Author: luigi Date: Thu Dec 10 15:17:34 2009 New Revision: 200358 URL: http://svn.freebsd.org/changeset/base/200358 Log: centralize the code to free a packet (or a chain) while in dummynet. Remove an old macro and its stale comment. Modified: head/sys/netinet/ipfw/ip_dummynet.c Modified:

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

2009-12-10 Thread Luigi Rizzo
Author: luigi Date: Thu Dec 10 18:34:07 2009 New Revision: 200360 URL: http://svn.freebsd.org/changeset/base/200360 Log: when draining a flowset free the entire chain, not just one packet. Modified: head/sys/netinet/ipfw/ip_dummynet.c Modified: head/sys/netinet/ipfw/ip_dummynet.c

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

2009-12-10 Thread Luigi Rizzo
Author: luigi Date: Thu Dec 10 18:37:14 2009 New Revision: 200361 URL: http://svn.freebsd.org/changeset/base/200361 Log: use div64 when converting back the burst value for userland Modified: head/sys/netinet/ipfw/ip_dummynet.c Modified: head/sys/netinet/ipfw/ip_dummynet.c

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

2009-12-09 Thread Luigi Rizzo
Author: luigi Date: Wed Dec 9 17:41:47 2009 New Revision: 200299 URL: http://svn.freebsd.org/changeset/base/200299 Log: add -lulog, the program less and a comment Modified: head/release/picobsd/bridge/crunch.conf Modified: head/release/picobsd/bridge/crunch.conf

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

2009-12-09 Thread Luigi Rizzo
Author: luigi Date: Wed Dec 9 17:42:14 2009 New Revision: 200300 URL: http://svn.freebsd.org/changeset/base/200300 Log: use default HZ Modified: head/release/picobsd/bridge/PICOBSD Modified: head/release/picobsd/bridge/PICOBSD

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

2009-12-09 Thread Luigi Rizzo
Author: luigi Date: Wed Dec 9 17:48:05 2009 New Revision: 200301 URL: http://svn.freebsd.org/changeset/base/200301 Log: when calling ldd, use the cross libraries and not the host version MFC after:3 days Modified: head/release/picobsd/build/picobsd Modified:

Re: svn commit: r200299 - head/release/picobsd/bridge

2009-12-09 Thread Luigi Rizzo
On Wed, Dec 09, 2009 at 06:46:57PM +0100, Ed Schouten wrote: Luigi, * Luigi Rizzo lu...@freebsd.org wrote: +libs_so -lulog # used by ifconfig Shouldn't this also read `less'? i think -lulog is used by ifconfig and other progras. less

Re: svn commit: r200157 - head/bin/date

2009-12-07 Thread Luigi Rizzo
On Mon, Dec 07, 2009 at 06:57:52AM +0100, Ed Schouten wrote: * Hajimu UMEMOTO u...@freebsd.org wrote: I saw following message during boot: Dec 7 13:54:12 yoshino kernel: Shared object libulog.so.0 not found, required by date Now, date(1) links libulog.so.0. The date(1) is in

the need for safe dynamic string libraries (was Re: svn commit: r200157 - head/bin/date)

2009-12-07 Thread Luigi Rizzo
On Mon, Dec 07, 2009 at 10:41:11AM +0100, Dag-Erling Sm??rgrav wrote: Luigi Rizzo ri...@iet.unipi.it writes: Also, things like lsbuf are really useful in general, so having that widely available would be a good incentive for people to use it instead of rolling their own 'dynamic string

Re: the need for safe dynamic string libraries (was Re: svn commit: r200157 - head/bin/date)

2009-12-07 Thread Luigi Rizzo
On Mon, Dec 07, 2009 at 10:55:38AM +, Poul-Henning Kamp wrote: In message 20091207105343.ga62...@onelab2.iet.unipi.it, Luigi Rizzo writes: One way to promote this is to put the code in libc so even lazy people won't need to remember to pass linker flags when using the library. I don't

Re: the need for safe dynamic string libraries (was Re: svn commit: r200157 - head/bin/date)

2009-12-07 Thread Luigi Rizzo
On Mon, Dec 07, 2009 at 12:40:23PM +, Poul-Henning Kamp wrote: In message 20091207122256.gc64...@onelab2.iet.unipi.it, Luigi Rizzo writes: right, then some other commonly used but not locked-by-standards place. libutil? libbsdstuffnotstandardizedbyposix ? I would be very happy to see

Re: the need for safe dynamic string libraries

2009-12-07 Thread Luigi Rizzo
On Mon, Dec 07, 2009 at 11:56:18AM +0100, Dag-Erling Sm??rgrav wrote: Luigi Rizzo ri...@iet.unipi.it writes: What do you mean exactly ? When libsbuf was ported to userland, sbuf_printf() was pessimized due to the limitations of libc's printf(). This makes certain parts of but, isn't

Re: the need for safe dynamic string libraries

2009-12-07 Thread Luigi Rizzo
On Mon, Dec 07, 2009 at 02:11:44PM +0100, Dag-Erling Sm??rgrav wrote: Luigi Rizzo ri...@iet.unipi.it writes: Dag-Erling Sm??rgrav d...@des.no writes: When libsbuf was ported to userland, sbuf_printf() was pessimized due to the limitations of libc's printf(). but, isn't

Re: the need for safe dynamic string libraries

2009-12-07 Thread Luigi Rizzo
On Mon, Dec 07, 2009 at 03:33:37PM +0100, Dag-Erling Sm??rgrav wrote: Luigi Rizzo ri...@iet.unipi.it writes: But my point is-- does the functionality that was removed rely on a different API, or we can keep the same API and have two different implementation of the hopefully few things

svn commit: r200183 - head/sbin/ipfw

2009-12-06 Thread Luigi Rizzo
Author: luigi Date: Sun Dec 6 18:04:26 2009 New Revision: 200183 URL: http://svn.freebsd.org/changeset/base/200183 Log: restore setting of sin_len (was removed in 1.146 last february) as it seems that now it is necessary for 'forward' to work outside lo0. The bug (and fix) was reported on

svn commit: r200184 - stable/8/sbin/ipfw

2009-12-06 Thread Luigi Rizzo
Author: luigi Date: Sun Dec 6 19:01:33 2009 New Revision: 200184 URL: http://svn.freebsd.org/changeset/base/200184 Log: mfc r200056 use qsort_r instead of heapsort; staticize two functions. Modified: stable/8/sbin/ipfw/dummynet.c Modified: stable/8/sbin/ipfw/dummynet.c

<    1   2   3   4   5   6   7   >