svn commit: r228574 - in head: sbin/ifconfig sys/netinet

2011-12-16 Thread Gleb Smirnoff
Author: glebius Date: Fri Dec 16 13:30:17 2011 New Revision: 228574 URL: http://svn.freebsd.org/changeset/base/228574 Log: Since size of struct in_aliasreq has just been changed in r228571, and thus ifconfig(8) needs recompile, it is a good chance to make parameter checks on SIOCAIFADDR

svn commit: r228576 - in head: . sys/boot/forth sys/modules sys/modules/carp sys/modules/if_carp

2011-12-16 Thread Gleb Smirnoff
Author: glebius Date: Fri Dec 16 14:28:34 2011 New Revision: 228576 URL: http://svn.freebsd.org/changeset/base/228576 Log: - Rename if_carp.ko to carp.ko. - carp.ko depends on sha1.c Added: head/sys/modules/carp/ - copied from r228573, head/sys/modules/if_carp/ Deleted:

svn commit: r228577 - head/sbin/ifconfig

2011-12-16 Thread Gleb Smirnoff
Author: glebius Date: Fri Dec 16 14:30:58 2011 New Revision: 228577 URL: http://svn.freebsd.org/changeset/base/228577 Log: Rename ifcarp.c to carp.c Added: head/sbin/ifconfig/carp.c - copied unchanged from r228576, head/sbin/ifconfig/ifcarp.c Deleted: head/sbin/ifconfig/ifcarp.c

Re: svn commit: r228571 - in head: . lib/libc/net sbin/ifconfig share/man/man4 sys/net sys/netinet sys/netinet6 sys/sys

2011-12-16 Thread Gleb Smirnoff
Ben, On Fri, Dec 16, 2011 at 12:08:17PM -0500, Ben Kaduk wrote: B Hi Gleb, B B Perhaps the man page portions that were commented out should just be B removed entirely? They may be resurrected if arpbalancing is implemented again. -- Totus tuus, Glebius.

svn commit: r228703 - head

2011-12-19 Thread Gleb Smirnoff
Author: glebius Date: Mon Dec 19 12:50:12 2011 New Revision: 228703 URL: http://svn.freebsd.org/changeset/base/228703 Log: Remove if_carp.ko. /boot/kernel should be upgraded atomically. Requested by: netchild, bz Modified: head/ObsoleteFiles.inc Modified: head/ObsoleteFiles.inc

svn commit: r228732 - head/sys/contrib/pf/net

2011-12-20 Thread Gleb Smirnoff
Author: glebius Date: Tue Dec 20 12:34:16 2011 New Revision: 228732 URL: http://svn.freebsd.org/changeset/base/228732 Log: - Cover pfsync callouts deletion with PF_LOCK(). - Cover setting up interface between pf and pfsync with PF_LOCK(). Modified: head/sys/contrib/pf/net/if_pfsync.c

svn commit: r228734 - head/contrib/pf/man

2011-12-20 Thread Gleb Smirnoff
Author: glebius Date: Tue Dec 20 13:32:56 2011 New Revision: 228734 URL: http://svn.freebsd.org/changeset/base/228734 Log: - Fix examples to show new CARP style. - Remove OpenBSDisms, add FreeBSDisms. Modified: head/contrib/pf/man/pfsync.4 Modified: head/contrib/pf/man/pfsync.4

svn commit: r228736 - in head: contrib/pf/man share/man/man4 sys/contrib/pf/net sys/net sys/netinet

2011-12-20 Thread Gleb Smirnoff
Author: glebius Date: Tue Dec 20 13:53:31 2011 New Revision: 228736 URL: http://svn.freebsd.org/changeset/base/228736 Log: Restore a feature that was present in 5.x and 6.x, and was cleared in 7.x, 8.x and 9.x with pf(4) imports: pfsync(4) should suppress CARP preemption, while it is

svn commit: r228768 - in head/sys: net netinet netinet6 sys

2011-12-21 Thread Gleb Smirnoff
Author: glebius Date: Wed Dec 21 12:39:08 2011 New Revision: 228768 URL: http://svn.freebsd.org/changeset/base/228768 Log: Provide ABI compatibility shim to enable configuring of addresses with ifconfig(8) prior to r228571. Requested by: brooks Modified: head/sys/net/if.h

svn commit: r228811 - in head/sys: contrib/pf/net modules/pfsync

2011-12-22 Thread Gleb Smirnoff
Author: glebius Date: Thu Dec 22 18:31:47 2011 New Revision: 228811 URL: http://svn.freebsd.org/changeset/base/228811 Log: In FreeBSD we always have bpf(4) API, either real or stub. No need in detecting presense of 'device bpf'. Modified: head/sys/contrib/pf/net/if_pfsync.c

svn commit: r228814 - head/sys/contrib/pf/net

2011-12-22 Thread Gleb Smirnoff
Author: glebius Date: Thu Dec 22 18:56:27 2011 New Revision: 228814 URL: http://svn.freebsd.org/changeset/base/228814 Log: Merge couple more fixes from OpenBSD to bulk processing: revision 1.118 date: 2009/03/23 06:19:59; author: dlg; state: Exp; lines: +8 -6 wait an

svn commit: r228815 - head/sys/contrib/pf/net

2011-12-22 Thread Gleb Smirnoff
Author: glebius Date: Thu Dec 22 19:05:58 2011 New Revision: 228815 URL: http://svn.freebsd.org/changeset/base/228815 Log: Merge from OpenBSD: revision 1.120 date: 2009/04/04 13:09:29; author: dlg; state: Exp; lines: +5 -5 use time_uptime instead of time_second internally.

