svn commit: r360630 - head/sys/net/route

2020-05-04 Thread Alexander V. Chernikov
Author: melifaro Date: Mon May 4 15:00:19 2020 New Revision: 360630 URL: https://svnweb.freebsd.org/changeset/base/360630 Log: Simplify address parsing in DDB show route command. Use db_get_line() to overcome parser limitation. Differential Revision:https://reviews.freebsd.org

svn commit: r360629 - in head/sys: net net/route netinet netinet6

2020-05-04 Thread Alexander V. Chernikov
Author: melifaro Date: Mon May 4 14:31:45 2020 New Revision: 360629 URL: https://svnweb.freebsd.org/changeset/base/360629 Log: Remove now-unused rt_ifp,rt_ifa,rt_gateway,rt_mtu rte fields. After converting routing subsystem customers to use nexthop objects defined in r359823, some field

svn commit: r360478 - in head/sys/net: . route

2020-04-29 Thread Alexander V. Chernikov
Author: melifaro Date: Wed Apr 29 21:54:09 2020 New Revision: 360478 URL: https://svnweb.freebsd.org/changeset/base/360478 Log: Convert more rtentry field accesses into nhop fields accesses. Continue routing subsystem conversion to nhop objects defined in r359823. Use fields from nhop str

svn commit: r360475 - in head/sys: net netinet6

2020-04-29 Thread Alexander V. Chernikov
Author: melifaro Date: Wed Apr 29 19:28:56 2020 New Revision: 360475 URL: https://svnweb.freebsd.org/changeset/base/360475 Log: Add nhop to the ifa_rtrequest() callback. With the upcoming multipath changes described in D24141, rt->rt_nhop can potentially point to a nexthop group instead

svn commit: r360450 - in head/sys: conf net net/route

2020-04-28 Thread Alexander V. Chernikov
Author: melifaro Date: Tue Apr 28 20:00:17 2020 New Revision: 360450 URL: https://svnweb.freebsd.org/changeset/base/360450 Log: Move route-specific ddb commands to route/route_ddb.c Currently functionality resides in rtsock.c, which is a controlling interface, partially external to the r

svn commit: r360449 - in head/sys: conf net net/route netinet netinet6 netpfil/ipfw

