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

2013-09-23 Thread Gleb Smirnoff
Author: glebius Date: Mon Sep 23 18:12:25 2013 New Revision: 255821 URL: http://svnweb.freebsd.org/changeset/base/255821 Log: Fix coredump on 'arp -d'. Submitted by: az Approved by: re (kib) Modified: head/usr.sbin/arp/arp.c Modified: head/usr.sbin/arp/arp.c

svn commit: r255926 - head/sys/net

2013-09-28 Thread Gleb Smirnoff
Author: glebius Date: Sat Sep 28 14:14:23 2013 New Revision: 255926 URL: http://svnweb.freebsd.org/changeset/base/255926 Log: Fix a fallout from r241610. One enc interface must be created on startup. Pointy hat to:glebius Reported by: gavin Approved by: re (gjb) Modified:

svn commit: r256008 - head/sys/net

2013-10-02 Thread Gleb Smirnoff
Author: glebius Date: Wed Oct 2 20:44:36 2013 New Revision: 256008 URL: http://svnweb.freebsd.org/changeset/base/256008 Log: Clear knlist before destroying it in tap(4) and tun(4). This fixes later crash, when a kqueue descriptor tries to dereference appropriate knotes. Approved by: re

svn commit: r256019 - head/games/fortune/datfiles

2013-10-03 Thread Gleb Smirnoff
Author: glebius Date: Thu Oct 3 11:51:15 2013 New Revision: 256019 URL: http://svnweb.freebsd.org/changeset/base/256019 Log: Refresh the tips for the new pkg system. Reviewed by: bapt Approved by: re (hrs) Modified: head/games/fortune/datfiles/freebsd-tips Modified:

Re: svn commit: r256066 - head/sys/dev/virtio/network

2013-10-07 Thread Gleb Smirnoff
On Sun, Oct 06, 2013 at 01:12:06AM +0400, Alexander V. Chernikov wrote: A On 05.10.2013 22:07, Bryan Venteicher wrote: A Author: bryanv A Date: Sat Oct 5 18:07:24 2013 A New Revision: 256066 A URL: http://svnweb.freebsd.org/changeset/base/256066 A A Log: ADo not hold the vtnet Rx queue

svn commit: r256108 - head/sys/netinet6

2013-10-07 Thread Gleb Smirnoff
Author: glebius Date: Mon Oct 7 12:07:40 2013 New Revision: 256108 URL: http://svnweb.freebsd.org/changeset/base/256108 Log: Fix mbuf leak. Submitted by: Loganaden Velvindron logan elandsys.com Obtained from:NetBSD Approved by: re (kib) Modified:

svn commit: r256137 - head/sbin/route

2013-10-08 Thread Gleb Smirnoff
Author: glebius Date: Tue Oct 8 08:16:17 2013 New Revision: 256137 URL: http://svnweb.freebsd.org/changeset/base/256137 Log: When destination parameter is missing, exit with a clear synopsis, instead of writing to kernel and printing EINVAL description. PR: bin/181532

svn commit: r256185 - in head/sys: kern sys

2013-10-09 Thread Gleb Smirnoff
Author: glebius Date: Wed Oct 9 11:57:53 2013 New Revision: 256185 URL: http://svnweb.freebsd.org/changeset/base/256185 Log: - Substitute sbdrop_internal() with sbcut_internal(). The latter doesn't free mbufs, but return chain of free mbufs to a caller. Caller can either reuse them or

svn commit: r256186 - head/sys/netinet

2013-10-09 Thread Gleb Smirnoff
Author: glebius Date: Wed Oct 9 12:00:38 2013 New Revision: 256186 URL: http://svnweb.freebsd.org/changeset/base/256186 Log: When processing ACK in tcp_do_segment, use sbcut_locked() instead of sbdrop_locked() to cut acked mbufs from the socket buffer. Free this chain a batch manner after

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

2013-10-15 Thread Gleb Smirnoff
Author: glebius Date: Tue Oct 15 09:21:05 2013 New Revision: 256510 URL: http://svnweb.freebsd.org/changeset/base/256510 Log: Remove obtained, but never used data. Found by: gcc Modified: head/usr.bin/netstat/mbuf.c Modified: head/usr.bin/netstat/mbuf.c

svn commit: r256514 - in head: lib/libkvm sys/sys

2013-10-15 Thread Gleb Smirnoff
Author: glebius Date: Tue Oct 15 10:05:37 2013 New Revision: 256514 URL: http://svnweb.freebsd.org/changeset/base/256514 Log: - While we are spreading the counter(9) across network stack, more userland tools would need to know about the counter_u64_t type. Allow to include sys/counter.h

svn commit: r256515 - head/sys/netinet6

2013-10-15 Thread Gleb Smirnoff
Author: glebius Date: Tue Oct 15 10:09:33 2013 New Revision: 256515 URL: http://svnweb.freebsd.org/changeset/base/256515 Log: Now counter_u64_t is known to userland, thus remove hack from r253086. Sponsored by: Netflix Sponsored by: Nginx, Inc. Modified: head/sys/netinet6/in6_var.h

svn commit: r256516 - head/sys/netinet6

2013-10-15 Thread Gleb Smirnoff
Author: glebius Date: Tue Oct 15 10:11:23 2013 New Revision: 256516 URL: http://svnweb.freebsd.org/changeset/base/256516 Log: Remove useless check of ia6 against NULL, right after dereferencing it. Modified: head/sys/netinet6/ip6_input.c Modified: head/sys/netinet6/ip6_input.c

svn commit: r256519 - in head/sys: net netatalk netinet netinet6 netipx