svn commit: r228959 - head/sys/netinet

2011-12-29 Thread Gleb Smirnoff
Author: glebius Date: Thu Dec 29 15:59:14 2011 New Revision: 228959 URL: http://svn.freebsd.org/changeset/base/228959 Log: Don't fallback to a CARP address in BACKUP state. Modified: head/sys/netinet/if_ether.c Modified: head/sys/netinet/if_ether.c

svn commit: r229003 - head/sys/netgraph

2011-12-30 Thread Gleb Smirnoff
Author: glebius Date: Fri Dec 30 15:41:28 2011 New Revision: 229003 URL: http://svn.freebsd.org/changeset/base/229003 Log: style(9), whitespace and spelling nits. Modified: head/sys/netgraph/ng_base.c Modified: head/sys/netgraph/ng_base.c

Re: svn: head/sys/netinet

2011-12-30 Thread Gleb Smirnoff
On Fri, Dec 30, 2011 at 11:23:45AM -0800, Maxim Sobolev wrote: M Won't this break whole lot of third-party software, which expects M FreeBSD to be slightly different in this regards? Just curious. Yes it does. And until FreeBSD 10.0-RELEASE there is time to fix this software (at least in ports).

svn commit: r229465 - head/sys/netinet6

2012-01-03 Thread Gleb Smirnoff
Author: glebius Date: Wed Jan 4 07:01:23 2012 New Revision: 229465 URL: http://svn.freebsd.org/changeset/base/229465 Log: Use correct locking when traversing interface address list. Reviewed by: bz Modified: head/sys/netinet6/in6.c Modified: head/sys/netinet6/in6.c

svn commit: r223185 - head/sbin/ipfw

2011-06-17 Thread Gleb Smirnoff
Author: glebius Date: Fri Jun 17 12:12:52 2011 New Revision: 223185 URL: http://svn.freebsd.org/changeset/base/223185 Log: - Fix my braino in the 220835, when I used strtok(). It isn't applicable here, since modifies the string. Switch to strchr(). - Restore support for undocumented

svn commit: r223416 - head/sbin/ipfw

2011-06-22 Thread Gleb Smirnoff
Author: glebius Date: Wed Jun 22 08:20:01 2011 New Revision: 223416 URL: http://svn.freebsd.org/changeset/base/223416 Log: One more braino from me. Pointy hat to:glebius Submitted by: Alexander V. Chernikov melifaro ipfw.ru Modified: head/sbin/ipfw/nat.c Modified:

svn commit: r223469 - head/sys/netgraph

2011-06-23 Thread Gleb Smirnoff
Author: glebius Date: Thu Jun 23 09:42:41 2011 New Revision: 223469 URL: http://svn.freebsd.org/changeset/base/223469 Log: Be consistent with r160968: keep autoSrcAddr flag untouched when node receives NGM_SHUTDOWN. Submitted by: pluknet Modified: head/sys/netgraph/ng_ether.c

svn commit: r223473 - head/share/man/man4

2011-06-23 Thread Gleb Smirnoff
Author: glebius Date: Thu Jun 23 10:43:36 2011 New Revision: 223473 URL: http://svn.freebsd.org/changeset/base/223473 Log: Document that autoSrcAddr isn't re-enabled on NGM_SHUTDOWN. Submitted by: Vadim Goncharov vadim_nuclight mail.ru Modified: head/share/man/man4/ng_ether.4 Modified:

svn commit: r223499 - head/sbin/ipfw

2011-06-24 Thread Gleb Smirnoff
Author: glebius Date: Fri Jun 24 12:55:16 2011 New Revision: 223499 URL: http://svn.freebsd.org/changeset/base/223499 Log: Actually, if code had followed style(9), there would be less stupid errors like the one fixed in r223416. Noticed by: julian Modified: head/sbin/ipfw/nat.c

svn commit: r223593 - in head/sys: modules/ipdivert netinet netinet/ipfw

2011-06-27 Thread Gleb Smirnoff
Author: glebius Date: Mon Jun 27 12:21:11 2011 New Revision: 223593 URL: http://svn.freebsd.org/changeset/base/223593 Log: Add possibility to pass IPv6 packets to a divert(4) socket. Submitted by: sem Modified: head/sys/modules/ipdivert/Makefile head/sys/netinet/ip_divert.c

svn commit: r223706 - head/sys/netgraph/netflow

2011-07-01 Thread Gleb Smirnoff
Author: glebius Date: Fri Jul 1 08:27:03 2011 New Revision: 223706 URL: http://svn.freebsd.org/changeset/base/223706 Log: Fix double free. Submitted by: Alexander V. Chernikov melifaro ipfw.ru Modified: head/sys/netgraph/netflow/netflow_v9.c Modified:

svn commit: r223761 - head/sys/netgraph

2011-07-04 Thread Gleb Smirnoff
Author: glebius Date: Mon Jul 4 13:55:55 2011 New Revision: 223761 URL: http://svn.freebsd.org/changeset/base/223761 Log: Fix build with NETGRAPH_DEBUG. Modified: head/sys/netgraph/netgraph.h Modified: head/sys/netgraph/netgraph.h

svn commit: r223768 - head/sys/netgraph