2020-04-28 Thread Alexander V. Chernikov
et/route/route_var.h (from r360447, head/sys/net/route_var.h) == --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sys/net/route/route_var.h Tue Apr 28 19:14:09 2020 (r360449, copy of r360447, head/sys/net/route_var.h) @@ -0,0 +1,230 @@ +/*

svn commit: r360447 - in head/sys: net netinet6

2020-04-28 Thread Alexander V. Chernikov
Author: melifaro Date: Tue Apr 28 18:42:30 2020 New Revision: 360447 URL: https://svnweb.freebsd.org/changeset/base/360447 Log: Move struct rtentry definition to nhop_var.h. One of the goals of the new routing KPI defined in r359823 is to entirely hide`struct rtentry` from the consumers.

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

2020-04-28 Thread Alexander V. Chernikov
Author: melifaro Date: Tue Apr 28 08:06:56 2020 New Revision: 360431 URL: https://svnweb.freebsd.org/changeset/base/360431 Log: Convert rtalloc_mpath_fib() users to the new KPI. New fib[46]_lookup() functions support multipath transparently. Given that, switch the last rtalloc_mpath_fib()

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

2020-04-28 Thread Alexander V. Chernikov
Author: melifaro Date: Tue Apr 28 07:25:34 2020 New Revision: 360430 URL: https://svnweb.freebsd.org/changeset/base/360430 Log: Eliminate now-unused parts of old routing KPI. r360292 switched most of the remaining routing customers to a new KPI, leaving a bunch of wrappers for old routin

svn commit: r360429 - head/sys/nfs

2020-04-28 Thread Alexander V. Chernikov
Author: melifaro Date: Tue Apr 28 07:23:41 2020 New Revision: 360429 URL: https://svnweb.freebsd.org/changeset/base/360429 Log: Remove rtable dumping code from bootp. This debugging code printing routing table data was introduced in rS25723, 22+ years ago. The last functional commit to t

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

2020-04-26 Thread Alexander V. Chernikov
Author: melifaro Date: Sun Apr 26 18:42:38 2020 New Revision: 360349 URL: https://svnweb.freebsd.org/changeset/base/360349 Log: Convert debugnet to the new routing KPI. Introduce new fib[46]_lookup_debugnet() functions serving as a special interface for the crash-time operations. Underlyi

svn commit: r360348 - head/sys/netinet6

2020-04-26 Thread Alexander V. Chernikov
Author: melifaro Date: Sun Apr 26 18:07:35 2020 New Revision: 360348 URL: https://svnweb.freebsd.org/changeset/base/360348 Log: Fix IPv6 link-local operations with RADIX_MPATH. It was broken by r360292 as fib6_lookup() assumes de-embedded addresses while rtalloc_mpath_fib() requires sock

svn commit: r360337 - head/sys/netinet

2020-04-26 Thread Alexander V. Chernikov
Author: melifaro Date: Sun Apr 26 13:02:42 2020 New Revision: 360337 URL: https://svnweb.freebsd.org/changeset/base/360337 Log: Fix order of arguments in fib[46]_lookup calls in SCTP. r360292 introduced the wrong order, resulting in returned nhops not being referenced, despite the fact t

svn commit: r360296 - in head/sys: kern netinet netinet/tcp_stacks

2020-04-25 Thread Alexander V. Chernikov
Author: melifaro Date: Sat Apr 25 11:35:38 2020 New Revision: 360296 URL: https://svnweb.freebsd.org/changeset/base/360296 Log: Fix LINT build #2 after r360292. Pointyhat to: melifaro Modified: head/sys/kern/uipc_ktls.c head/sys/netinet/sctp_output.c head/sys/netinet/tcp_stacks/rack.

svn commit: r360295 - head/sys/netinet/tcp_stacks

2020-04-25 Thread Alexander V. Chernikov
Author: melifaro Date: Sat Apr 25 10:31:56 2020 New Revision: 360295 URL: https://svnweb.freebsd.org/changeset/base/360295 Log: Fix LINT build broken by r360292. Modified: head/sys/netinet/tcp_stacks/bbr.c Modified: head/sys/netinet/tcp_stacks/bbr.c ==

svn commit: r360294 - head/sys/net

2020-04-25 Thread Alexander V. Chernikov
Author: melifaro Date: Sat Apr 25 09:25:06 2020 New Revision: 360294 URL: https://svnweb.freebsd.org/changeset/base/360294 Log: Fix userland build broken by r360292. Modified: head/sys/net/route.h Modified: head/sys/net/route.h

svn commit: r360292 - in head/sys: kern net netinet netinet/tcp_stacks netinet6

2020-04-25 Thread Alexander V. Chernikov
Author: melifaro Date: Sat Apr 25 09:06:11 2020 New Revision: 360292 URL: https://svnweb.freebsd.org/changeset/base/360292 Log: Convert route caching to nexthop caching. This change is build on top of nexthop objects introduced in r359823. Nexthops are separate datastructures, containi

svn commit: r360218 - in head/sys: net netinet6

2020-04-23 Thread Alexander V. Chernikov
Author: melifaro Date: Thu Apr 23 08:04:20 2020 New Revision: 360218 URL: https://svnweb.freebsd.org/changeset/base/360218 Log: Convert rtentry field accesses into nhop field accesses. One of the goals of the new routing KPI defined in r359823 is to entirely hide`struct rtentry` from the

svn commit: r360217 - head/sys/netinet

2020-04-22 Thread Alexander V. Chernikov
Author: melifaro Date: Thu Apr 23 06:55:33 2020 New Revision: 360217 URL: https://svnweb.freebsd.org/changeset/base/360217 Log: Unbreak LINT-NOINET[6] builds broken in r360191. Reported by: np Modified: head/sys/netinet/tcp_offload.c Modified: head/sys/netinet/tcp_offload.c ===

svn commit: r360191 - in head/sys: dev/cxgbe/tom netinet

2020-04-22 Thread Alexander V. Chernikov
Author: melifaro Date: Wed Apr 22 07:53:43 2020 New Revision: 360191 URL: https://svnweb.freebsd.org/changeset/base/360191 Log: Convert TOE routing lookups to the new routing KPI. Reviewed by: np Differential Revision:https://reviews.freebsd.org/D24388 Modified: head/sys/dev/c

svn commit: r360090 - head/sys/netinet6

2020-04-19 Thread Alexander V. Chernikov
Author: melifaro Date: Sun Apr 19 07:27:12 2020 New Revision: 360090 URL: https://svnweb.freebsd.org/changeset/base/360090 Log: Fix lookup key generation in fib6_check_urpf(). The version introduced in r359823 assumed D23051 had been in tree already. As this is not the case yet, rever

svn commit: r360049 - head/sys/net

2020-04-17 Thread Alexander V. Chernikov
Author: melifaro Date: Fri Apr 17 18:22:37 2020 New Revision: 360049 URL: https://svnweb.freebsd.org/changeset/base/360049 Log: Unbreak build by reverting if_bridge part of r360047. Pointy hat to: melifaro Modified: head/sys/net/if_bridge.c Modified: head/sys/net/if_bridge.c ===

svn commit: r360047 - head/sys/net

2020-04-17 Thread Alexander V. Chernikov
Author: melifaro Date: Fri Apr 17 17:05:58 2020 New Revision: 360047 URL: https://svnweb.freebsd.org/changeset/base/360047 Log: Finish r191148: replace rtentry with route in if_bridge if_output() callback. Generic if_output() callback signature was modified to use struct route instead of

svn commit: r360017 - head/sys/net

2020-04-16 Thread Alexander V. Chernikov
Author: melifaro Date: Thu Apr 16 17:53:23 2020 New Revision: 360017 URL: https://svnweb.freebsd.org/changeset/base/360017 Log: Fix userland build broken by r360014. Modified: head/sys/net/route.h Modified: head/sys/net/route.h

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

2020-04-16 Thread Alexander V. Chernikov
Author: melifaro Date: Thu Apr 16 17:20:18 2020 New Revision: 360014 URL: https://svnweb.freebsd.org/changeset/base/360014 Log: Add nhop parameter to rti_filter callback. One of the goals of the new routing KPI defined in r359823 is to entirely hide`struct rtentry` from the consumers. It

svn commit: r359966 - head/sys/ofed/drivers/infiniband/core

2020-04-15 Thread Alexander V. Chernikov
Author: melifaro Date: Wed Apr 15 13:06:55 2020 New Revision: 359966 URL: https://svnweb.freebsd.org/changeset/base/359966 Log: Convert OFED rtable interactions to the new routing KPI. Reviewed by: hselasky Differential Revision:https://reviews.freebsd.org/D24387 Modified: hea

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

2020-04-15 Thread Alexander V. Chernikov
Author: melifaro Date: Wed Apr 15 13:00:48 2020 New Revision: 359964 URL: https://svnweb.freebsd.org/changeset/base/359964 Log: Convert pf rtable checks to the new routing KPI. Switch uRPF to use specific fib(9)-provided uRPF. Switch MSS calculation to the latest fib(9) kpi. Reviewed

svn commit: r359963 - head/sys/netinet6

2020-04-15 Thread Alexander V. Chernikov
Author: melifaro Date: Wed Apr 15 12:56:05 2020 New Revision: 359963 URL: https://svnweb.freebsd.org/changeset/base/359963 Log: Convert ip6_forward() to the new routing KPI. Update ip6_forward() internals to use deembedded IPv6 addresses to simplify calls to the new KPI and prepare for t

svn commit: r359942 - in head/sys: netinet netinet6

2020-04-14 Thread Alexander V. Chernikov
Author: melifaro Date: Tue Apr 14 23:06:25 2020 New Revision: 359942 URL: https://svnweb.freebsd.org/changeset/base/359942 Log: Convert IP/IPv6 forwarding, ICMP processing and IP PCB laddr selection to the new routing KPI. Reviewed by: ae Differential Revision:https://reviews.

svn commit: r359940 - in head/sys: net netinet6

2020-04-14 Thread Alexander V. Chernikov
Author: melifaro Date: Tue Apr 14 22:48:33 2020 New Revision: 359940 URL: https://svnweb.freebsd.org/changeset/base/359940 Log: Reorganise nd6 notification code to avoid direct rtentry field access. One of the goals of the new routing KPI defined in r359823 is to entirely hide `struct rt

Re: svn commit: r359823 - in head: etc/mtree include lib/libc/gen sys/conf sys/net sys/net/route sys/netinet sys/netinet6 sys/sys usr.bin/netstat

2020-04-14 Thread Alexander V . Chernikov
14.04.2020, 13:25, "Hans Petter Selasky" : > Hi, Hi Hans, Thank you! Indeed, the check slipped through the cracks while merging the code. Should be fixed by r359917. I'll add the testcases to cover that later today. > > It looks like you need to add some NULL checks: > >>  diff --git a/sys/netinet

svn commit: r359917 - in head/sys: netinet netinet6

2020-04-14 Thread Alexander V. Chernikov
Author: melifaro Date: Tue Apr 14 13:12:22 2020 New Revision: 359917 URL: https://svnweb.freebsd.org/changeset/base/359917 Log: Plug netmask NULL check during route addition causing kernel panic. This bug was introduced by the r359823. Reported by: hselasky Modified: head/sys/netinet

svn commit: r359914 - head/sys/net

2020-04-14 Thread Alexander V. Chernikov
Author: melifaro Date: Tue Apr 14 07:38:34 2020 New Revision: 359914 URL: https://svnweb.freebsd.org/changeset/base/359914 Log: Postpone multipath seed init till SI_SUB_LAST, as it is needed only after some useland program installs multiple paths to the same destination. While here, make

svn commit: r359854 - head/sys/dev/mn

2020-04-13 Thread Alexander V. Chernikov
Author: melifaro Date: Mon Apr 13 09:01:46 2020 New Revision: 359854 URL: https://svnweb.freebsd.org/changeset/base/359854 Log: Remove unused 'struct rtentry' definition. Modified: head/sys/dev/mn/if_mn.c Modified: head/sys/dev/mn/if_mn.c =

svn commit: r359844 - head/sys/netinet6

2020-04-13 Thread Alexander V. Chernikov
Author: melifaro Date: Mon Apr 13 08:26:11 2020 New Revision: 359844 URL: https://svnweb.freebsd.org/changeset/base/359844 Log: Remove tcp_rtlookup6() function signature. The function itself was removed in r122922 16 years ago. Modified: head/sys/netinet6/tcp6_var.h Modified: head/sys/net

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

2020-04-12 Thread Alexander V. Chernikov
Author: melifaro Date: Sun Apr 12 15:16:34 2020 New Revision: 359824 URL: https://svnweb.freebsd.org/changeset/base/359824 Log: Fix string format error missed in r359823. Modified: head/usr.bin/netstat/nhops.c Modified: head/usr.bin/netstat/nhops.c ===

svn commit: r359823 - in head: etc/mtree include lib/libc/gen sys/conf sys/net sys/net/route sys/netinet sys/netinet6 sys/sys usr.bin/netstat

2020-04-12 Thread Alexander V. Chernikov
ty, because file is newly added) +++ head/sys/net/route/nhop.c Sun Apr 12 14:30:00 2020(r359823) @@ -0,0 +1,388 @@ +/*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * + * Copyright (c) 2020 Alexander V. Chernikov + * + * Redistribution and use in source and binary forms, with or wit

Re: svn commit: r359797 - in head/sys: net netinet netinet6

2020-04-11 Thread Alexander V . Chernikov
11.04.2020, 21:58, "Ian Lepore" : > On Sat, 2020-04-11 at 13:02 -0700, Conrad Meyer wrote: >>  Hi Alexander, >> >>  On Sat, Apr 11, 2020 at 12:37 AM Alexander V. Chernikov >>   wrote: >>  > >>  > Author: melifaro >>  > Date: Sat

Re: svn commit: r359797 - in head/sys: net netinet netinet6

2020-04-11 Thread Alexander V . Chernikov
11.04.2020, 22:28, "Conrad Meyer" : > On Sat, Apr 11, 2020 at 1:45 PM Alexander V. Chernikov > wrote: >>  This number only affects selection of the outbound path in presence of >> multiple paths available for the same prefix. It means to mitigate hash >> polar

Re: svn commit: r359797 - in head/sys: net netinet netinet6

2020-04-11 Thread Alexander V . Chernikov
11.04.2020, 21:02, "Conrad Meyer" : > Hi Alexander, Hi Conrad, > > On Sat, Apr 11, 2020 at 12:37 AM Alexander V. Chernikov > wrote: >>  Author: melifaro >>  Date: Sat Apr 11 07:37:08 2020 >>  New Revision: 359797 >>  URL: https://svnweb.freebsd.org/

svn commit: r359804 - head/sys/net

2020-04-11 Thread Alexander V. Chernikov
Author: melifaro Date: Sat Apr 11 09:38:45 2020 New Revision: 359804 URL: https://svnweb.freebsd.org/changeset/base/359804 Log: Fix build by adding forgotten header to radix_mpath.c after r359797. Modified: head/sys/net/radix_mpath.c Modified: head/sys/net/radix_mpath.c =

svn commit: r359800 - head/sys/netinet6

2020-04-11 Thread Alexander V. Chernikov
Author: melifaro Date: Sat Apr 11 07:56:11 2020 New Revision: 359800 URL: https://svnweb.freebsd.org/changeset/base/359800 Log: Remove RADIX_MPATH headers, they were unused since r293159. MFC after:2 weeks Modified: head/sys/netinet6/nd6_nbr.c Modified: head/sys/netinet6/nd6_nbr.c =

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

2020-04-11 Thread Alexander V. Chernikov
Author: melifaro Date: Sat Apr 11 07:37:08 2020 New Revision: 359797 URL: https://svnweb.freebsd.org/changeset/base/359797 Log: Remove per-AF radix_mpath initializtion functions. Split their functionality by moving random seed allocation to SYSINIT and calling (new) generic multipath fun

svn commit: r359775 - head/sys/net

2020-04-10 Thread Alexander V. Chernikov
Author: melifaro Date: Fri Apr 10 16:27:27 2020 New Revision: 359775 URL: https://svnweb.freebsd.org/changeset/base/359775 Log: Split rtrequest1_fib() into smaller manageable chunks. No functional changes. * Move route addition / route deletion code from rtrequest1_fib() to add_rou

svn commit: r359580 - head/sys/netinet

2020-04-02 Thread Alexander V. Chernikov
Author: melifaro Date: Thu Apr 2 20:06:37 2020 New Revision: 359580 URL: https://svnweb.freebsd.org/changeset/base/359580 Log: Use interface fib for proxyarp checks. Before the change, proxyarp checks for src and dst addresses were performed using default fib, breaking multi-fib scenari

svn commit: r359579 - head/tests/sys/net/routing

2020-04-02 Thread Alexander V. Chernikov
Author: melifaro Date: Thu Apr 2 20:02:33 2020 New Revision: 359579 URL: https://svnweb.freebsd.org/changeset/base/359579 Log: Add routing tests verifying basic RTM_CHANGE functionality. MFC after:2 weeks Differential Revision:https://reviews.freebsd.org/D24239 Modified: h

svn commit: r359420 - head/tests/sys/net/routing

2020-03-28 Thread Alexander V. Chernikov
Alexander V. Chernikov +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions +# are met: +# 1. Redistributions of source code must retain the above copyright +#notice, this list of conditions and the following

svn commit: r359244 - in head: libexec/rc libexec/rc/rc.d share/man/man5

2020-03-23 Thread Alexander V. Chernikov
Author: melifaro Date: Mon Mar 23 15:27:10 2020 New Revision: 359244 URL: https://svnweb.freebsd.org/changeset/base/359244 Log: Make ICMP redirect processing depend on routing daemon. Submitted by: lutz at donnerhacke.de Reviewed by: melifaro,rgrimes Differential Revision:http

svn commit: r359235 - in head/tests/sys: common netinet netinet6

2020-03-23 Thread Alexander V. Chernikov
/net_receiver.py Mon Mar 23 12:21:32 2020 (r359235) @@ -0,0 +1,116 @@ +#!/usr/bin/env python +# - +# SPDX-License-Identifier: BSD-2-Clause +# +# Copyright (c) 2020 Alexander V. Chernikov +# +# Redistribution and use in source and binary forms, with or without +# modification, are

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

2020-03-11 Thread Alexander V . Chernikov
11.03.2020, 07:14, "O. Hartmann" : > On Tue, 10 Mar 2020 20:30:21 +0000 (UTC) > "Alexander V. Chernikov" wrote: > >>  Author: melifaro >>  Date: Tue Mar 10 20:30:21 2020 >>  New Revision: 358858 >>  URL: https://svnweb.freebsd.org/changeset/bas

svn commit: r358871 - head/sbin/ipfw

2020-03-11 Thread Alexander V. Chernikov
Author: melifaro Date: Wed Mar 11 08:08:53 2020 New Revision: 358871 URL: https://svnweb.freebsd.org/changeset/base/358871 Log: Revert r358858 as it breaks some ipfw(8) setups. Reported by: O. Hartmann Modified: head/sbin/ipfw/ipfw2.c Modified: head/sbin/ipfw/ipfw2.c =

svn commit: r358858 - head/sbin/ipfw

2020-03-10 Thread Alexander V. Chernikov
Author: melifaro Date: Tue Mar 10 20:30:21 2020 New Revision: 358858 URL: https://svnweb.freebsd.org/changeset/base/358858 Log: Don't assume !IPv6 is IPv4 in ipfw(8) add_src() and add_dst(). Submitted by: Neel Chauhan MFC after:2 weeks Differential Revision:https://reviews.

svn commit: r358853 - in head/tests/sys: common netinet netinet6

2020-03-10 Thread Alexander V. Chernikov
-Clause +# +# Copyright (c) 2020 Alexander V. Chernikov +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions +# are met: +# 1. Redistributions of source code must retain the above copyright +#notice, this list

svn commit: r358585 - in head: sys/net tests/sys/netinet tests/sys/netinet6

2020-03-03 Thread Alexander V. Chernikov
Author: melifaro Date: Tue Mar 3 15:33:43 2020 New Revision: 358585 URL: https://svnweb.freebsd.org/changeset/base/358585 Log: Fix dynamic redrects by adding forgotten RTF_HOST flag. Improve tests to verify the generated route flags. Reported by: jtl MFC after:2 weeks Modified:

Re: svn commit: r358439 - head/sys/amd64/include

2020-03-02 Thread Alexander V . Chernikov
28.02.2020, 18:32, "Ryan Libby" : > Author: rlibby > Date: Fri Feb 28 18:32:36 2020 > New Revision: 358439 > URL: https://svnweb.freebsd.org/changeset/base/358439 > > Log: >   amd64 atomic.h: minor codegen optimization in flag access > >   Previously the pattern to extract status flags from inline

svn commit: r357967 - head/sbin/ping6

2020-02-15 Thread Alexander V. Chernikov
Author: melifaro Date: Sat Feb 15 15:39:53 2020 New Revision: 357967 URL: https://svnweb.freebsd.org/changeset/base/357967 Log: Make ping6(1) return code consistent with the man page. When every sendto() call originated by ping6(1) fails, current code always returns 2 ("transmission was su

svn commit: r357905 - in head/tests/sys: common netinet netinet6

2020-02-14 Thread Alexander V. Chernikov
:00:00 1970 (empty, because file is newly added) +++ head/tests/sys/common/divert.py Fri Feb 14 09:36:35 2020 (r357905) @@ -0,0 +1,83 @@ +#!/usr/bin/env python +# - +# SPDX-License-Identifier: BSD-2-Clause +# +# Copyright (c) 2020 Alexander V. Chernikov +# +# Redistribution and use in

Re: svn commit: r357857 - head/tests/sys

2020-02-13 Thread Alexander V . Chernikov
13.02.2020, 14:09, "Kristof Provost" : > Author: kp > Date: Thu Feb 13 14:09:09 2020 > New Revision: 357857 > URL: https://svnweb.freebsd.org/changeset/base/357857 > > Log: >   tests: Enable net tests > >   We have a number of tests in the net subdirectory that were not executed. > List >   the ne

svn commit: r357843 - head/tests/sys/net/routing

2020-02-12 Thread Alexander V. Chernikov
Author: melifaro Date: Wed Feb 12 21:16:30 2020 New Revision: 357843 URL: https://svnweb.freebsd.org/changeset/base/357843 Log: * Fix flaking lle tests by filtering out non-relevant rtsock messages. * Consistently use RTM_DECLARE_ROOT_TEST() macro. * Temporarily remove iftype validation from

svn commit: r357263 - head/sys/net

2020-01-29 Thread Alexander V. Chernikov
Author: melifaro Date: Wed Jan 29 18:41:35 2020 New Revision: 357263 URL: https://svnweb.freebsd.org/changeset/base/357263 Log: Plug parent iface refcount leak on .X vlan creation. PR: kern/242270 Submitted by: Andrew Boyer MFC after:2 weeks Modified: head/sys/net/if_v

svn commit: r357144 - head/sys/netinet

2020-01-26 Thread Alexander V. Chernikov
Author: melifaro Date: Sun Jan 26 11:54:21 2020 New Revision: 357144 URL: https://svnweb.freebsd.org/changeset/base/357144 Log: Fix NOINET6 build after r357038. Reported by: AN Modified: head/sys/netinet/ip_divert.c Modified: head/sys/netinet/ip_divert.c ==

Re: svn commit: r357113 - head/tests/sys/net/routing

2020-01-26 Thread Alexander V . Chernikov
25.01.2020, 10:51, "Kristof Provost" : > Author: kp > Date: Sat Jan 25 10:51:51 2020 > New Revision: 357113 > URL: https://svnweb.freebsd.org/changeset/base/357113 > > Log: >   tests: Routing tests overwrote net tests > >   The routing subdirectory installed into the same directory as the test > t

svn commit: r357092 - in head: sbin/ipfw sys/netinet/libalias

2020-01-24 Thread Alexander V. Chernikov
Author: melifaro Date: Fri Jan 24 20:35:41 2020 New Revision: 357092 URL: https://svnweb.freebsd.org/changeset/base/357092 Log: Add support for RFC 6598/Carrier Grade NAT subnets. to libalias and ipfw. In libalias, a new flag PKT_ALIAS_UNREGISTERED_RFC6598 is added. This is like PKT_ALIA

svn commit: r357039 - head/sys/netinet

2020-01-23 Thread Alexander V. Chernikov
Author: melifaro Date: Thu Jan 23 09:46:45 2020 New Revision: 357039 URL: https://svnweb.freebsd.org/changeset/base/357039 Log: Bring indentation back to normal after r357038. No functional changes. MFC after:3 weeks Modified: head/sys/netinet/ip_divert.c Modified: head/sys/netine

svn commit: r357038 - head/sys/netinet

2020-01-23 Thread Alexander V. Chernikov
Author: melifaro Date: Thu Jan 23 09:14:28 2020 New Revision: 357038 URL: https://svnweb.freebsd.org/changeset/base/357038 Log: Fix epoch-related panic in ipdivert, ensuring in_broadcast() is called within epoch. Simplify gigantic div_output() by splitting it into 3 functions, handlin

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

2020-01-22 Thread Alexander V . Chernikov
22.01.2020, 21:02, "Alexander Motin" : > On 22.01.2020 15:59, Alexander V. Chernikov wrote: >>  22.01.2020, 20:36, "Alexander Motin" : >>>  Author: mav >>>  Date: Wed Jan 22 20:36:45 2020 >>>  New Revision: 356993 >>>  U

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

2020-01-22 Thread Alexander V . Chernikov
22.01.2020, 20:36, "Alexander Motin" : > Author: mav > Date: Wed Jan 22 20:36:45 2020 > New Revision: 356993 > URL: https://svnweb.freebsd.org/changeset/base/356993 > > Log: >   Update route MTUs for bridge, lagg and vlan interfaces. > >   Those interfaces may implicitly change their MTU on additio

svn commit: r356984 - in head: sys/conf sys/net sys/netinet sys/netinet6 tests/sys/net/routing tests/sys/netinet tests/sys/netinet6

2020-01-22 Thread Alexander V. Chernikov
struct sockaddr *gateway, struct sockaddr *author, struct ifnet *ifp, + int flags, int expire_sec); #endif Added: head/sys/net/route_temporal.c == --- /dev/null 00:00:00 1970 (empty, because file is n

svn commit: r356939 - in head/sys: net netinet6

2020-01-21 Thread Alexander V. Chernikov
Author: melifaro Date: Tue Jan 21 12:00:34 2020 New Revision: 356939 URL: https://svnweb.freebsd.org/changeset/base/356939 Log: Document requirements for the 'struct route' variations. MFC after:2 weeks Modified: head/sys/net/route_var.h head/sys/netinet6/in6_fib.c Modified: head/

svn commit: r356596 - head/tests/sys/net/routing

2020-01-10 Thread Alexander V. Chernikov
Author: melifaro Date: Fri Jan 10 08:54:46 2020 New Revision: 356596 URL: https://svnweb.freebsd.org/changeset/base/356596 Log: Include human-readable list of rtm flags along with bitmask in error messages for rtsock tests. MFC after:2 weeks Modified: head/tests/sys/net/routing/rt

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

2020-01-09 Thread Alexander V. Chernikov
Author: melifaro Date: Thu Jan 9 17:21:00 2020 New Revision: 356559 URL: https://svnweb.freebsd.org/changeset/base/356559 Log: Add fibnum, family and vnet pointer to each rib head. Having metadata such as fibnum or vnet in the struct rib_head is handy as it eases building functionality

svn commit: r356473 - in head: sys/net sys/netinet6 tests/sys/net/routing

2020-01-07 Thread Alexander V. Chernikov
Author: melifaro Date: Tue Jan 7 21:16:30 2020 New Revision: 356473 URL: https://svnweb.freebsd.org/changeset/base/356473 Log: Fix rtsock route message generation for interface addresses. Reviewed by: olivier MFC after:1 month Differential Revision:https://reviews.freebsd.

svn commit: r356268 - head/sys/net

2020-01-02 Thread Alexander V. Chernikov
Author: melifaro Date: Thu Jan 2 09:08:45 2020 New Revision: 356268 URL: https://svnweb.freebsd.org/changeset/base/356268 Log: Plug loopback idaddr refcount leak. Reviewed by: markj MFC after:2 weeks Differential Revision:https://reviews.freebsd.org/D22980 Modified: hea

svn commit: r356237 - head/sys/net

2019-12-31 Thread Alexander V. Chernikov
Author: melifaro Date: Tue Dec 31 17:57:12 2019 New Revision: 356237 URL: https://svnweb.freebsd.org/changeset/base/356237 Log: Fix NOINET6 build broken by r356236. MFC after:2 weeks Modified: head/sys/net/rtsock.c Modified: head/sys/net/rtsock.c

svn commit: r356236 - in head/sys: kern net sys

2019-12-31 Thread Alexander V. Chernikov
Author: melifaro Date: Tue Dec 31 17:26:53 2019 New Revision: 356236 URL: https://svnweb.freebsd.org/changeset/base/356236 Log: Split gigantic rtsock route_output() into smaller functions. Amount of changes to the original code has been intentionally minimised to ease diffing. The chang

svn commit: r356146 - in head/tests/sys/net: . routing

2019-12-28 Thread Alexander V. Chernikov
+ "message len != parsed len: expected %d parsed %d", + rtm->rtm_msglen, (int)parsed_len); +} + +/* + * Raises error if base syntax checks fails. + */ +void +rtsock_validate_message(char *buffer, ssize_t len) +{ + struct rt_msghdr *rtm; + + ATF_REQUIRE_MSG(l

svn commit: r355910 - head/sys/netpfil/ipfw

2019-12-19 Thread Alexander V. Chernikov
Author: melifaro Date: Thu Dec 19 10:22:16 2019 New Revision: 355910 URL: https://svnweb.freebsd.org/changeset/base/355910 Log: ipfw: Don't rollback state in alloc_table_vidx() if atomicity is not required. Submitted by: Neel Chauhan MFC after:2 weeks Differential Revision:

svn commit: r355909 - head/sys/netpfil/ipfw

2019-12-19 Thread Alexander V. Chernikov
Author: melifaro Date: Thu Dec 19 10:20:38 2019 New Revision: 355909 URL: https://svnweb.freebsd.org/changeset/base/355909 Log: Revert r355908 to commit it with a proper message. Modified: head/sys/netpfil/ipfw/ip_fw_table.c head/sys/netpfil/ipfw/ip_fw_table.h head/sys/netpfil/ipfw/ip_fw_

Re: svn commit: r355908 - head/sys/netpfil/ipfw

2019-12-19 Thread Alexander V . Chernikov
19.12.2019, 09:19, "Alexander V. Chernikov" : > Author: melifaro > Date: Thu Dec 19 09:19:27 2019 > New Revision: 355908 > URL: https://svnweb.freebsd.org/changeset/base/355908 > > Log: >   svn-commit.tmp Should have been ipfw: Don't rollback state in al

svn commit: r355908 - head/sys/netpfil/ipfw

2019-12-19 Thread Alexander V. Chernikov
Author: melifaro Date: Thu Dec 19 09:19:27 2019 New Revision: 355908 URL: https://svnweb.freebsd.org/changeset/base/355908 Log: svn-commit.tmp Modified: head/sys/netpfil/ipfw/ip_fw_table.c head/sys/netpfil/ipfw/ip_fw_table.h head/sys/netpfil/ipfw/ip_fw_table_value.c Modified: head/sys/ne

svn commit: r355888 - in head/sys: netinet netinet6

2019-12-18 Thread Alexander V. Chernikov
Author: melifaro Date: Wed Dec 18 22:10:56 2019 New Revision: 355888 URL: https://svnweb.freebsd.org/changeset/base/355888 Log: Remove useless code from in6_rmx.c The code in questions walks IPv6 tree every 60 seconds and looks into the routes with non-zero expiration time (typically, re

svn commit: r348121 - in head/sys: net netinet6

2019-05-22 Thread Alexander V. Chernikov
Author: melifaro Date: Wed May 22 21:20:15 2019 New Revision: 348121 URL: https://svnweb.freebsd.org/changeset/base/348121 Log: Fix gateway setup for the interface routes. Currently rinit1() and its IPv6 counterpart nd6_prefix_onlink_rtrequest() uses dummy null_sdl gateway address d

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

2019-05-20 Thread Alexander V . Chernikov
20.05.2019, 07:50, "Rodney W. Grimes" : >>  Author: melifaro >>  Date: Sun May 19 21:49:56 2019 >>  New Revision: 347982 >>  URL: https://svnweb.freebsd.org/changeset/base/347982 >> >>  Log: >>    Fix rt_ifa selection during loopback route insertion process. >>  Currently such routes are added

svn commit: r347982 - head/sys/net

2019-05-19 Thread Alexander V. Chernikov
Author: melifaro Date: Sun May 19 21:49:56 2019 New Revision: 347982 URL: https://svnweb.freebsd.org/changeset/base/347982 Log: Fix rt_ifa selection during loopback route insertion process. Currently such routes are added with a link-level IFA, which is plain wrong. Only after the insert

Re: svn commit: r332412 - in head: . lib/libifconfig sbin/etherswitchcfg sbin/ifconfig share/man/man4 sys/conf sys/dev/pdq sys/net sys/netinet sys/netinet6 sys/nfs

2018-04-11 Thread Alexander V . Chernikov
11.04.2018, 20:28, "Brooks Davis" : > Author: brooks > Date: Wed Apr 11 17:28:24 2018 > New Revision: 332412 > URL: https://svnweb.freebsd.org/changeset/base/332412 > > Log: >   Remove support for FDDI networks. Awesome! Thank you! > >   Defines in net/if_media.h remain in case code copied from ifc

svn commit: r331844 - head/sbin/route

2018-03-31 Thread Alexander V. Chernikov
Author: melifaro Date: Sat Mar 31 15:06:14 2018 New Revision: 331844 URL: https://svnweb.freebsd.org/changeset/base/331844 Log: Fix memory leaks in route(8). Submitted by: Tom Rix (trix_juniper.net) MFC after:2 weeks Differential Revision:https://reviews.freebsd.org/D9676 M

Re: svn commit: r331098 - in head/sys: net netinet netinet6

2018-03-29 Thread Alexander V . Chernikov
30.03.2018, 02:10, "Bjoern A. Zeeb" : > On 17 Mar 2018, at 17:05, Alexander V. Chernikov wrote: > >>  Author: melifaro >>  Date: Sat Mar 17 17:05:48 2018 >>  New Revision: 331098 >>  URL: https://svnweb.freebsd.org/changeset/base/331098 >> >>  Lo

svn commit: r331275 - head/sys/net

2018-03-20 Thread Alexander V. Chernikov
Author: melifaro Date: Tue Mar 20 22:57:06 2018 New Revision: 331275 URL: https://svnweb.freebsd.org/changeset/base/331275 Log: Use count(9) api for the bpf(4) statistics. Currently each bfp descriptor uses u64 variables to maintain its counters. On interfaces with high packet rate this l

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

2018-03-17 Thread Alexander V. Chernikov
Author: melifaro Date: Sat Mar 17 17:05:48 2018 New Revision: 331098 URL: https://svnweb.freebsd.org/changeset/base/331098 Log: Fix outgoing TCP/UDP packet drop on arp/ndp entry expiration. Current arp/nd code relies on the feedback from the datapath indicating that the entry is still us

Re: svn commit: r301217 - in head/sys: net netinet netinet6

2016-06-05 Thread Alexander V . Chernikov
06.06.2016, 04:40, "George Neville-Neil" : > On 4 Jun 2016, at 15:05, Alexander V. Chernikov wrote: > >>  02.06.2016, 20:51, "George V. Neville-Neil" : >>>  Author: gnn >>>  Date: Thu Jun 2 17:51:29 2016 >>>  New Revision: 301217

svn commit: r301440 - head/sys/netpfil/ipfw

2016-06-05 Thread Alexander V. Chernikov
Author: melifaro Date: Sun Jun 5 10:33:53 2016 New Revision: 301440 URL: https://svnweb.freebsd.org/changeset/base/301440 Log: Fix 4-byte overflow in ipv6_writemask. This bug could cause some IPv6 table prefix delete requests to fail. Obtained from:Yandex LLC Modified: head

Re: svn commit: r301217 - in head/sys: net netinet netinet6

2016-06-04 Thread Alexander V . Chernikov
02.06.2016, 20:51, "George V. Neville-Neil" : > Author: gnn > Date: Thu Jun 2 17:51:29 2016 > New Revision: 301217 > URL: https://svnweb.freebsd.org/changeset/base/301217 > > Log: >   This change re-adds L2 caching for TCP and UDP, as originally added in D4306 >   but removed due to other changes i

svn commit: r294712 - head/sys/netinet

2016-01-25 Thread Alexander V. Chernikov
Author: melifaro Date: Mon Jan 25 10:06:49 2016 New Revision: 294712 URL: https://svnweb.freebsd.org/changeset/base/294712 Log: Convert TCP mtu checks to the new routing KPI. Modified: head/sys/netinet/tcp_subr.c Modified: head/sys/netinet/tcp_subr.c =

svn commit: r294710 - head/sys/net

2016-01-25 Thread Alexander V. Chernikov
Author: melifaro Date: Mon Jan 25 09:31:32 2016 New Revision: 294710 URL: https://svnweb.freebsd.org/changeset/base/294710 Log: Fix flowtable part missed in r294706. Modified: head/sys/net/route.c Modified: head/sys/net/route.c

svn commit: r294706 - in head/sys: kern net netinet netinet6 netpfil/ipfw netpfil/pf nfs

2016-01-24 Thread Alexander V. Chernikov
Author: melifaro Date: Mon Jan 25 06:33:15 2016 New Revision: 294706 URL: https://svnweb.freebsd.org/changeset/base/294706 Log: MFP r287070,r287073: split radix implementation and route table structure. There are number of radix consumers in kernel land (pf,ipfw,nfs,route) with differen

svn commit: r294704 - head/sys/net

2016-01-24 Thread Alexander V. Chernikov
Author: melifaro Date: Mon Jan 25 05:28:19 2016 New Revision: 294704 URL: https://svnweb.freebsd.org/changeset/base/294704 Log: Remove unused radix_mpath definitions. Modified: head/sys/net/radix_mpath.h Modified: head/sys/net/radix_mpath.h ===

svn commit: r294525 - head/sys/netpfil/ipfw

2016-01-21 Thread Alexander V. Chernikov
Author: melifaro Date: Thu Jan 21 18:20:40 2016 New Revision: 294525 URL: https://svnweb.freebsd.org/changeset/base/294525 Log: Fix panic on table/table entry delete. The panic could have happened if more than 64 distinct values had been used. Table value code uses internal objhash API

svn commit: r294411 - head/sys/netinet6

2016-01-20 Thread Alexander V. Chernikov
Author: melifaro Date: Wed Jan 20 11:25:30 2016 New Revision: 294411 URL: https://svnweb.freebsd.org/changeset/base/294411 Log: Fix rte refcount leak in ip6_forward(). Reviewed by: ae MFC after:2 weeks Sponsored by: Yandex LLC Modified: head/sys/netinet6/ip6_forward.c Modified:

svn commit: r294203 - in stable/10/usr.sbin: arp ndp

2016-01-16 Thread Alexander V. Chernikov
Author: melifaro Date: Sun Jan 17 06:02:59 2016 New Revision: 294203 URL: https://svnweb.freebsd.org/changeset/base/294203 Log: MFC r288297 (userland part). If ever MFC is done for the new lltable code, this change will miminise ABI breakage. rtsock requests for deleting interface ad

svn commit: r294202 - in stable/10: sbin/ifconfig sys/net

2016-01-16 Thread Alexander V. Chernikov
Author: melifaro Date: Sun Jan 17 05:38:03 2016 New Revision: 294202 URL: https://svnweb.freebsd.org/changeset/base/294202 Log: MFC r292831: Add SFF-8024 Extended Specification Compliance. Submitted by: markb_mellanox.com Differential Revision:https://reviews.freebsd.org/D

<    1   2   3   4   5   6   7   >