2013-10-15 Thread Gleb Smirnoff
Author: glebius Date: Tue Oct 15 10:31:42 2013 New Revision: 256519 URL: http://svnweb.freebsd.org/changeset/base/256519 Log: Remove ifa_init() and provide ifa_alloc() that will allocate and setup struct ifaddr internally. Sponsored by: Netflix Sponsored by: Nginx, Inc. Modified:

svn commit: r256521 - head/sys/net

2013-10-15 Thread Gleb Smirnoff
Author: glebius Date: Tue Oct 15 10:41:22 2013 New Revision: 256521 URL: http://svnweb.freebsd.org/changeset/base/256521 Log: Remove ifa_mtx. It was used only in one place in kernel, and ifnet's ifaddr lock can substitute it there. Discussed with: melifaro, ae Sponsored by:

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

2013-10-15 Thread Gleb Smirnoff
Author: glebius Date: Tue Oct 15 11:37:57 2013 New Revision: 256525 URL: http://svnweb.freebsd.org/changeset/base/256525 Log: - Utilize counter(9) to accumulate statistics on interface addresses. Add four counters to struct ifaddr. This kills '+=' on a variables shared between

svn commit: r256537 - head/lib/libc/gen

2013-10-15 Thread Gleb Smirnoff
Author: glebius Date: Tue Oct 15 13:32:01 2013 New Revision: 256537 URL: http://svnweb.freebsd.org/changeset/base/256537 Log: Make getutxent(3) more robust against bad utx.log files. Whenever we read zeroes, don't stop processing the file, but read until its end or valid data. In

Re: svn commit: r256533 - head/sys/cam

2013-10-15 Thread Gleb Smirnoff
On Tue, Oct 15, 2013 at 12:59:40PM +, Alexander Motin wrote: A Author: mav A Date: Tue Oct 15 12:59:40 2013 A New Revision: 256533 A URL: http://svnweb.freebsd.org/changeset/base/256533 A A Log: A Unhide Serial Number lines from bootverbose. That information may be A useful for system

svn commit: r256539 - head/lib/libkvm

2013-10-15 Thread Gleb Smirnoff
Author: glebius Date: Tue Oct 15 13:53:35 2013 New Revision: 256539 URL: http://svnweb.freebsd.org/changeset/base/256539 Log: Revert r256514 for libkvm. It wasn't correct actually and breaks build. Modified: head/lib/libkvm/kvm_pcpu.c Modified: head/lib/libkvm/kvm_pcpu.c

Re: svn commit: r256537 - head/lib/libc/gen

2013-10-15 Thread Gleb Smirnoff
On Tue, Oct 15, 2013 at 01:32:02PM +, Gleb Smirnoff wrote: T Author: glebius T Date: Tue Oct 15 13:32:01 2013 T New Revision: 256537 T URL: http://svnweb.freebsd.org/changeset/base/256537 T T Log: T Make getutxent(3) more robust against bad utx.log files. Whenever we read T zeroes

Re: svn commit: r256552 - in head/sys/cam: . ata scsi

2013-10-15 Thread Gleb Smirnoff
On Tue, Oct 15, 2013 at 05:59:42PM +, Alexander Motin wrote: A Author: mav A Date: Tue Oct 15 17:59:41 2013 A New Revision: 256552 A URL: http://svnweb.freebsd.org/changeset/base/256552 A A Log: A Unify periph invalidation and destruction reporting. A Print message containing device model

svn commit: r256586 - head/sys/net

2013-10-15 Thread Gleb Smirnoff
Author: glebius Date: Wed Oct 16 04:59:59 2013 New Revision: 256586 URL: http://svnweb.freebsd.org/changeset/base/256586 Log: Rename Free() macro to R_Free(). This matches R_Malloc() and has much lower probability to clash with other headers. Submitted by: Eric van Gyzen eric_van_gyzen

svn commit: r256587 - in head/sys: kern sys

2013-10-15 Thread Gleb Smirnoff
Author: glebius Date: Wed Oct 16 05:02:01 2013 New Revision: 256587 URL: http://svnweb.freebsd.org/changeset/base/256587 Log: For VIMAGE kernels store vnet in the struct task, and set vnet context during task processing. Reported tested by: mm Modified: head/sys/kern/subr_taskqueue.c

Re: svn commit: r256587 - in head/sys: kern sys

2013-10-16 Thread Gleb Smirnoff
On Wed, Oct 16, 2013 at 12:47:13PM -0700, Adrian Chadd wrote: A .. so what brought this on? I can see this fixing issues for things where a A virtual device is created with taskqueues (eg a tap device of some sort) A that get stuffed into a vnet context. But for physical interfaces whose A

Re: svn commit: r256587 - in head/sys: kern sys

2013-10-16 Thread Gleb Smirnoff
On Wed, Oct 16, 2013 at 12:47:13PM -0700, Adrian Chadd wrote: A .. so what brought this on? I can see this fixing issues for things where a A virtual device is created with taskqueues (eg a tap device of some sort) A that get stuffed into a vnet context. But for physical interfaces whose A

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

2013-10-18 Thread Gleb Smirnoff
On Fri, Oct 18, 2013 at 12:07:35AM +0200, Marko Zec wrote: M Concerning this more general solution from Gleb, with storing the vnet M pointer in the task, I wander how it is safe when the vnet is being M removed? M M In vnet_destroy() the vnet interfaces are moved back to their parent M

svn commit: r256729 - head/sys/sys

2013-10-18 Thread Gleb Smirnoff
Author: glebius Date: Fri Oct 18 11:25:08 2013 New Revision: 256729 URL: http://svnweb.freebsd.org/changeset/base/256729 Log: Revert r256587. Requested by: zec Modified: head/sys/sys/_task.h head/sys/sys/taskqueue.h Modified: head/sys/sys/_task.h