2011-07-04 Thread Gleb Smirnoff
Author: glebius Date: Mon Jul 4 20:50:09 2011 New Revision: 223768 URL: http://svn.freebsd.org/changeset/base/223768 Log: Fix build with NETGRAPH_DEBUG. Modified: head/sys/netgraph/netgraph.h Modified: head/sys/netgraph/netgraph.h

svn commit: r223788 - head/usr.sbin/flowctl

2011-07-05 Thread Gleb Smirnoff
Author: glebius Date: Tue Jul 5 14:50:06 2011 New Revision: 223788 URL: http://svn.freebsd.org/changeset/base/223788 Log: Rewrite the flowctl utility to add it support for displaying both IPv4 and IPv4 flows. Modified: head/usr.sbin/flowctl/Makefile head/usr.sbin/flowctl/flowctl.c

svn commit: r223787 - head/sys/netgraph/netflow

2011-07-05 Thread Gleb Smirnoff
Author: glebius Date: Tue Jul 5 14:48:39 2011 New Revision: 223787 URL: http://svn.freebsd.org/changeset/base/223787 Log: o Eliminate flow6_hash_entry in favor of flow_hash_entry. We don't need a separate struct to start a slist of semi-opaque structs. This makes some code more

svn commit: r223790 - head/usr.sbin/flowctl

2011-07-05 Thread Gleb Smirnoff
Author: glebius Date: Tue Jul 5 14:55:17 2011 New Revision: 223790 URL: http://svn.freebsd.org/changeset/base/223790 Log: Update manual page. Mention IPv6 support, and notice that main argument isn't actually a node, but a netgraph path. Modified: head/usr.sbin/flowctl/flowctl.8

svn commit: r223822 - head/sys/netgraph/netflow

2011-07-06 Thread Gleb Smirnoff
Author: glebius Date: Wed Jul 6 09:43:25 2011 New Revision: 223822 URL: http://svn.freebsd.org/changeset/base/223822 Log: Add missing unlocks. Modified: head/sys/netgraph/netflow/netflow.c Modified: head/sys/netgraph/netflow/netflow.c

svn commit: r224031 - head/sys/netgraph

2011-07-14 Thread Gleb Smirnoff
Author: glebius Date: Thu Jul 14 18:38:10 2011 New Revision: 224031 URL: http://svn.freebsd.org/changeset/base/224031 Log: In ng_attach_cntl() first allocate things that may fail, and then do the rest of initialization. This simplifies code and fixes a double free in failure scenario.

svn commit: r224546 - head/sys/kern

2011-07-31 Thread Gleb Smirnoff
Author: glebius Date: Sun Jul 31 13:49:15 2011 New Revision: 224546 URL: http://svn.freebsd.org/changeset/base/224546 Log: Don't leak kld_sx lock in kldunloadf(). Approved by: re (kib) Modified: head/sys/kern/kern_linker.c Modified: head/sys/kern/kern_linker.c

svn commit: r224575 - head/sys/netinet

2011-08-01 Thread Gleb Smirnoff
Author: glebius Date: Mon Aug 1 13:41:38 2011 New Revision: 224575 URL: http://svn.freebsd.org/changeset/base/224575 Log: Add missing break; in r223593. Submitted by: sem Pointy hat to:glebius Approved by: re (kib) Modified: head/sys/netinet/ip_divert.c Modified:

svn commit: r224879 - head/share/man/man4

2011-08-15 Thread Gleb Smirnoff
Author: glebius Date: Mon Aug 15 12:08:41 2011 New Revision: 224879 URL: http://svn.freebsd.org/changeset/base/224879 Log: Describe how carp(4) status changes can be processed with help of devd(8). Submitted by: Alexander V. Chernikov melifaro ipfw.ru Approved by: re (kib) Modified:

svn commit: r224883 - head/share/man/man4

2011-08-15 Thread Gleb Smirnoff
Author: glebius Date: Mon Aug 15 13:33:28 2011 New Revision: 224883 URL: http://svn.freebsd.org/changeset/base/224883 Log: Fix a couple of issues in last commit. Submitted by: maxim Approved by: re (kib) Modified: head/share/man/man4/carp.4 Modified: head/share/man/man4/carp.4

Re: svn commit: r225586 - in head/sys: modules/netgraph/ipfw netgraph