svn commit: r256730 - head/sys/kern

2013-10-18 Thread Gleb Smirnoff
Author: glebius Date: Fri Oct 18 11:26:40 2013 New Revision: 256730 URL: http://svnweb.freebsd.org/changeset/base/256730 Log: Revert r256587. Requested by: zec Modified: head/sys/kern/subr_taskqueue.c Modified: head/sys/kern/subr_taskqueue.c

svn commit: r256824 - head/sbin/ifconfig

2013-10-20 Thread Gleb Smirnoff
Author: glebius Date: Mon Oct 21 05:14:00 2013 New Revision: 256824 URL: http://svnweb.freebsd.org/changeset/base/256824 Log: Provide a working example line for an interface with 1 address running with CARP. Currently, we've got a problem that interface isn't IFF_UP at the time we

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

2013-10-23 Thread Gleb Smirnoff
On Wed, Oct 23, 2013 at 01:22:50PM +, John Baldwin wrote: J Author: jhb J Date: Wed Oct 23 13:22:50 2013 J New Revision: 256962 J URL: http://svnweb.freebsd.org/changeset/base/256962 J J Log: J Finish r254925 and remove the last remaining sysctl name list macro. The J one port that used

svn commit: r257135 - head/sys/net

2013-10-25 Thread Gleb Smirnoff
Author: glebius Date: Fri Oct 25 19:49:03 2013 New Revision: 257135 URL: http://svnweb.freebsd.org/changeset/base/257135 Log: vnet.h needs to be included before raw_cb.h. Now it compiles due to pollution via if_var.h. Modified: head/sys/net/raw_cb.c head/sys/net/raw_usrreq.c Modified:

svn commit: r257173 - head/sys/dev/bce

2013-10-26 Thread Gleb Smirnoff
Author: glebius Date: Sat Oct 26 17:40:38 2013 New Revision: 257173 URL: http://svnweb.freebsd.org/changeset/base/257173 Log: Move includes from if_bcereg.h to .c files. Modified: head/sys/dev/bce/if_bce.c head/sys/dev/bce/if_bcereg.h Modified: head/sys/dev/bce/if_bce.c

svn commit: r257174 - head/sys/netgraph

2013-10-26 Thread Gleb Smirnoff
Author: glebius Date: Sat Oct 26 17:43:18 2013 New Revision: 257174 URL: http://svnweb.freebsd.org/changeset/base/257174 Log: Remove unsigned 0 comparison. Modified: head/sys/netgraph/ng_one2many.c Modified: head/sys/netgraph/ng_one2many.c

svn commit: r257176 - in head/sys: compat/linprocfs compat/linux compat/ndis dev/ae dev/age dev/alc dev/ale dev/an dev/ath dev/ath/ath_dfs/null dev/ath/ath_rate/sample dev/bfe dev/bge dev/bm dev/bw...

2013-10-26 Thread Gleb Smirnoff
Author: glebius Date: Sat Oct 26 17:58:36 2013 New Revision: 257176 URL: http://svnweb.freebsd.org/changeset/base/257176 Log: The r48589 promised to remove implicit inclusion of if_var.h soon. Prepare to this event, adding if_var.h to files that do need it. Also, include all includes that

svn commit: r257179 - in head/sys: amd64/amd64 compat/linsysfs compat/linux dev/sfxge dev/sn dev/xe net80211 netinet/libalias netinet6 netipsec netnatm netpfil/ipfw netpfil/pf

2013-10-26 Thread Gleb Smirnoff
Author: glebius Date: Sat Oct 26 18:18:50 2013 New Revision: 257179 URL: http://svnweb.freebsd.org/changeset/base/257179 Log: Provide includes that are needed in these files, and before were read in implicitly via if.h - if_var.h pollution. Sponsored by: Netflix Sponsored by: Nginx,

svn commit: r257184 - in head/sys/dev: mii usb/net xl

2013-10-26 Thread Gleb Smirnoff
Author: glebius Date: Sat Oct 26 18:40:17 2013 New Revision: 257184 URL: http://svnweb.freebsd.org/changeset/base/257184 Log: The MII layer shouldn't care about administrative status of an interface. Make MII drivers forget about 'struct ifnet'. Later plan is to provide an administrative

svn commit: r257186 - in head: contrib/libpcap sys/contrib/altq/altq sys/net

2013-10-26 Thread Gleb Smirnoff
Author: glebius Date: Sat Oct 26 18:59:58 2013 New Revision: 257186 URL: http://svnweb.freebsd.org/changeset/base/257186 Log: Start splitting pfvar.h into internal and external parts. - Provide pf_altq.h that has only stuff needed for ALTQ. - Start pf.h, that would have all constant

Re: svn commit: r257176 - in head/sys: compat/linprocfs compat/linux compat/ndis dev/ae dev/age dev/alc dev/ale dev/an dev/ath dev/ath/ath_dfs/null dev/ath/ath_rate/sample dev/bfe dev/bge dev/bm dev/b

2013-10-26 Thread Gleb Smirnoff
On Sat, Oct 26, 2013 at 11:28:29PM +0400, Sergey Kandaurov wrote: S On 26 October 2013 21:58, Gleb Smirnoff gleb...@freebsd.org wrote: S Author: glebius S Date: Sat Oct 26 17:58:36 2013 S New Revision: 257176 S URL: http://svnweb.freebsd.org/changeset/base/257176 S S Log: SThe r48589

Re: svn commit: r257184 - in head/sys/dev: mii usb/net xl

2013-10-27 Thread Gleb Smirnoff
On Sat, Oct 26, 2013 at 06:57:04PM -0700, Adrian Chadd wrote: A hm, so none of the modified PHYs nor their consumers will get upset? A Eg, if the NIC is down, is touching the PHY registers going to be a A problem? The IFF_UP was always an administrative flag. I believe drivers initialize all

svn commit: r257215 - in head: contrib/libpcap etc/mtree include sys/contrib/altq/altq sys/net sys/netpfil/ipfw sys/netpfil/pf

2013-10-27 Thread Gleb Smirnoff
Author: glebius Date: Sun Oct 27 16:25:57 2013 New Revision: 257215 URL: http://svnweb.freebsd.org/changeset/base/257215 Log: Move new pf includes to the pf directory. The pfvar.h remain in net, to avoid compatibility breakage for no sake. The future plan is to split most of non-kernel

svn commit: r257218 - head/sys/contrib/ipfilter/netinet

2013-10-27 Thread Gleb Smirnoff
Author: glebius Date: Sun Oct 27 17:12:31 2013 New Revision: 257218 URL: http://svnweb.freebsd.org/changeset/base/257218 Log: Include lock.h before mutex.h. Modified: head/sys/contrib/ipfilter/netinet/ip_compat.h Modified: head/sys/contrib/ipfilter/netinet/ip_compat.h

svn commit: r257219 - head/sys/net

2013-10-27 Thread Gleb Smirnoff
Author: glebius Date: Sun Oct 27 17:14:33 2013 New Revision: 257219 URL: http://svnweb.freebsd.org/changeset/base/257219 Log: Almost all if_clone consumers do not care about if_clone_event. Do not force them to include sys/eventhandler.h. Those who utilize EVENTHANDLER(9), will see the

svn commit: r257220 - head/sys/net

2013-10-27 Thread Gleb Smirnoff
Author: glebius Date: Sun Oct 27 17:27:06 2013 New Revision: 257220 URL: http://svnweb.freebsd.org/changeset/base/257220 Log: Provide forward declaration for struct ifnet. Consumers of this header don't need contents of struct. Modified: head/sys/net/if_media.h Modified:

svn commit: r257241 - in head/sys: compat/ndis dev/ath dev/bwi dev/cxgb dev/cxgb/ulp/tom dev/cxgbe dev/cxgbe/common dev/cxgbe/tom dev/hyperv/netvsc dev/if_ndis dev/malo dev/oce dev/qlxgb dev/qlxgbe...

2013-10-28 Thread Gleb Smirnoff
Author: glebius Date: Mon Oct 28 07:29:16 2013 New Revision: 257241 URL: http://svnweb.freebsd.org/changeset/base/257241 Log: Include necessary headers that now are available due to pollution via if_var.h. Sponsored by: Netflix Sponsored by: Nginx, Inc. Modified:

svn commit: r257242 - in head/sys: net sys

2013-10-28 Thread Gleb Smirnoff
Author: glebius Date: Mon Oct 28 07:45:03 2013 New Revision: 257242 URL: http://svnweb.freebsd.org/changeset/base/257242 Log: Instead of putting ifnet declaration into eventhandler.h, move bpf(4) and vlan(4) related event declarations to bpf.h and if_vlan_var.h. To avoid dependency on

svn commit: r257244 - head/sys/net

2013-10-28 Thread Gleb Smirnoff
Author: glebius Date: Mon Oct 28 08:03:40 2013 New Revision: 257244 URL: http://svnweb.freebsd.org/changeset/base/257244 Log: - Make the prophecy from 1997 happen and remove if_var.h inclusion from if.h. - Remove unnecessary includes and declarations from if.h - Remove unnecessary

svn commit: r257246 - head/sys/netpfil/pf

2013-10-28 Thread Gleb Smirnoff
Author: glebius Date: Mon Oct 28 10:12:19 2013 New Revision: 257246 URL: http://svnweb.freebsd.org/changeset/base/257246 Log: - Fix VIMAGE build. - Fix build with gcc. Modified: head/sys/netpfil/pf/pf.c Modified: head/sys/netpfil/pf/pf.c

svn commit: r257249 - in head: share/man/man4 sys/modules/netgraph sys/modules/netgraph/fec sys/netgraph

2013-10-28 Thread Gleb Smirnoff
Author: glebius Date: Mon Oct 28 12:47:05 2013 New Revision: 257249 URL: http://svnweb.freebsd.org/changeset/base/257249 Log: Axe ng_fec(4). It has never been a real netgraph(4) module, since it had no hooks. It has abused ifnet's if_afdata slot and actually abused every subsystem it

svn commit: r257250 - head

2013-10-28 Thread Gleb Smirnoff
Author: glebius Date: Mon Oct 28 12:49:07 2013 New Revision: 257250 URL: http://svnweb.freebsd.org/changeset/base/257250 Log: ng_fec(4) removed. Modified: head/ObsoleteFiles.inc Modified: head/ObsoleteFiles.inc ==

svn commit: r257254 - head/lib/libnetgraph

2013-10-28 Thread Gleb Smirnoff
Author: glebius Date: Mon Oct 28 14:47:33 2013 New Revision: 257254 URL: http://svnweb.freebsd.org/changeset/base/257254 Log: Remove ng_fec(4). Modified: head/lib/libnetgraph/debug.c Modified: head/lib/libnetgraph/debug.c

svn commit: r257255 - head/sys/conf

2013-10-28 Thread Gleb Smirnoff
Author: glebius Date: Mon Oct 28 14:52:08 2013 New Revision: 257255 URL: http://svnweb.freebsd.org/changeset/base/257255 Log: Remove ng_fec(4). Modified: head/sys/conf/files Modified: head/sys/conf/files == ---