2011-10-09 Thread Gleb Smirnoff
On Sun, Oct 09, 2011 at 03:53:44PM +0400, Alexander V. Chernikov wrote: A Understood. So can we use more descriptive ENOENT in code below? A A tag = m_tag_locate(m, MTAG_IPFW_RULE, 0, NULL); A if (tag == NULL) { A NG_FREE_M(m); A return (EINVAL);

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

2011-10-09 Thread Gleb Smirnoff
Qing, [cced Bjoern as reviewer] On Mon, Oct 03, 2011 at 07:51:19PM +, Qing Li wrote: Q Author: qingli Q Date: Mon Oct 3 19:51:18 2011 Q New Revision: 225947 Q URL: http://svn.freebsd.org/changeset/base/225947 Q Q Log: Q A system may have multiple physical interfaces, all of which are

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

2011-10-10 Thread Gleb Smirnoff
On Sun, Oct 09, 2011 at 10:11:56PM -0700, Qing Li wrote: Q  What confuses me most, is that in lines 1435-1445 you are Q assigning error to a positive value, BUT proceeding further Q with function. Q QThis is what was there before (meaning returning error immediately), Qbut I guess a

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

2011-10-10 Thread Gleb Smirnoff
Qing, On Mon, Oct 10, 2011 at 05:41:11PM +, Qing Li wrote: Q Author: qingli Q Date: Mon Oct 10 17:41:11 2011 Q New Revision: 226224 Q URL: http://svn.freebsd.org/changeset/base/226224 Q Q Log: Q All indirect routes will fail the rtcheck, except for a special host Q route where the

svn commit: r226263 - head/share/man/man4

2011-10-11 Thread Gleb Smirnoff
Author: glebius Date: Tue Oct 11 15:41:07 2011 New Revision: 226263 URL: http://svn.freebsd.org/changeset/base/226263 Log: Properly document default number of rx/tx descriptors for Intel cards. Modified: head/share/man/man4/em.4 head/share/man/man4/igb.4 Modified: head/share/man/man4/em.4

svn commit: r226264 - head/share/man/man4

2011-10-11 Thread Gleb Smirnoff
Author: glebius Date: Tue Oct 11 18:26:31 2011 New Revision: 226264 URL: http://svn.freebsd.org/changeset/base/226264 Log: Fix date in last commit. Noticed by: Larry Rosenman ler lerctr.org Modified: head/share/man/man4/em.4 Modified: head/share/man/man4/em.4

svn commit: r226313 - in head/sys: kern vm

2011-10-12 Thread Gleb Smirnoff
Author: glebius Date: Wed Oct 12 18:08:28 2011 New Revision: 226313 URL: http://svn.freebsd.org/changeset/base/226313 Log: Make memguard(9) capable to guard uma(9) allocations. Modified: head/sys/kern/kern_malloc.c head/sys/vm/memguard.c head/sys/vm/memguard.h head/sys/vm/uma.h

svn commit: r226314 - head/share/man/man9

2011-10-12 Thread Gleb Smirnoff
appeared in @@ -161,8 +201,6 @@ This manual page was originally written .An Christian Brueffer Aq bruef...@freebsd.org . Additions have been made by .An Matthew Fleming Aq m...@freebsd.org +and +.An Gleb Smirnoff Aq gleb...@freebsd.org to both the implementation and the documentation. -.Sh BUGS

svn commit: r226338 - head/sys/netinet6

2011-10-13 Thread Gleb Smirnoff
Author: glebius Date: Thu Oct 13 13:05:36 2011 New Revision: 226338 URL: http://svn.freebsd.org/changeset/base/226338 Log: Restore functions in6_ifaddloop() and in6_ifremloop() that were inlined by Qing Li in his big new-ARP commit. I am going to utilize them in my newcarp work, and also

svn commit: r226339 - head/sys/netinet

2011-10-13 Thread Gleb Smirnoff
Author: glebius Date: Thu Oct 13 13:30:41 2011 New Revision: 226339 URL: http://svn.freebsd.org/changeset/base/226339 Log: De-spl(9). Modified: head/sys/netinet/in.c Modified: head/sys/netinet/in.c == ---

svn commit: r226340 - head/sys/netinet6

2011-10-13 Thread Gleb Smirnoff
Author: glebius Date: Thu Oct 13 13:33:23 2011 New Revision: 226340 URL: http://svn.freebsd.org/changeset/base/226340 Log: Use TAILQ_FOREACH() in the nd6_dad_find() instead of hand-rolled implementation. Modified: head/sys/netinet6/nd6_nbr.c Modified: head/sys/netinet6/nd6_nbr.c

svn commit: r226367 - head/sys/netinet

2011-10-14 Thread Gleb Smirnoff
Author: glebius Date: Fri Oct 14 19:05:26 2011 New Revision: 226367 URL: http://svn.freebsd.org/changeset/base/226367 Log: Never switch directly from INIT to MASTER, since this produces nasty status flaps. PR: kern/161123 Submitted by: Damien Fleuriot dam my.gd OpenBSD:

svn commit: r226401 - head/sys/netinet

2011-10-15 Thread Gleb Smirnoff
Author: glebius Date: Sat Oct 15 16:28:06 2011 New Revision: 226401 URL: http://svn.freebsd.org/changeset/base/226401 Log: Remove last remnants of classful addressing: - Remove ia_net, ia_netmask, ia_netbroadcast from struct in_ifaddr. - Remove net.inet.ip.subnetsarelocal, I bet no one

svn commit: r226402 - head/sys/netinet

2011-10-15 Thread Gleb Smirnoff
Author: glebius Date: Sat Oct 15 18:41:25 2011 New Revision: 226402 URL: http://svn.freebsd.org/changeset/base/226402 Log: Add support for IPv4 /31 prefixes, as described in RFC3021. To run a /31 network, participating hosts MUST drop support for directed broadcasts, and treat the first

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

2011-10-20 Thread Gleb Smirnoff
On Sat, Oct 15, 2011 at 11:51:21PM +0300, Nikolay Denev wrote: N Log: N Add support for IPv4 /31 prefixes, as described in RFC3021. N N To run a /31 network, participating hosts MUST drop support N for directed broadcasts, and treat the first and last addresses N on subnet as unicast.

svn commit: r226609 - head/sys/contrib/pf/net

2011-10-21 Thread Gleb Smirnoff
Author: glebius Date: Fri Oct 21 11:11:18 2011 New Revision: 226609 URL: http://svn.freebsd.org/changeset/base/226609 Log: In FreeBSD ip_output() expects ip_len and ip_off in host byte order PR: kern/159029 Modified: head/sys/contrib/pf/net/if_pfsync.c Modified:

svn commit: r226614 - head/share/man/man9

2011-10-21 Thread Gleb Smirnoff
(r226614) @@ -24,7 +24,7 @@ .\ .\ $FreeBSD$ .\ -.Dd October 12, 2011 +.Dd October 21, 2011 .Dt MEMGUARD 9 .Os .Sh NAME @@ -204,3 +204,17 @@ Additions have been made by and .An Gleb Smirnoff Aq gleb...@freebsd.org to both the implementation and the documentation. +.Sh BUGS

svn commit: r226619 - head/share/man/man9

2011-10-21 Thread Gleb Smirnoff
== --- head/share/man/man9/memguard.9 Fri Oct 21 14:23:59 2011 (r226618) +++ head/share/man/man9/memguard.9 Fri Oct 21 20:23:40 2011 (r226619) @@ -205,7 +205,7 @@ and .An Gleb Smirnoff Aq gleb...@freebsd.org to both the implementation

svn commit: r226623 - head/sys/contrib/pf/net

2011-10-21 Thread Gleb Smirnoff
Author: glebius Date: Fri Oct 21 22:28:15 2011 New Revision: 226623 URL: http://svn.freebsd.org/changeset/base/226623 Log: Fix a race: we should update sc_len before dropping the pf lock, otherwise a number of packets can be queued on sc, while we are in ip_output(), and then we wipe the

svn commit: r226655 - head/sys/contrib/pf/net

2011-10-23 Thread Gleb Smirnoff
Author: glebius Date: Sun Oct 23 10:05:25 2011 New Revision: 226655 URL: http://svn.freebsd.org/changeset/base/226655 Log: Correct flag for uma_zalloc() is M_WAITOK. M_WAIT is an old and deprecated flag from historical mbuf(9) allocator. This is style only change. Modified:

svn commit: r226656 - head/sys/contrib/pf/net

2011-10-23 Thread Gleb Smirnoff
Author: glebius Date: Sun Oct 23 10:13:20 2011 New Revision: 226656 URL: http://svn.freebsd.org/changeset/base/226656 Log: Absense of M_WAITOK in malloc flags for UMA doesn't equals presense of M_NOWAIT. Specify M_NOWAIT explicitly. This fixes sleeping with PF_LOCK(). Modified:

svn commit: r226660 - head/sys/contrib/pf/net

2011-10-23 Thread Gleb Smirnoff
Author: glebius Date: Sun Oct 23 14:59:54 2011 New Revision: 226660 URL: http://svn.freebsd.org/changeset/base/226660 Log: Fix from r226623 is not sufficient to close all races in pfsync(4). The root of problem is re-locking at the end of pfsync_sendout(). Several functions are calling

svn commit: r226661 - head/sys/contrib/pf/net

2011-10-23 Thread Gleb Smirnoff
Author: glebius Date: Sun Oct 23 15:08:18 2011 New Revision: 226661 URL: http://svn.freebsd.org/changeset/base/226661 Log: - Fix a bad typo (FreeBSD specific) in pfsync_bulk_update(). Instead of scheduling next run pfsync_bulk_update(), pfsync_bulk_fail() was scheduled. This lead to

svn commit: r226662 - head/sys/contrib/pf/net

2011-10-23 Thread Gleb Smirnoff
Author: glebius Date: Sun Oct 23 15:10:15 2011 New Revision: 226662 URL: http://svn.freebsd.org/changeset/base/226662 Log: Fix indentation, no code changed. Modified: head/sys/contrib/pf/net/if_pfsync.c Modified: head/sys/contrib/pf/net/if_pfsync.c

svn commit: r226663 - head/sys/contrib/pf/net

2011-10-23 Thread Gleb Smirnoff
Author: glebius Date: Sun Oct 23 15:15:17 2011 New Revision: 226663 URL: http://svn.freebsd.org/changeset/base/226663 Log: Merge several fixes to bulk update processing from OpenBSD. Merged revisions: 1.148, 1.149, 1.150. This makes number of states on master/slave to be of a sane value.

svn commit: r226690 - head/usr.sbin/ypbind

2011-10-24 Thread Gleb Smirnoff
Author: glebius Date: Mon Oct 24 14:35:31 2011 New Revision: 226690 URL: http://svn.freebsd.org/changeset/base/226690 Log: Protect NIS client with madvise(2) since this daemon is required for succesful authentication of users. Modified: head/usr.sbin/ypbind/ypbind.c Modified:

svn commit: r219059 - head/sys/modules/usb

2011-02-26 Thread Gleb Smirnoff
Author: glebius Date: Sat Feb 26 17:22:11 2011 New Revision: 219059 URL: http://svn.freebsd.org/changeset/base/219059 Log: Connect uep.ko to build PR: kern/155044 Submitted by: Carl k0802647 telus.net MFC after:1 week Modified: head/sys/modules/usb/Makefile Modified:

svn commit: r219182 - in head/sys: conf modules/netgraph/netflow netgraph/netflow

2011-03-02 Thread Gleb Smirnoff
== --- head/sys/modules/netgraph/netflow/Makefile Wed Mar 2 16:06:57 2011 (r219181) +++ head/sys/modules/netgraph/netflow/Makefile Wed Mar 2 16:15:11 2011 (r219182) @@ -3,9 +3,22 @@ # Author: Gleb Smirnoff gleb...@freebsd.org # +.include bsd.own.mk + .PATH

svn commit: r219183 - head/share/man/man4

2011-03-02 Thread Gleb Smirnoff
AUTHORS .An -nosplit The .Nm node type was written by .An Gleb Smirnoff Aq gleb...@freebsd.org , -based on +.An Alexander Motin Aq m...@freebsd.org , +.An Alexander Chernikov Aq melif...@ipfw.ru . +The initial code was based on .Nm ng_ipacct written by .An Roman V. Palagin Aq rom

svn commit: r219781 - head/sys/netgraph

2011-03-19 Thread Gleb Smirnoff
Author: glebius Date: Sat Mar 19 19:37:53 2011 New Revision: 219781 URL: http://svn.freebsd.org/changeset/base/219781 Log: Remove spl(9) remnants. Modified: head/sys/netgraph/ng_iface.c Modified: head/sys/netgraph/ng_iface.c

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

2011-03-21 Thread Gleb Smirnoff
On Sun, Mar 20, 2011 at 08:35:00AM +, Dmitry Chagin wrote: D Author: dchagin D Date: Sun Mar 20 08:35:00 2011 D New Revision: 219791 D URL: http://svn.freebsd.org/changeset/base/219791 D D Log: D Remove dead code. This wasn't a code, but defines. Removing them saves nothing, but primitives

svn commit: r219827 - head/sys/netgraph

2011-03-21 Thread Gleb Smirnoff
Author: glebius Date: Mon Mar 21 14:18:40 2011 New Revision: 219827 URL: http://svn.freebsd.org/changeset/base/219827 Log: Improve locking of creating and dropping links in the graph, acquiring the topology mutex in the following functions, that manipulate pointers to peer nodes: -

svn commit: r219858 - head/share/examples/cvsup

2011-03-21 Thread Gleb Smirnoff
Author: glebius Date: Tue Mar 22 04:31:35 2011 New Revision: 219858 URL: http://svn.freebsd.org/changeset/base/219858 Log: Give better URL to the list of available CVSup mirrors. Modified: head/share/examples/cvsup/cvs-supfile head/share/examples/cvsup/doc-supfile

svn commit: r219904 - head/sbin/mount_unionfs

2011-03-23 Thread Gleb Smirnoff
Author: glebius Date: Wed Mar 23 13:44:09 2011 New Revision: 219904 URL: http://svn.freebsd.org/changeset/base/219904 Log: Fix SYNOPSIS. Modified: head/sbin/mount_unionfs/mount_unionfs.8 Modified: head/sbin/mount_unionfs/mount_unionfs.8

Re: svn commit: r233045 - in head/sys: conf kern

2012-03-20 Thread Gleb Smirnoff
On Mon, Mar 19, 2012 at 09:06:36PM +0100, Davide Italiano wrote: D These indented ifdefs look like a major violation of style used throughout D the FreeBSD kernel code. Can you please keep with common style? D D D Heh, D sorry, also Juli Mallet noticed this, I'm writing a fix for this and D

Re: svn commit: r233045 - in head/sys: conf kern

2012-03-20 Thread Gleb Smirnoff
On Tue, Mar 20, 2012 at 06:00:50PM +0100, Davide Italiano wrote: D 2012/3/20 Gleb Smirnoff gleb...@freebsd.org: D On Mon, Mar 19, 2012 at 09:06:36PM +0100, Davide Italiano wrote: D D These indented ifdefs look like a major violation of style used throughout D D the FreeBSD kernel code. Can

svn commit: r233257 - head/usr.sbin/newsyslog

2012-03-21 Thread Gleb Smirnoff
Author: glebius Date: Wed Mar 21 06:51:45 2012 New Revision: 233257 URL: http://svn.freebsd.org/changeset/base/233257 Log: Don't run through time checks when entry is definitely oversized. This leads to newsyslog rotating on (size OR time) if both are specified. PR: 100018,

svn commit: r233258 - head/usr.sbin/newsyslog

2012-03-21 Thread Gleb Smirnoff
Author: glebius Date: Wed Mar 21 07:02:17 2012 New Revision: 233258 URL: http://svn.freebsd.org/changeset/base/233258 Log: Fix a sentence in a paragraph that describes time and interval based trimming. This sentence vaguely can be interpreted as if it was speaking about time and size

svn commit: r233269 - head/usr.bin/wall

2012-03-21 Thread Gleb Smirnoff
Author: glebius Date: Wed Mar 21 08:03:07 2012 New Revision: 233269 URL: http://svn.freebsd.org/changeset/base/233269 Log: Add multibyte char support. PR: 165429 Submitted by: amdmi3 Modified: head/usr.bin/wall/wall.1 head/usr.bin/wall/wall.c Modified:

svn commit: r233272 - head/sys/netinet6

2012-03-21 Thread Gleb Smirnoff
Author: glebius Date: Wed Mar 21 08:43:38 2012 New Revision: 233272 URL: http://svn.freebsd.org/changeset/base/233272 Log: in6_pcblookup_local() still can return a pcb with NULL inp_socket. To avoid panic, do not dereference inp_socket, but obtain reuse port option from inp_flags2, like

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

2012-03-31 Thread Gleb Smirnoff
Author: glebius Date: Sat Mar 31 11:20:48 2012 New Revision: 233745 URL: http://svn.freebsd.org/changeset/base/233745 Log: Don't check malloc(M_WAITOK) results. Modified: head/sys/netinet/ipfw/ip_fw_sockopt.c Modified: head/sys/netinet/ipfw/ip_fw_sockopt.c

svn commit: r233773 - head/usr.sbin/arp

2012-04-02 Thread Gleb Smirnoff
Author: glebius Date: Mon Apr 2 10:44:25 2012 New Revision: 233773 URL: http://svn.freebsd.org/changeset/base/233773 Log: Historically arp(8) did a route lookup for the entry it is about to add, and failed if it exist and had invalid data link type. Later on, in r201282, this check

svn commit: r233846 - head/sys/contrib/pf/net

2012-04-03 Thread Gleb Smirnoff
Author: glebius Date: Tue Apr 3 18:09:20 2012 New Revision: 233846 URL: http://svn.freebsd.org/changeset/base/233846 Log: Since pf 4.5 import pf(4) has a mechanism to defer forwarding a packet, that creates state, until pfsync(4) peer acks state addition (or 10 msec timeout passes).

svn commit: r233847 - head/sbin/ifconfig

2012-04-03 Thread Gleb Smirnoff
Author: glebius Date: Tue Apr 3 18:10:48 2012 New Revision: 233847 URL: http://svn.freebsd.org/changeset/base/233847 Log: Make it possible to switch pfsync(4) deferral mechanism on/off. Obtained from:OpenBSD Modified: head/sbin/ifconfig/ifpfsync.c Modified:

svn commit: r233848 - head/sbin/ifconfig

2012-04-03 Thread Gleb Smirnoff
Author: glebius Date: Tue Apr 3 18:11:30 2012 New Revision: 233848 URL: http://svn.freebsd.org/changeset/base/233848 Log: Document syncdev, syncpeer and defer keywords for pfsync(4) interfaces. Modified: head/sbin/ifconfig/ifconfig.8 Modified: head/sbin/ifconfig/ifconfig.8

Re: svn commit: r233846 - head/sys/contrib/pf/net

2012-04-03 Thread Gleb Smirnoff
On Tue, Apr 03, 2012 at 06:09:21PM +, Gleb Smirnoff wrote: T Author: glebius T Date: Tue Apr 3 18:09:20 2012 T New Revision: 233846 T URL: http://svn.freebsd.org/changeset/base/233846 T T Log: T Since pf 4.5 import pf(4) has a mechanism to defer T forwarding a packet, that creates state

Re: svn commit: r233846 - head/sys/contrib/pf/net

2012-04-03 Thread Gleb Smirnoff
Ermal, On Tue, Apr 03, 2012 at 08:30:41PM +0200, Ermal Lu?i wrote: E You are sure that the defer feature is linked only to active-active? I don't see any sane reason for deferring in normal master/backup configuration. -- Totus tuus, Glebius. ___

Re: svn commit: r233745 - head/sys/netinet/ipfw

2012-04-04 Thread Gleb Smirnoff
Julian, On Tue, Apr 03, 2012 at 04:46:56PM -0700, Julian Elischer wrote: J Many years ago there was the possibility that malloc M_WAITOK could J return on shutdown or in some other rare error cases. J J Are we certain this is no longer true? At least it is documented so. -- Totus tuus,

svn commit: r233863 - head/usr.bin/netstat

2012-04-04 Thread Gleb Smirnoff
Author: glebius Date: Wed Apr 4 08:30:32 2012 New Revision: 233863 URL: http://svn.freebsd.org/changeset/base/233863 Log: With pf 4.5 import the name of pfsync stats sysctl has changed, thus 'netstat -sp pfsync' got broken. Fix this. Modified: head/usr.bin/netstat/if.c Modified:

svn commit: r233874 - head/sys/contrib/pf/net

2012-04-04 Thread Gleb Smirnoff
Author: glebius Date: Wed Apr 4 14:47:59 2012 New Revision: 233874 URL: http://svn.freebsd.org/changeset/base/233874 Log: Merge from OpenBSD: revision 1.173 date: 2011/11/09 12:36:03; author: camield; state: Exp; lines: +11 -12 State expire time is a baseline time (last active)

Re: svn commit: r233773 - head/usr.sbin/arp

2012-04-09 Thread Gleb Smirnoff
Qing, On Sun, Apr 08, 2012 at 10:41:11AM -0700, Qing Li wrote: Q This is not the right way to support RFC3021. Q Q The code you removed is used for checking against attempt at adding Q duplicate entry. Q Both the message and the code apply in that context. I tried to state Q clearly and

svn commit: r234084 - head/sys/netinet

2012-04-09 Thread Gleb Smirnoff
Author: glebius Date: Tue Apr 10 05:42:48 2012 New Revision: 234084 URL: http://svn.freebsd.org/changeset/base/234084 Log: CARP should be capable to run on if_bridge(4). Unfortunately, this commit is not enough to enable CARP operation on if_bridge(4), because the latter doesn't handle or

Re: svn commit: r233773 - head/usr.sbin/arp

2012-04-10 Thread Gleb Smirnoff
Qing, On Mon, Apr 09, 2012 at 02:26:06PM -0700, Qing Li wrote: Q You missed my points. Q Q That if check as part of r201282 was meant to resolve a couple of Q issues related Q to PPP links, as noted in my commit message. In this PPP/proxy Q resolution context Q the error message applies, which

svn commit: r234086 - head/sys/dev/sfxge

2012-04-10 Thread Gleb Smirnoff
Author: glebius Date: Tue Apr 10 06:52:21 2012 New Revision: 234086 URL: http://svn.freebsd.org/changeset/base/234086 Log: M_DONTWAIT is a flag from historical mbuf(9) allocator, not malloc(9) or uma(9) flag. Modified: head/sys/dev/sfxge/sfxge_rx.c Modified: head/sys/dev/sfxge/sfxge_rx.c

svn commit: r234087 - head/sys/netinet

2012-04-10 Thread Gleb Smirnoff
Author: glebius Date: Tue Apr 10 06:52:39 2012 New Revision: 234087 URL: http://svn.freebsd.org/changeset/base/234087 Log: M_DONTWAIT is a flag from historical mbuf(9) allocator, not malloc(9) or uma(9) flag. Modified: head/sys/netinet/in.c Modified: head/sys/netinet/in.c

svn commit: r234130 - head/sys/netinet

2012-04-11 Thread Gleb Smirnoff
Author: glebius Date: Wed Apr 11 12:26:30 2012 New Revision: 234130 URL: http://svn.freebsd.org/changeset/base/234130 Log: It is a logical error that in carp_multicast_cleanup() we look at count of addresses on a particular vhid, we should account number of addresses on cif. To achieve

Re: svn commit: r234329 - head/lib/libc/net

2012-04-16 Thread Gleb Smirnoff
On Sun, Apr 15, 2012 at 11:56:04PM +, Eitan Adler wrote: E Author: eadler E Date: Sun Apr 15 23:56:03 2012 E New Revision: 234329 E URL: http://svn.freebsd.org/changeset/base/234329 E E Log: E When searching for uninitialized memory usage add ensure that the entire E struct is set to

svn commit: r234342 - head/sys/netinet

2012-04-16 Thread Gleb Smirnoff
Author: glebius Date: Mon Apr 16 13:49:03 2012 New Revision: 234342 URL: http://svn.freebsd.org/changeset/base/234342 Log: When we receive an ICMP unreach need fragmentation datagram, we take proposed MTU value from it and update the TCP host cache. Then tcp_mss_update() is called on the

Re: svn commit: r234329 - head/lib/libc/net

2012-04-16 Thread Gleb Smirnoff
On Mon, Apr 16, 2012 at 11:48:49AM -0400, Eitan Adler wrote: E 2012/4/16 Gleb Smirnoff gleb...@freebsd.org: E Is that PURIFY documented anywhere? E E I'm uncertain, but it isn't the only use in the source tree. Is there any build with it? (rhetoric question) I'm just afraid that committing fix

Re: svn commit: r234834 - in head/sys: contrib/pf/net net netinet netinet/ipfw ofed/drivers/infiniband/ulp/ipoib

2012-04-30 Thread Gleb Smirnoff
On Mon, Apr 30, 2012 at 01:48:36PM +0200, Luigi Rizzo wrote: L On Mon, Apr 30, 2012 at 10:22:23AM +, Alexander V. Chernikov wrote: L Author: melifaro L Date: Mon Apr 30 10:22:23 2012 L New Revision: 234834 L URL: http://svn.freebsd.org/changeset/base/234834 L L Log: LMove several

svn commit: r235923 - head/sys/netgraph

2012-05-24 Thread Gleb Smirnoff
Author: glebius Date: Thu May 24 18:22:57 2012 New Revision: 235923 URL: http://svn.freebsd.org/changeset/base/235923 Log: Revert r220768 for ng_ksocket. This node is special and when it is cloning, its constructor method may be called in a context that isn't allowed to sleep. Noticed

svn commit: r235979 - head/sys/netgraph

2012-05-25 Thread Gleb Smirnoff
Author: glebius Date: Fri May 25 07:46:24 2012 New Revision: 235979 URL: http://svn.freebsd.org/changeset/base/235979 Log: Revert my local not yet properly tested changes, that leaked in with r235923. Modified: head/sys/netgraph/ng_mppc.c Modified: head/sys/netgraph/ng_mppc.c

Re: svn commit: r236178 - in head: sbin/ifconfig sys/net

2012-05-28 Thread Gleb Smirnoff
On Mon, May 28, 2012 at 12:13:05PM +, Eygene Ryabinkin wrote: E The real-world case is when I am bundling together my Ethernet and E WiFi interfaces and using multiple profiles for accessing network in E different places: system being booted up with one profile, but later E this

svn commit: r205082 - head/sys/netgraph

2010-03-12 Thread Gleb Smirnoff
Author: glebius Date: Fri Mar 12 14:51:42 2010 New Revision: 205082 URL: http://svn.freebsd.org/changeset/base/205082 Log: Fix 'netstat -f netgraph', which I had broken in r163463 ling time ago in 2006. This linked list is actually needed for userland. PR: kern/140446

svn commit: r205083 - in head: sys/netgraph usr.bin/netstat

2010-03-12 Thread Gleb Smirnoff
Author: glebius Date: Fri Mar 12 15:04:59 2010 New Revision: 205083 URL: http://svn.freebsd.org/changeset/base/205083 Log: Now fix functionality of 'netstat -f netgraph' that hasn't worked starting from netgraph import in 1999. netstat(8) used pointer to node as node address, oops. That

svn commit: r205636 - head/sys/netgraph/netflow

2010-03-25 Thread Gleb Smirnoff
Author: glebius Date: Thu Mar 25 10:13:21 2010 New Revision: 205636 URL: http://svn.freebsd.org/changeset/base/205636 Log: Remove disabled code. In 99% cases exports are send to ng_ksocket(4), which already forces queued mode, so what was suggested in disabled code is already done.

<    1   2   3   4   5   6   7   8   9   10   >