svn commit: r257256 - head/sys/contrib/ipfilter/netinet

2013-10-28 Thread Gleb Smirnoff
Author: glebius Date: Mon Oct 28 15:11:37 2013 New Revision: 257256 URL: http://svnweb.freebsd.org/changeset/base/257256 Log: Fix build. We need to include systm.h before if_var.h. Pointy hat to:glebius Modified: head/sys/contrib/ipfilter/netinet/radix_ipf.c Modified:

svn commit: r257257 - head/sys/conf

2013-10-28 Thread Gleb Smirnoff
Author: glebius Date: Mon Oct 28 15:17:41 2013 New Revision: 257257 URL: http://svnweb.freebsd.org/changeset/base/257257 Log: Remove ng_fec(4). Modified: head/sys/conf/NOTES Modified: head/sys/conf/NOTES == ---

Re: svn commit: r257258 - in head/sys/arm: at91 econa lpc ti/cpsw versatile xscale/pxa

2013-10-28 Thread Gleb Smirnoff
On Mon, Oct 28, 2013 at 03:20:18PM +, Ian Lepore wrote: I Author: ian I Date: Mon Oct 28 15:20:17 2013 I New Revision: 257258 I URL: http://svnweb.freebsd.org/changeset/base/257258 I I Log: I Sweep up a bit of arm-land fallout after r257244; include necessary I headers directly that are

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

2013-10-28 Thread Gleb Smirnoff
Author: glebius Date: Mon Oct 28 15:38:26 2013 New Revision: 257259 URL: http://svnweb.freebsd.org/changeset/base/257259 Log: Remove ng_fec.4 Submitted by: Dmitry Luhtionov dmitryluhtionov gmail.com Modified: head/share/man/man4/netgraph.4 Modified: head/share/man/man4/netgraph.4

svn commit: r257261 - in head: etc etc/defaults etc/rc.d share/man/man4 share/man/man5 sys/boot/forth

2013-10-28 Thread Gleb Smirnoff
Author: glebius Date: Mon Oct 28 16:21:31 2013 New Revision: 257261 URL: http://svnweb.freebsd.org/changeset/base/257261 Log: Remove more remnants of ng_fec(4). The ng_create_one() and ng_mkpeer() functions in network.subr are now not used anywhere, but I left them, since they can be

svn commit: r257271 - in head/sys: net sys

2013-10-28 Thread Gleb Smirnoff
Author: glebius Date: Mon Oct 28 20:32:05 2013 New Revision: 257271 URL: http://svnweb.freebsd.org/changeset/base/257271 Log: Style: s/SYS_EVENTHANDLER_H/_SYS_EVENTHANDLER_H_/g Submitted by: bde Modified: head/sys/net/bpf.h head/sys/net/if_clone.h head/sys/net/if_var.h

svn commit: r257275 - in head/sys/dev/xen: netback netfront

2013-10-28 Thread Gleb Smirnoff
Author: glebius Date: Mon Oct 28 21:08:04 2013 New Revision: 257275 URL: http://svnweb.freebsd.org/changeset/base/257275 Log: Include if_var.h. Modified: head/sys/dev/xen/netback/netback.c head/sys/dev/xen/netfront/netfront.c Modified: head/sys/dev/xen/netback/netback.c

svn commit: r257276 - head/sys/dev/xen/netfront

2013-10-28 Thread Gleb Smirnoff
Author: glebius Date: Mon Oct 28 21:09:59 2013 New Revision: 257276 URL: http://svnweb.freebsd.org/changeset/base/257276 Log: Remove dead function show_device(). It isn't buildable if DEBUG is defined, due to unknown field xn_ifno. The field wasn't known since beginning of history of this

svn commit: r257277 - head/sys/amd64/conf

2013-10-28 Thread Gleb Smirnoff
Author: glebius Date: Mon Oct 28 21:11:28 2013 New Revision: 257277 URL: http://svnweb.freebsd.org/changeset/base/257277 Log: Include XEN and HyperV into amd64 LINT. Modified: head/sys/amd64/conf/NOTES Modified: head/sys/amd64/conf/NOTES

svn commit: r257284 - in head/sys: dev/ath dev/etherswitch dev/etherswitch/arswitch mips/atheros net80211

2013-10-28 Thread Gleb Smirnoff
Author: glebius Date: Mon Oct 28 22:26:03 2013 New Revision: 257284 URL: http://svnweb.freebsd.org/changeset/base/257284 Log: - Provide necessary includes, that before came via if.h pollution. - Remove unnecessary ones. Sponsored by: Netflix Sponsored by: Nginx, Inc. Modified:

svn commit: r257289 - head/sys/dev/cm

2013-10-28 Thread Gleb Smirnoff
Author: glebius Date: Mon Oct 28 23:17:41 2013 New Revision: 257289 URL: http://svnweb.freebsd.org/changeset/base/257289 Log: Provide necessary includes that before came via if.h. Modified: head/sys/dev/cm/if_cm_isa.c Modified: head/sys/dev/cm/if_cm_isa.c

svn commit: r257324 - in head/sys: compat/svr4 dev/cs dev/cxgbe/tom dev/ep dev/etherswitch/ukswitch dev/ie dev/pdq dev/sbni dev/tsec dev/vx i386/i386 mips/cavium/octe powerpc/ps3 powerpc/pseries

2013-10-29 Thread Gleb Smirnoff
Author: glebius Date: Tue Oct 29 11:17:49 2013 New Revision: 257324 URL: http://svnweb.freebsd.org/changeset/base/257324 Log: - Provide necessary includes. - Remove unnecessary includes. Sponsored by: Netflix Sponsored by: Nginx, Inc. Modified: head/sys/compat/svr4/svr4_sockio.c

svn commit: r257325 - head/sys/netinet

2013-10-29 Thread Gleb Smirnoff
Author: glebius Date: Tue Oct 29 11:21:31 2013 New Revision: 257325 URL: http://svnweb.freebsd.org/changeset/base/257325 Log: Uninline inm_lookup_locked(). Now in_var.h doesn't dereference fields of struct ifnet. Sponsored by: Netflix Sponsored by: Nginx, Inc. Modified:

svn commit: r257349 - in head: contrib/tcpdump sbin/ifconfig usr.bin/netstat usr.sbin/tcpdump/tcpdump

2013-10-29 Thread Gleb Smirnoff
Author: glebius Date: Tue Oct 29 17:38:13 2013 New Revision: 257349 URL: http://svnweb.freebsd.org/changeset/base/257349 Log: Make userland tools honor WITHOUT_PF build option. Tested by:d...@gmx.com Modified: head/contrib/tcpdump/print-ip.c head/sbin/ifconfig/Makefile

Re: svn commit: r256512 - head/usr.bin/netstat

2013-10-30 Thread Gleb Smirnoff
Jeremie, On Mon, Oct 28, 2013 at 09:41:13PM +0100, Jeremie Le Hen wrote: J On Tue, Oct 15, 2013 at 09:55:08AM +, Gleb Smirnoff wrote: J Log: J Rewrite netstat/if.c to use getifaddrs(3) and getifmaddrs(3) instead of Jlibkvm digging in kernel memory. This is possible since r231506

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

2013-10-30 Thread Gleb Smirnoff
Author: glebius Date: Wed Oct 30 08:13:42 2013 New Revision: 257376 URL: http://svnweb.freebsd.org/changeset/base/257376 Log: 'netstat -i' no longer supports working on a vmcore. Modified: head/usr.bin/netstat/netstat.1 Modified: head/usr.bin/netstat/netstat.1

svn commit: r257421 - head/sys/dev/ipmi

2013-10-30 Thread Gleb Smirnoff
Author: glebius Date: Thu Oct 31 05:13:53 2013 New Revision: 257421 URL: http://svnweb.freebsd.org/changeset/base/257421 Log: Provide a crutch that prevents watchdog to interrupt dumping on a box with IPMI enabled. Okay from:jhb Sponsored by: Netflix Sponsored by: Nginx, Inc.

svn commit: r257469 - head/usr.sbin/crashinfo

2013-10-31 Thread Gleb Smirnoff
Author: glebius Date: Thu Oct 31 20:30:56 2013 New Revision: 257469 URL: http://svnweb.freebsd.org/changeset/base/257469 Log: Remove 'netstat -i' from crashinfo, as this no longer is supported. Modified: head/usr.sbin/crashinfo/crashinfo.sh Modified: head/usr.sbin/crashinfo/crashinfo.sh

svn commit: r257498 - in head/sys: kern sys

2013-11-01 Thread Gleb Smirnoff
Author: glebius Date: Fri Nov 1 10:01:57 2013 New Revision: 257498 URL: http://svnweb.freebsd.org/changeset/base/257498 Log: prison_check_ip4() can take const arguments. Modified: head/sys/kern/kern_jail.c head/sys/sys/jail.h Modified: head/sys/kern/kern_jail.c

svn commit: r257499 - head/sys/netinet

2013-11-01 Thread Gleb Smirnoff
Author: glebius Date: Fri Nov 1 10:18:41 2013 New Revision: 257499 URL: http://svnweb.freebsd.org/changeset/base/257499 Log: Cleanup in_ifscrub(), which is just an entry to in_scrubprefix(). Modified: head/sys/netinet/if_ether.c head/sys/netinet/in.c head/sys/netinet/in_var.h

svn commit: r257500 - head/sys/netinet

2013-11-01 Thread Gleb Smirnoff
Author: glebius Date: Fri Nov 1 10:29:10 2013 New Revision: 257500 URL: http://svnweb.freebsd.org/changeset/base/257500 Log: in_ifadown() can be void. Modified: head/sys/netinet/in_rmx.c head/sys/netinet/in_var.h Modified: head/sys/netinet/in_rmx.c

svn commit: r257515 - in head/sys/dev/xen: netback netfront

2013-11-01 Thread Gleb Smirnoff
Author: glebius Date: Fri Nov 1 18:42:03 2013 New Revision: 257515 URL: http://svnweb.freebsd.org/changeset/base/257515 Log: Somehow fix LINT-NOIP. Modified: head/sys/dev/xen/netback/netback.c head/sys/dev/xen/netback/netback_unit_tests.c head/sys/dev/xen/netfront/netfront.c Modified:

svn commit: r257619 - head/sys/netpfil/pf

2013-11-04 Thread Gleb Smirnoff
Author: glebius Date: Mon Nov 4 08:15:59 2013 New Revision: 257619 URL: http://svnweb.freebsd.org/changeset/base/257619 Log: Remove unused PFTM_UNTIL_PACKET const. Modified: head/sys/netpfil/pf/pf.c head/sys/netpfil/pf/pf.h head/sys/netpfil/pf/pf_ioctl.c Modified:

svn commit: r257620 - head/sys/netpfil/pf

2013-11-04 Thread Gleb Smirnoff
Author: glebius Date: Mon Nov 4 08:20:06 2013 New Revision: 257620 URL: http://svnweb.freebsd.org/changeset/base/257620 Log: Code logic of handling PFTM_PURGE into pf_find_state(). Modified: head/sys/netpfil/pf/pf.c Modified: head/sys/netpfil/pf/pf.c

svn commit: r257643 - head/share/man/man3

2013-11-04 Thread Gleb Smirnoff
Author: glebius Date: Mon Nov 4 16:56:35 2013 New Revision: 257643 URL: http://svnweb.freebsd.org/changeset/base/257643 Log: Document RB_FOREACH_SAFE() and RB_FOREACH_REVERSE_SAFE(). Submitted by: Mikhail mp lenta.ru Modified: head/share/man/man3/tree.3 Modified:

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

2013-11-04 Thread Gleb Smirnoff
Author: glebius Date: Tue Nov 5 06:44:33 2013 New Revision: 257686 URL: http://svnweb.freebsd.org/changeset/base/257686 Log: Add required kernel option. Modified: head/share/man/man4/natm.4 Modified: head/share/man/man4/natm.4

r257637

2013-11-04 Thread Gleb Smirnoff
Ian, the r257637 breaks kernel builds. Assuming you have empty /usr/obj, if you run 'make KERNCONF=LINT buildkernel', it will quickly fail due to absence of aicasm. -- Totus tuus, Glebius. ___ svn-src-head@freebsd.org mailing list

svn commit: r257689 - in head: sys/net sys/netinet sys/netpfil/ipfw usr.sbin/arp

2013-11-04 Thread Gleb Smirnoff
Author: glebius Date: Tue Nov 5 07:32:09 2013 New Revision: 257689 URL: http://svnweb.freebsd.org/changeset/base/257689 Log: Remove net.link.ether.inet.useloopback sysctl tunable. It was always on by default from the very beginning. It was placed in wrong namespace net.link.ether,

svn commit: r257690 - head/sys/net

2013-11-04 Thread Gleb Smirnoff
Author: glebius Date: Tue Nov 5 07:36:17 2013 New Revision: 257690 URL: http://svnweb.freebsd.org/changeset/base/257690 Log: In complemence to ifa_add_loopback_route() and ifa_del_loopback_route() provide function ifa_switch_loopback_route() that will be used in case when an interface

svn commit: r257692 - head/sys/netinet

2013-11-04 Thread Gleb Smirnoff
Author: glebius Date: Tue Nov 5 07:44:15 2013 New Revision: 257692 URL: http://svnweb.freebsd.org/changeset/base/257692 Log: Rewrite in_control(), so that it is comprehendable without getting mad. o Provide separate functions for SIOCAIFADDR and for SIOCDIFADDR, with clear code flow

svn commit: r257693 - head/sys/netinet

2013-11-04 Thread Gleb Smirnoff
Author: glebius Date: Tue Nov 5 07:45:20 2013 New Revision: 257693 URL: http://svnweb.freebsd.org/changeset/base/257693 Log: netinet code no longer uses IFA_RTSELF. Modified: head/sys/netinet/raw_ip.c Modified: head/sys/netinet/raw_ip.c

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

2013-11-04 Thread Gleb Smirnoff
On Tue, Nov 05, 2013 at 07:44:15AM +, Gleb Smirnoff wrote: T Rewrite in_control(), so that it is comprehendable without getting mad. T T o Provide separate functions for SIOCAIFADDR and for SIOCDIFADDR, with T clear code flow from beginning to the end. After that the rest of T

svn commit: r257694 - in head/etc: . defaults namedb periodic/daily rc.d

2013-11-05 Thread Gleb Smirnoff
Author: glebius Date: Tue Nov 5 09:30:06 2013 New Revision: 257694 URL: http://svnweb.freebsd.org/changeset/base/257694 Log: Remove remnants of BIND from /etc, since there is no BIND in base now. Sorry, that would break users running head and BIND from ports, since ports rely on these

svn commit: r257696 - in head: libexec/rbootd share/man/man9 sys/compat/svr4 sys/net sys/sys

2013-11-05 Thread Gleb Smirnoff
Author: glebius Date: Tue Nov 5 10:29:47 2013 New Revision: 257696 URL: http://svnweb.freebsd.org/changeset/base/257696 Log: Drop support for historic ioctls and also undefine them, so that code that checks their presence via ifdef, won't use them. Bump __FreeBSD_version as safety

svn commit: r257699 - in head: share/man/man9 sys/compat/linux sys/net usr.sbin/route6d

2013-11-05 Thread Gleb Smirnoff
Author: glebius Date: Tue Nov 5 12:52:56 2013 New Revision: 257699 URL: http://svnweb.freebsd.org/changeset/base/257699 Log: Axe IFF_SMART. Fortunately this layering violating flag was never used, it was just declared. Modified: head/share/man/man9/ifnet.9

svn commit: r257704 - head/sbin/ifconfig

2013-11-05 Thread Gleb Smirnoff
Author: glebius Date: Tue Nov 5 14:11:31 2013 New Revision: 257704 URL: http://svnweb.freebsd.org/changeset/base/257704 Log: Axe IFF_SMART. Submitted by: pluknet Modified: head/sbin/ifconfig/ifconfig.c Modified: head/sbin/ifconfig/ifconfig.c

Re: r257637

2013-11-05 Thread Gleb Smirnoff
On Tue, Nov 05, 2013 at 07:34:26AM -0700, Ian Lepore wrote: Ithe r257637 breaks kernel builds. Assuming you have empty /usr/obj, I if you run 'make KERNCONF=LINT buildkernel', it will quickly fail I due to absence of aicasm. I I I I think you may need to run make kernel-toolchain. The

svn commit: r257710 - head/sys/netpfil/pf

2013-11-05 Thread Gleb Smirnoff
Author: glebius Date: Tue Nov 5 16:54:25 2013 New Revision: 257710 URL: http://svnweb.freebsd.org/changeset/base/257710 Log: Fix fallout from r257223. Since pf_test_state_icmp() can call pf_icmp_state_lookup() twice, we need to unlock previously found state. Reported tested by: gavin

svn commit: r257713 - head/sys/compat/svr4

2013-11-05 Thread Gleb Smirnoff
Author: glebius Date: Tue Nov 5 19:17:19 2013 New Revision: 257713 URL: http://svnweb.freebsd.org/changeset/base/257713 Log: Fix build. Pointy hat to:glebius Modified: head/sys/compat/svr4/svr4_sockio.c Modified: head/sys/compat/svr4/svr4_sockio.c

Re: svn commit: r257696 - in head: libexec/rbootd share/man/man9 sys/compat/svr4 sys/net sys/sys

2013-11-05 Thread Gleb Smirnoff
On Tue, Nov 05, 2013 at 11:56:09AM -0500, John Baldwin wrote: J On Tuesday, November 05, 2013 5:29:48 am Gleb Smirnoff wrote: J Author: glebius J Date: Tue Nov 5 10:29:47 2013 J New Revision: 257696 J URL: http://svnweb.freebsd.org/changeset/base/257696 J J Log: JDrop support

Re: svn commit: r257694 - in head/etc: . defaults namedb periodic/daily rc.d

2013-11-05 Thread Gleb Smirnoff
On Tue, Nov 05, 2013 at 11:48:59AM -0800, Julian Elischer wrote: J On 11/5/13, 1:30 AM, Gleb Smirnoff wrote: J Author: glebius J Date: Tue Nov 5 09:30:06 2013 J New Revision: 257694 J URL: http://svnweb.freebsd.org/changeset/base/257694 J J Log: J Remove remnants of BIND from /etc

Re: svn commit: r257696 - in head: libexec/rbootd share/man/man9 sys/compat/svr4 sys/net sys/sys

2013-11-05 Thread Gleb Smirnoff
On Tue, Nov 05, 2013 at 04:34:43PM -0800, Peter Wemm wrote: P eg: /usr/sbin/traceroute after the change: P # traceroute www.freebsd.org P traceroute: ifaddrlist: SIOCGIFADDR: bge0: Can't assign requested address P P Hint: linux doesn't have a sa_len, so code that originates on Linux P will

Re: svn commit: r257696 - in head: libexec/rbootd share/man/man9 sys/compat/svr4 sys/net sys/sys

2013-11-05 Thread Gleb Smirnoff
John, Adrian, On Tue, Nov 05, 2013 at 05:18:26PM -0500, John Baldwin wrote: J Mmmm, people run older versions of binaries (even open source ones) on newer OS's J perhaps more often than you think. The COMPAT_43 stuff can be dropped certainly, J but people will almost certainly do rolling

Re: svn commit: r257696 - in head: libexec/rbootd share/man/man9 sys/compat/svr4 sys/net sys/sys

2013-11-05 Thread Gleb Smirnoff
On Wed, Nov 06, 2013 at 10:11:15AM +0400, Gleb Smirnoff wrote: T On Tue, Nov 05, 2013 at 04:34:43PM -0800, Peter Wemm wrote: T P eg: /usr/sbin/traceroute after the change: T P # traceroute www.freebsd.org T P traceroute: ifaddrlist: SIOCGIFADDR: bge0: Can't assign requested address T P T P

Re: svn commit: r257696 - in head: libexec/rbootd share/man/man9 sys/compat/svr4 sys/net sys/sys

2013-11-06 Thread Gleb Smirnoff
On Tue, Nov 05, 2013 at 04:15:05PM -0800, Peter Wemm wrote: P eg: /usr/sbin/traceroute after the change: P # traceroute www.freebsd.org P traceroute: ifaddrlist: SIOCGIFADDR: bge0: Can't assign requested address Fixed. -- Totus tuus, Glebius. ___

Re: svn commit: r257696 - in head: libexec/rbootd share/man/man9 sys/compat/svr4 sys/net sys/sys

2013-11-06 Thread Gleb Smirnoff
On Wed, Nov 06, 2013 at 08:30:43AM -0800, Peter Wemm wrote: P Why should we support such broken configurations as running new kernel and P ancient core base system utilities? The efforts to keep this are much more P expensive, then yields. P P Why? because up until now you could run a FreeBSD4

Re: svn commit: r257696 - in head: libexec/rbootd share/man/man9 sys/compat/svr4 sys/net sys/sys

2013-11-06 Thread Gleb Smirnoff
On Wed, Nov 06, 2013 at 10:54:59AM -0800, Adrian Chadd wrote: A Gleb, A A I think you are confusing evolving and improving with tearing out legacy A APIs. A A You can likely do the former without the latter. A A So don't think you need to stop fixing things. Just don't conflate removing A old

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

2013-11-06 Thread Gleb Smirnoff
Author: glebius Date: Wed Nov 6 19:46:20 2013 New Revision: 257761 URL: http://svnweb.freebsd.org/changeset/base/257761 Log: Provide compat layer for OSIOCAIFADDR. Modified: head/sys/net/if.h head/sys/netinet/in.c head/sys/sys/sockio.h Modified: head/sys/net/if.h

svn commit: r257796 - in head: . share/examples

2013-11-07 Thread Gleb Smirnoff
Author: glebius Date: Thu Nov 7 14:05:49 2013 New Revision: 257796 URL: http://svnweb.freebsd.org/changeset/base/257796 Log: Finish r257779. PR: usb/183728 Modified: head/ObsoleteFiles.inc head/share/examples/Makefile Modified: head/ObsoleteFiles.inc

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