From owner-freebsd-net@freebsd.org Sun Apr 1 08:36:09 2018 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 8B55FF71F5B for ; Sun, 1 Apr 2018 08:36:09 +0000 (UTC) (envelope-from reshadpatuck1@gmail.com) Received: from mail-pl0-x243.google.com (mail-pl0-x243.google.com [IPv6:2607:f8b0:400e:c01::243]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 2F38D7D666 for ; Sun, 1 Apr 2018 08:36:09 +0000 (UTC) (envelope-from reshadpatuck1@gmail.com) Received: by mail-pl0-x243.google.com with SMTP id u11-v6so2466905plq.1 for ; Sun, 01 Apr 2018 01:36:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:user-agent:in-reply-to:references:mime-version :content-transfer-encoding:subject:to:from:message-id; bh=R7a8Lsqk19b2TeEWPfT1DToSFCnsMnOeyENWq3a2MbI=; b=HJMLRJeFALLbXVXyCt0pTy3JGlQTzMO83ha3zMhDKNwk3aeWl/GrrcLwh0kG3PXapj DVyeqvyGXQWfC7Dv53Ka6aGUM9LakxCBwgceVvU+K0q+CNpZNG3a3HtUmQjvA/BhvoUX RFmDRjodBTpiUqqIeXT/49BSeLhHwEx1zNubRPXZhlgNm8R/BwNN1okXpaC+6gWvLk+X RoocQZ3uI+BXrBSJIjs6j3B2gK6NGwgClIriu0IVn33k3MwA8fYI6N/j2E+sPmmyFPNU VAVsZB0lQTS1IImnY31nT23jzhY0RkhlKeXXSlULvqa68Jhsr9fgB/4Zk3BM0hVP9B2C Ut2Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:user-agent:in-reply-to:references :mime-version:content-transfer-encoding:subject:to:from:message-id; bh=R7a8Lsqk19b2TeEWPfT1DToSFCnsMnOeyENWq3a2MbI=; b=IckuBGhQzW6L2IXG09TZTG1vUMiG2VNXMhxUBssFhT0q5IKQzzsbqUb5uEmY62BpsT 1WgqWBS9VOomQk+1xuZkMm7F8V78syd/bPhiCdST7bIIP5M3ZrScEH+P1optaIiKtq6N +BuFWBhOBOWnU9wyYifRRjfHY0FM905iIabRUtFM5htq4C2Er8dH1+J/PNLI3RU8LA2e LUYSDFH67pekhUjcyssiq+knSQpIlvMnmimjJHNetfw87W0eO5fbx2/nCTgaPxrwWha1 S9mM85MJQkJr8k3N06hdJu+RUUZlen2YQr0emvYniw9IkNG3pSqAXJ+DMBQ/jTdb9pc9 DMQg== X-Gm-Message-State: AElRT7HV2Xr4sTKxa0NiXuOX5lL1THDEHf3CsT6NMvp+PHWZmRuOmv3p fwNN11BU5lEgKGwCbZvYpw100mWY X-Google-Smtp-Source: AIpwx49AiH/mgLaK+BxyWZJwsAI3Phs6aGDKRy9c7ESjQ3qoqdjofai1M2yuEcKZIIGxouxZ4OOuSw== X-Received: by 2002:a17:902:7185:: with SMTP id b5-v6mr5577346pll.221.1522571768167; Sun, 01 Apr 2018 01:36:08 -0700 (PDT) Received: from ?IPv6:2402:3a80:615:bd5:8842:4fe3:5758:f6ac? ([2402:3a80:615:bd5:8842:4fe3:5758:f6ac]) by smtp.gmail.com with ESMTPSA id r18sm22885703pgd.46.2018.04.01.01.36.06 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 01 Apr 2018 01:36:07 -0700 (PDT) Date: Sun, 01 Apr 2018 14:06:01 +0530 User-Agent: K-9 Mail for Android In-Reply-To: <5ABF973D.5070009@grosbein.net> References: <5ABF973D.5070009@grosbein.net> MIME-Version: 1.0 Subject: Re: [netgraph] ng_bpf filter large list of IP addresses To: Eugene Grosbein ,freebsd-net@freebsd.org From: Reshad Patuck Message-ID: <36DD471B-D88D-4074-A4D3-A480F5EC2392@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.25 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 01 Apr 2018 08:36:09 -0000 Hi Eugene, =E2=80=8B Thanks for your quick reply=2E =E2=80=8B The issue that I am facing is for a list of 250 IP addresses, I can genera= te a bpf filter that works when I specify it on the command line=2E ``` # ngctl msg em1-bpf: setprogram { thisHook=3D\"in\" ifMatch=3D\"out\" bpf_= prog_len=3D258 bpf_prog=3D[ { code=3D40 jt=3D0 jf=3D0 k=3D12 }=20 ``` =E2=80=8B But when I try to use `-f` or the `read` command, either for a file on dis= k or using echo pipe or a STDIN redirect I get this error: ``` ngctl: send msg: Invalid argument ngctl: line 1: error in file ``` =E2=80=8B This is odd because when I specify arguments via the terminal (under the k= ern=2Eargmax limit) everything works fine=2E =E2=80=8B Here are my sysctls for netgraph and bpf=2E ``` # sysctl net=2Egraph net=2Egraph=2Econtrol=2Eproto: 2 net=2Egraph=2Edata=2Eproto: 1 net=2Egraph=2Efamily: 32 net=2Egraph=2Erecvspace: 9000000 net=2Egraph=2Emaxdgram: 5120000 net=2Egraph=2Emsg_version: 8 net=2Egraph=2Eabi_version: 12 net=2Egraph=2Emaxdata: 4096 net=2Egraph=2Emaxalloc: 4096 net=2Egraph=2Ethreads: 8 # sysctl net=2Ebpf net=2Ebpf=2Emaxbufsize: 524288 net=2Ebpf=2Ebufsize: 4096 net=2Ebpf=2Eoptimize_writers: 0 net=2Ebpf=2Ezerocopy_enable: 0 net=2Ebpf=2Emaxinsns: 512000 ``` =E2=80=8B Best regards, =E2=80=8B Reshad On 31 March 2018 7:42:13 PM IST, Eugene Grosbein wr= ote: >31=2E03=2E2018 20:46, Reshad Patuck wrote: > >[skip] > >> Please let me know what I am doing wrong with the ngctl config file >and if there is another way, >> maybe something more direct to load a binary bpf filter directly into >ng_bpf=2E > >[skip] > >Please read ngctl(8) manual page carefully=2E There are other ways=2E >First, you may move all arguments to ngctl from command line to a file >and run ngctl -f filename=2E >Second, as for many other utilities, you can use dash (-) instead of >filename to make ngctl >read its arguments from standard input, e=2Eg=2E this is the same as "ngc= tl >ls": > ># echo ls | ngctl -f - >There are 9 total nodes: >Name: em0 Type: ether ID: 00000001 Num hooks: 0 > >Then, for shell script, you can use << such as: > >#!/bin/sh > >ngctl -f - << EOF >msg em1-bpf: setprogram $program >EOF > >All these methods impose no limits on size of such control messages=2E > >However, there is loader tunnable net=2Egraph=2Emaxdgram that imposes >another >limit on size of binary representation of control message that ngctl >passes to a kernel >and you may need to increase it at some point=2E I increase it upto 8 >megabytes for my purposes=2E From owner-freebsd-net@freebsd.org Sun Apr 1 13:33:39 2018 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 5DCC6F9B3E4 for ; Sun, 1 Apr 2018 13:33:39 +0000 (UTC) (envelope-from eugen@grosbein.net) Received: from hz.grosbein.net (hz.grosbein.net [78.47.246.247]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "hz.grosbein.net", Issuer "hz.grosbein.net" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id DC0EA6C190 for ; Sun, 1 Apr 2018 13:33:38 +0000 (UTC) (envelope-from eugen@grosbein.net) Received: from eg.sd.rdtc.ru (root@eg.sd.rdtc.ru [62.231.161.221] (may be forged)) by hz.grosbein.net (8.15.2/8.15.2) with ESMTPS id w31DXUNw098043 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sun, 1 Apr 2018 15:33:31 +0200 (CEST) (envelope-from eugen@grosbein.net) X-Envelope-From: eugen@grosbein.net X-Envelope-To: reshadpatuck1@gmail.com Received: from [10.58.0.4] (dadv@[10.58.0.4]) by eg.sd.rdtc.ru (8.15.2/8.15.2) with ESMTPS id w31DXQkM067363 (version=TLSv1.2 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT); Sun, 1 Apr 2018 20:33:26 +0700 (+07) (envelope-from eugen@grosbein.net) Subject: Re: [netgraph] ng_bpf filter large list of IP addresses To: Reshad Patuck , freebsd-net@freebsd.org References: <5ABF973D.5070009@grosbein.net> <36DD471B-D88D-4074-A4D3-A480F5EC2392@gmail.com> From: Eugene Grosbein Message-ID: <5AC0DFA5.3000509@grosbein.net> Date: Sun, 1 Apr 2018 20:33:25 +0700 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.7.2 MIME-Version: 1.0 In-Reply-To: <36DD471B-D88D-4074-A4D3-A480F5EC2392@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=2.2 required=5.0 tests=BAYES_00, LOCAL_FROM, RDNS_NONE autolearn=no autolearn_force=no version=3.4.1 X-Spam-Report: * -2.3 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * 1.9 RDNS_NONE Delivered to internal network by a host with no rDNS * 2.6 LOCAL_FROM From my domains X-Spam-Level: ** X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on hz.grosbein.net X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 01 Apr 2018 13:33:39 -0000 01.04.2018 15:36, Reshad Patuck пишет: > Hi Eugene, > ​ > Thanks for your quick reply. > ​ > The issue that I am facing is for a list of 250 IP addresses, I can generate a bpf filter that works when I specify it on the command line. > ``` > # ngctl msg em1-bpf: setprogram { thisHook=\"in\" ifMatch=\"out\" bpf_prog_len=258 bpf_prog=[ { code=40 jt=0 jf=0 k=12 } > ``` > ​ > But when I try to use `-f` or the `read` command, either for a file on disk or using echo pipe or a STDIN redirect I get this error: > ``` > ngctl: send msg: Invalid argument > ngctl: line 1: error in file > ``` > ​ > This is odd because when I specify arguments via the terminal (under the kern.argmax limit) everything works fine. You have not shown file contents so I can only guess. I guess you misuse escapes \" as they are not needed (must not be used) in file or pipe. From owner-freebsd-net@freebsd.org Sun Apr 1 14:44:39 2018 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id BCCB3F4F8E7 for ; Sun, 1 Apr 2018 14:44:38 +0000 (UTC) (envelope-from hf@spg.tu-darmstadt.de) Received: from lnx141.hrz.tu-darmstadt.de (lnx141.hrz.tu-darmstadt.de [130.83.156.236]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 34EE06F3B0 for ; Sun, 1 Apr 2018 14:44:37 +0000 (UTC) (envelope-from hf@spg.tu-darmstadt.de) Received: from lnx503.hrz.tu-darmstadt.de (lnx503.hrz.tu-darmstadt.de [130.83.156.232]) by lnx141.hrz.tu-darmstadt.de (8.14.4/8.13.8) with ESMTP id w31EhAaq024026 for ; Sun, 1 Apr 2018 16:43:10 +0200 (envelope-from hf@spg.tu-darmstadt.de) Received: from Bounce.nt.e-technik.tu-darmstadt.de (bounce.nt.e-technik.tu-darmstadt.de [130.83.197.1]) by lnx503.hrz.tu-darmstadt.de (8.14.4/8.14.4/HRZ/PMX) with ESMTP id w31EesAo025236 for ; Sun, 1 Apr 2018 16:40:55 +0200 (envelope-from hf@spg.tu-darmstadt.de) Received: from [172.16.8.22] (p4FC6C1A4.dip0.t-ipconnect.de [79.198.193.164]) (authenticated bits=0) by Bounce.nt.e-technik.tu-darmstadt.de (8.15.2/8.15.2) with ESMTPSA id w31EfWps029781 (version=TLSv1 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Sun, 1 Apr 2018 16:41:33 +0200 (CEST) Date: Sun, 1 Apr 2018 16:42:09 +0200 From: Hauke Fath To: freebsd-net@freebsd.org Cc: Hauke Fath Message-ID: <20180401164209528151.6f554119@spg.tu-darmstadt.de> Subject: Bridging a vlan trunk with a gif tunnel? MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Organization: TU Darmstadt X-Mailer: GyazMail version 1.5.19 X-PMX-TU: seen v1.2 by 5.6.1.2065439, Antispam-Engine: 2.7.2.376379, Antispam-Data: 2018.4.1.143017 X-PMX-RELAY: outgoing X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 01 Apr 2018 14:44:39 -0000 Hi, I am trying to network a remote site with a main site through a bridged=20 gif tunnel, and it doesn't work for me. The if_bridge(4) man page=20 sounds deceptively easy. Browsing the web, what came up didn't help;=20 = =20 sounded vaguely related. In the past, I have set up a similar link by tunneling ip over gif, but=20 routing turned out to be intricate, and I figured just bridging the=20 exclave with the main site would save me routing issues, plus I could=20 stick with the existing subnets. The setup: The main site runs a filtering router (freebsd 11, pf) to connect a=20 dozen subnets via vlans over an ix(4) trunk. The router serves dhcp to=20 several of those subnets. The trunk is bridged to the gif tunnel=20 interface: cloned_interfaces=3D"gif0 bridge0" ifconfig_bridge0=3D"addm ix0 addm gif0 up" ifconfig_gif0=3D"tunnel 130.83.aa.bb 130.83.cc.dd mtu 1500 up" ifconfig_ix0=3D"up" The exclave bridge machine connects a trunk with three subnets over a=20 gif(4) tunnel: cloned_interfaces=3D"gif0 bridge0" ifconfig_bridge0=3D"addm em1 addm gif0 up" ifconfig_gif0=3D"tunnel 130.83.cc.dd 130.83.aa.bb mtu 1500 up" ifconfig_em1=3D"up" Bridge sysctls on both machines: # sysctl net.link.bridge net.link.bridge.ipfw: 0 net.link.bridge.allow_llz_overlap: 0 net.link.bridge.inherit_mac: 0 net.link.bridge.log_stp: 0 net.link.bridge.pfil_local_phys: 0 net.link.bridge.pfil_member: 0 net.link.bridge.ipfw_arp: 0 net.link.bridge.pfil_bridge: 0 net.link.bridge.pfil_onlyip: 0 # After finding and setting the above sysctls, the setup connects both=20 segments of each bridged vlan successfully, in that I can ping and=20 ssh-login from a machine on one segment to a machine on the other (or=20 rather, I could, until the latter machine's dhcp lease ran out, and I=20 am off-site). But there is no connection between the exclave segments=20 and the main-site router interfaces, neither for dhcp nor ip=20 connectivity. So while an exclave machine is requesting an ip address through dhcp=20 (which the main router is expected to serve) bridge0: 14:00:52.129710 d8:cb:8a:6e:74:29 (oui Unknown) > Broadcast, ethertype=20 802.1Q (0x8100), length 380: vlan 7, p 0, ethertype IPv4,=20 0.0.0.0.bootpc > 255.255.255.255.bootps: BOOTP/DHCP, Request from=20 d8:cb:8a:6e:74:29 (oui Unknown), length 334 at the same time the main router calls that machine to identify ix0: 14:00:00.866778 a0:36:9f:25:62:d4 (oui Unknown) > Broadcast, ethertype=20 802.1Q (0x8100), length 46: vlan 7, p 0, ethertype ARP, Request who-has=20 Plaike.nt.e-technik.tu-darmstadt.de tell 130.83.228.62, length 28 In short, the main router vlan interfaces do not see traffic coming to=20 their trunk via gif and bridge, nor can they send traffic that way. Is there a magic knob that I have overlooked that will enable this=20 connection, or what else could I be missing? Cheerio, hauke --=20 The ASCII Ribbon Campaign Hauke Fath () No HTML/RTF in email Institut f=FCr Nachrichtentechnik /\ No Word docs in email TU Darmstadt Respect for open standards Ruf +49-6151-16-21344 From owner-freebsd-net@freebsd.org Sun Apr 1 15:16:54 2018 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 7A4C6F53F1D for ; Sun, 1 Apr 2018 15:16:54 +0000 (UTC) (envelope-from hf@spg.tu-darmstadt.de) Received: from lnx503.hrz.tu-darmstadt.de (mail-relay239.hrz.tu-darmstadt.de [130.83.156.239]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 03591708A0 for ; Sun, 1 Apr 2018 15:16:53 +0000 (UTC) (envelope-from hf@spg.tu-darmstadt.de) Received: from Bounce.nt.e-technik.tu-darmstadt.de (bounce.nt.e-technik.tu-darmstadt.de [130.83.197.1]) by lnx503.hrz.tu-darmstadt.de (8.14.4/8.14.4/HRZ/PMX) with ESMTP id w31FG7d2011624 for ; Sun, 1 Apr 2018 17:16:07 +0200 (envelope-from hf@spg.tu-darmstadt.de) Received: from [172.16.8.22] (p4FC6C1A4.dip0.t-ipconnect.de [79.198.193.164]) (authenticated bits=0) by Bounce.nt.e-technik.tu-darmstadt.de (8.15.2/8.15.2) with ESMTPSA id w31FGi5d014397 (version=TLSv1 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Sun, 1 Apr 2018 17:16:45 +0200 (CEST) Date: Sun, 1 Apr 2018 17:17:22 +0200 From: Hauke Fath To: freebsd-net@freebsd.org Cc: Hauke Fath Message-ID: <20180401171722152655.2a3e4e25@spg.tu-darmstadt.de> In-Reply-To: <20180401164209528151.6f554119@spg.tu-darmstadt.de> References: <20180401164209528151.6f554119@spg.tu-darmstadt.de> Subject: Re: Bridging a vlan trunk with a gif tunnel? MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Organization: TU Darmstadt X-Mailer: GyazMail version 1.5.19 X-PMX-TU: seen v1.2 by 5.6.1.2065439, Antispam-Engine: 2.7.2.376379, Antispam-Data: 2018.4.1.150617 X-PMX-RELAY: outgoing X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 01 Apr 2018 15:16:54 -0000 On Sun, 1 Apr 2018 16:42:09 +0200, Hauke Fath wrote: > The main site runs a filtering router (freebsd 11, pf) to connect a=20 > dozen subnets via vlans over an ix(4) trunk. The router serves dhcp to=20 > several of those subnets. The trunk is bridged to the gif tunnel=20 > interface: FTR: %ifconfig bridge0 bridge0: flags=3D8843 metric 0=20 mtu 1500 =09ether 02:eb:25:ed:5e:00 =09nd6 options=3D9 =09groups: bridge=20 =09id 00:00:00:00:00:00 priority 32768 hellotime 2 fwddelay 15 =09maxage 20 holdcnt 6 proto rstp maxaddr 2000 timeout 1200 =09root id 00:00:00:00:00:00 priority 32768 ifcost 0 port 0 =09member: gif0 flags=3D143 =09 ifmaxaddr 0 port 9 priority 128 path cost 55 =09member: ix0 flags=3D143 =09 ifmaxaddr 0 port 1 priority 128 path cost 2000 % --=20 The ASCII Ribbon Campaign Hauke Fath () No HTML/RTF in email Institut f=FCr Nachrichtentechnik /\ No Word docs in email TU Darmstadt Respect for open standards Ruf +49-6151-16-21344 From owner-freebsd-net@freebsd.org Sun Apr 1 15:43:09 2018 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id BD538F591B3 for ; Sun, 1 Apr 2018 15:43:09 +0000 (UTC) (envelope-from hf@spg.tu-darmstadt.de) Received: from lnx503.hrz.tu-darmstadt.de (mail-relay239.hrz.tu-darmstadt.de [130.83.156.239]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 47D9871B3C for ; Sun, 1 Apr 2018 15:43:08 +0000 (UTC) (envelope-from hf@spg.tu-darmstadt.de) Received: from Bounce.nt.e-technik.tu-darmstadt.de (bounce.nt.e-technik.tu-darmstadt.de [130.83.197.1]) by lnx503.hrz.tu-darmstadt.de (8.14.4/8.14.4/HRZ/PMX) with ESMTP id w31FgQGp024535 for ; Sun, 1 Apr 2018 17:42:26 +0200 (envelope-from hf@spg.tu-darmstadt.de) Received: from [172.16.8.22] (p4FC6C1A4.dip0.t-ipconnect.de [79.198.193.164]) (authenticated bits=0) by Bounce.nt.e-technik.tu-darmstadt.de (8.15.2/8.15.2) with ESMTPSA id w31Fh4wP028659 (version=TLSv1 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO) for ; Sun, 1 Apr 2018 17:43:05 +0200 (CEST) Date: Sun, 1 Apr 2018 17:43:41 +0200 From: Hauke Fath To: freebsd-net@freebsd.org Message-ID: <20180401174341597337.16f1b727@spg.tu-darmstadt.de> In-Reply-To: <20180401164209528151.6f554119@spg.tu-darmstadt.de> References: <20180401164209528151.6f554119@spg.tu-darmstadt.de> Subject: Re: Bridging a vlan trunk with a gif tunnel? MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Organization: TU Darmstadt X-Mailer: GyazMail version 1.5.19 X-PMX-TU: seen v1.2 by 5.6.1.2065439, Antispam-Engine: 2.7.2.376379, Antispam-Data: 2018.4.1.153617 X-PMX-RELAY: outgoing X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 01 Apr 2018 15:43:09 -0000 On Sun, 1 Apr 2018 16:42:09 +0200, Hauke Fath wrote: > In short, the main router vlan interfaces do not see traffic coming to=20 > their trunk via gif and bridge, nor can they send traffic that way. In the light of=20 ,= =20 I have re-created one of the vlans in question as a child of the=20 bridge instead of the ix0 - it didn't make a difference. # ifconfig ix0.7 destroy # ifconfig ix0.7 create vlan 7 vlandev bridge0 inet 130.83.228.62/26 # ifconfig ix0.7 ix0.7: flags=3D8843 metric 0 mtu=20 1500 =09options=3D200001 =09ether a0:36:9f:25:62:d4 =09inet 130.83.228.62 netmask 0xffffffc0 broadcast 130.83.228.63=20 =09inet6 fe80::a236:9fff:fe25:62d4%ix0.7 prefixlen 64 scopeid 0xe=20 =09nd6 options=3D21 =09media: Ethernet autoselect (10Gbase-T ) =09status: active =09vlan: 7 vlanpcp: 0 parent interface: ix0 =09groups: vlan=20 # Note the parent interface listed is still ix0. Cheerio, hauke =20 --=20 The ASCII Ribbon Campaign Hauke Fath () No HTML/RTF in email Institut f=FCr Nachrichtentechnik /\ No Word docs in email TU Darmstadt Respect for open standards Ruf +49-6151-16-21344 From owner-freebsd-net@freebsd.org Sun Apr 1 15:59:06 2018 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 48207F63186 for ; Sun, 1 Apr 2018 15:59:06 +0000 (UTC) (envelope-from eugen@grosbein.net) Received: from hz.grosbein.net (hz.grosbein.net [78.47.246.247]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "hz.grosbein.net", Issuer "hz.grosbein.net" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id BFB7572213 for ; Sun, 1 Apr 2018 15:59:05 +0000 (UTC) (envelope-from eugen@grosbein.net) Received: from eg.sd.rdtc.ru (root@eg.sd.rdtc.ru [62.231.161.221] (may be forged)) by hz.grosbein.net (8.15.2/8.15.2) with ESMTPS id w31FwqjU098957 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sun, 1 Apr 2018 17:58:53 +0200 (CEST) (envelope-from eugen@grosbein.net) X-Envelope-From: eugen@grosbein.net X-Envelope-To: hf@spg.tu-darmstadt.de Received: from [10.58.0.4] ([10.58.0.4]) by eg.sd.rdtc.ru (8.15.2/8.15.2) with ESMTPS id w31FwhAm068433 (version=TLSv1.2 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT); Sun, 1 Apr 2018 22:58:43 +0700 (+07) (envelope-from eugen@grosbein.net) Subject: Re: Bridging a vlan trunk with a gif tunnel? To: Hauke Fath , freebsd-net@freebsd.org References: <20180401164209528151.6f554119@spg.tu-darmstadt.de> From: Eugene Grosbein Message-ID: <5AC101AC.60906@grosbein.net> Date: Sun, 1 Apr 2018 22:58:36 +0700 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.7.2 MIME-Version: 1.0 In-Reply-To: <20180401164209528151.6f554119@spg.tu-darmstadt.de> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=2.2 required=5.0 tests=BAYES_00, LOCAL_FROM, RDNS_NONE autolearn=no autolearn_force=no version=3.4.1 X-Spam-Report: * -2.3 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * 1.9 RDNS_NONE Delivered to internal network by a host with no rDNS * 2.6 LOCAL_FROM From my domains X-Spam-Level: ** X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on hz.grosbein.net X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 01 Apr 2018 15:59:06 -0000 01.04.2018 21:42, Hauke Fath wrote: > I am trying to network a remote site with a main site through a bridged > gif tunnel, and it doesn't work for me. gif(4) supports only untagged frames when added to a bridge. You need to create gif-per-vlan or switch to newer vxlan(4). > In the past, I have set up a similar link by tunneling ip over gif, but > routing turned out to be intricate what problems do you have with routing over gif? It works just fine for me. > and I figured just bridging the exclave with the main site would save me routing issues, And bring in bridging issues that are more severe. > plus I could stick with the existing subnets. And have extra overhead to pass +14 bytes of headers of MAC addresses per frame. Single gif+bridge does not support trunks. From owner-freebsd-net@freebsd.org Sun Apr 1 16:19:29 2018 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 9AC23F6A7B5 for ; Sun, 1 Apr 2018 16:19:29 +0000 (UTC) (envelope-from reshadpatuck1@gmail.com) Received: from mail-pg0-x234.google.com (mail-pg0-x234.google.com [IPv6:2607:f8b0:400e:c05::234]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 1810B72C34 for ; Sun, 1 Apr 2018 16:19:29 +0000 (UTC) (envelope-from reshadpatuck1@gmail.com) Received: by mail-pg0-x234.google.com with SMTP id b9so7552157pgf.6 for ; Sun, 01 Apr 2018 09:19:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:user-agent:in-reply-to:references:mime-version :content-transfer-encoding:subject:to:from:message-id; bh=iHu3un5IUydaYYLr8sjUK6xsZ8MiL9l+Mf3yV8+z5Cg=; b=DhSXPf2s1R8SD1H8opDTd+GcU7Jt509Lu67G8nf3uWt5ThdScSYTP5sQvHLE0y3Lio 4Lce4H1e1b5iJw8NzKqmwu+Xa4rKW36eW+ME6up6EEgErGK2eB7qtXk6Ia56IvhkBVqz W+198vo9wX5EZvqpTfE/dqa74R6KafmuJjjKtjGvs5gghchHdPjbiDp2YiXmAGu/WfZM sj7gZ6rM1mcBQ1G5jlsHxNGVZZ68h+7mSljybhbIi4QK8CQ6uMmt7gMrZUWVAMLM4FYR QbnivhPR019n3MPiHhP5wR+nt6+ZTGNKTpm+LaBqHZyr92sw1DVAQ2LcgxdpMIsAsTmA +HDQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:user-agent:in-reply-to:references :mime-version:content-transfer-encoding:subject:to:from:message-id; bh=iHu3un5IUydaYYLr8sjUK6xsZ8MiL9l+Mf3yV8+z5Cg=; b=Tgz3uamezCZPZTb9sz5jPQ20l3R5JZN1NyesLNzkMOSh4kU80OF9ka/eIC4C/ybHBD cfOcHgmWl7GSQDYw7JGnSJccDW2M4IWPhNVDB0XqoUtkvUD+oha+CegcRSujUmmd1lW0 JzbgtgqTTIoWw8MbD5L3ODtO22w1aXGOKNP+xKadRe5u9jQc3808XblpOQsrJGXYHztY BjVKqBwEKZUr2P9RyyEpmC/ehE9uQvUmioYzZlwnkuT9uelnyTlp3CGBKF9N0u54COav t/4qwf5vO/vYqUjcdMOuCyvDmT8kk1c/DtgcHddM8meq+FaINJ+uYpobb+R+BiYqPe4x dezA== X-Gm-Message-State: AElRT7G+7uPyzM5lRyYOcQ5jQScHTjvkBTqxEO8r9elAjPfkAz4PTO4G AwZB0VijakFotNXU4ZV98rslNmeB X-Google-Smtp-Source: AIpwx4/24t4ksaaw6HMMCT60+G6GkX+t9F0z2h7BZFxD1rmntBh65DX79My9Eagb82AgqJO4LIsj6g== X-Received: by 10.101.67.68 with SMTP id k4mr4175240pgq.197.1522599568074; Sun, 01 Apr 2018 09:19:28 -0700 (PDT) Received: from [192.168.1.103] ([60.243.103.35]) by smtp.gmail.com with ESMTPSA id y7sm2198818pfi.185.2018.04.01.09.19.26 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 01 Apr 2018 09:19:27 -0700 (PDT) Date: Sun, 01 Apr 2018 21:49:23 +0530 User-Agent: K-9 Mail for Android In-Reply-To: <5AC0DFA5.3000509@grosbein.net> References: <5ABF973D.5070009@grosbein.net> <36DD471B-D88D-4074-A4D3-A480F5EC2392@gmail.com> <5AC0DFA5.3000509@grosbein.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [netgraph] ng_bpf filter large list of IP addresses To: Eugene Grosbein ,freebsd-net@freebsd.org From: Reshad Patuck Message-ID: <984CD50A-A1B9-4185-8AFA-E910CB1A7DA3@gmail.com> X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 01 Apr 2018 16:19:29 -0000 Hi Eugene, =E2=80=8B Yes I do remove the \" and replace it with just " in the file I use with t= he `ngctl -f` command=2E =E2=80=8B Here is the link to the file and everything that I am using to setup the B= PF program=2E =E2=80=8B https://paste=2Eee/p/BHOoG =E2=80=8B It contains the following: - ngtl-command -> the ngctl command which runs correctly from a command li= ne - ngctl-config -> the ngctl config file with the same filter - bpf=2Ec -> a c file that takes netgraph node details a pcap-filter and c= onverts it to a ngctl command - ngctl -> debug 5 in a ngctl shell for running the config file =E2=80=8B Thanks and best regards, =E2=80=8B Reshad On 1 April 2018 7:03:25 PM IST, Eugene Grosbein wro= te: > >You have not shown file contents so I can only guess=2E I guess you >misuse escapes \" >as they are not needed (must not be used) in file or pipe=2E From owner-freebsd-net@freebsd.org Sun Apr 1 17:21:06 2018 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id DABD4F6F184 for ; Sun, 1 Apr 2018 17:21:06 +0000 (UTC) (envelope-from eugen@grosbein.net) Received: from hz.grosbein.net (hz.grosbein.net [78.47.246.247]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "hz.grosbein.net", Issuer "hz.grosbein.net" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 5AD9275A66 for ; Sun, 1 Apr 2018 17:21:05 +0000 (UTC) (envelope-from eugen@grosbein.net) Received: from eg.sd.rdtc.ru (root@eg.sd.rdtc.ru [62.231.161.221] (may be forged)) by hz.grosbein.net (8.15.2/8.15.2) with ESMTPS id w31HKxmk099496 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sun, 1 Apr 2018 19:21:00 +0200 (CEST) (envelope-from eugen@grosbein.net) X-Envelope-From: eugen@grosbein.net X-Envelope-To: reshadpatuck1@gmail.com Received: from [10.58.0.4] ([10.58.0.4]) by eg.sd.rdtc.ru (8.15.2/8.15.2) with ESMTPS id w31HKmKB069081 (version=TLSv1.2 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT); Mon, 2 Apr 2018 00:20:49 +0700 (+07) (envelope-from eugen@grosbein.net) Subject: Re: [netgraph] ng_bpf filter large list of IP addresses To: Reshad Patuck , freebsd-net@freebsd.org References: <5ABF973D.5070009@grosbein.net> <36DD471B-D88D-4074-A4D3-A480F5EC2392@gmail.com> <5AC0DFA5.3000509@grosbein.net> <984CD50A-A1B9-4185-8AFA-E910CB1A7DA3@gmail.com> From: Eugene Grosbein Message-ID: <5AC114EA.2060809@grosbein.net> Date: Mon, 2 Apr 2018 00:20:42 +0700 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.7.2 MIME-Version: 1.0 In-Reply-To: <984CD50A-A1B9-4185-8AFA-E910CB1A7DA3@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=2.2 required=5.0 tests=BAYES_00, LOCAL_FROM, RDNS_NONE autolearn=no autolearn_force=no version=3.4.1 X-Spam-Report: * -2.3 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * 1.9 RDNS_NONE Delivered to internal network by a host with no rDNS * 2.6 LOCAL_FROM From my domains X-Spam-Level: ** X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on hz.grosbein.net X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 01 Apr 2018 17:21:07 -0000 01.04.2018 23:19, Reshad Patuck wrote: > Yes I do remove the \" and replace it with just " in the file I use with the `ngctl -f` command. > ​ > Here is the link to the file and everything that I am using to setup the BPF program. > ​ > https://paste.ee/p/BHOoG > ​ > It contains the following: > - ngtl-command -> the ngctl command which runs correctly from a command line > - ngctl-config -> the ngctl config file with the same filter > - bpf.c -> a c file that takes netgraph node details a pcap-filter and converts it to a ngctl command > - ngctl -> debug 5 in a ngctl shell for running the config file Note that https://paste.ee/p/BHOoG#s=0&l=31 has garbage at the end of 31'st line. I've just looked at ngctl's code and see I was wrong, it has some limitations: total line length must be less than LINE_MAX (2048) and number of whitespace-separated arguments in this line must be no more than 512. From owner-freebsd-net@freebsd.org Sun Apr 1 17:38:02 2018 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 5458AF7015A for ; Sun, 1 Apr 2018 17:38:02 +0000 (UTC) (envelope-from eugen@grosbein.net) Received: from hz.grosbein.net (hz.grosbein.net [78.47.246.247]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "hz.grosbein.net", Issuer "hz.grosbein.net" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id CFC0B764BC for ; Sun, 1 Apr 2018 17:38:01 +0000 (UTC) (envelope-from eugen@grosbein.net) Received: from eg.sd.rdtc.ru (root@eg.sd.rdtc.ru [62.231.161.221] (may be forged)) by hz.grosbein.net (8.15.2/8.15.2) with ESMTPS id w31Hbsan099639 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sun, 1 Apr 2018 19:37:55 +0200 (CEST) (envelope-from eugen@grosbein.net) X-Envelope-From: eugen@grosbein.net X-Envelope-To: reshadpatuck1@gmail.com Received: from [10.58.0.4] ([10.58.0.4]) by eg.sd.rdtc.ru (8.15.2/8.15.2) with ESMTPS id w31Hbpuu069324 (version=TLSv1.2 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT); Mon, 2 Apr 2018 00:37:51 +0700 (+07) (envelope-from eugen@grosbein.net) Subject: Re: [netgraph] ng_bpf filter large list of IP addresses To: Reshad Patuck , freebsd-net@freebsd.org References: From: Eugene Grosbein Message-ID: <5AC118E8.1020800@grosbein.net> Date: Mon, 2 Apr 2018 00:37:44 +0700 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.7.2 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=2.2 required=5.0 tests=BAYES_00, LOCAL_FROM, RDNS_NONE autolearn=no autolearn_force=no version=3.4.1 X-Spam-Report: * -2.3 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * 1.9 RDNS_NONE Delivered to internal network by a host with no rDNS * 2.6 LOCAL_FROM From my domains X-Spam-Level: ** X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on hz.grosbein.net X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 01 Apr 2018 17:38:02 -0000 31.03.2018 20:46, Reshad Patuck wrote: ​ > Please let me know what I am doing wrong with the ngctl config file and > if there is another way, maybe something more direct to load a binary bpf filter directly into ng_bpf. There is also netgraph(3) - Netgraph User Library. You can use it within your C code to send binary or text (ASCII) control messages directly to ng_bpf without limitations of ngctl's own parser. You can get an example of NgSendAsciiMsg() usage in ngctl's sources: https://svnweb.freebsd.org/base/head/usr.sbin/ngctl/msg.c?view=markup From owner-freebsd-net@freebsd.org Sun Apr 1 17:58:23 2018 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 89063F715E5 for ; Sun, 1 Apr 2018 17:58:23 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 1AF2C76F58 for ; Sun, 1 Apr 2018 17:58:23 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id 596E12B2B5 for ; Sun, 1 Apr 2018 17:58:22 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id w31HwM1w083473 for ; Sun, 1 Apr 2018 17:58:22 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id w31HwMPn083472 for freebsd-net@FreeBSD.org; Sun, 1 Apr 2018 17:58:22 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: freebsd-net@FreeBSD.org Subject: [Bug 195197] [netinet6] ipv6 prefix not renewed when managed by userspace daemon with pltime and vltime Date: Sun, 01 Apr 2018 17:58:22 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: patch X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: guyyur@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-net@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 01 Apr 2018 17:58:23 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D195197 --- Comment #7 from guyyur@gmail.com --- It fixes the example but there is another scenario that still panics. # set static ula so can access host even if router is down ifconfig vtnet0 inet6 fdXX:: eui64 # enable accept_rtadv to learn global address via ra # rtadvd set to publish fdXX:: so learns ula prefix via ra too ifconfig vtnet0 inet6 accept_rtadv # request ra to learn the prefixes from the router rtsol vtnet0 # flush ndp -P In this scenario, when learning fdXX:: prefix via ra it will set ndpr_advrt= rs but the prefix is associated with an address without IN6_IFF_AUTOCONF so the address won't be purged. --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-net@freebsd.org Sun Apr 1 21:01:08 2018 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A2582F7B451 for ; Sun, 1 Apr 2018 21:01:08 +0000 (UTC) (envelope-from bugzilla-noreply@FreeBSD.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 3CFFD7D249 for ; Sun, 1 Apr 2018 21:01:08 +0000 (UTC) (envelope-from bugzilla-noreply@FreeBSD.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id 638DB2CD19 for ; Sun, 1 Apr 2018 21:01:07 +0000 (UTC) (envelope-from bugzilla-noreply@FreeBSD.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id w31L17k6044975 for ; Sun, 1 Apr 2018 21:01:07 GMT (envelope-from bugzilla-noreply@FreeBSD.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id w31L17CS044966 for freebsd-net@FreeBSD.org; Sun, 1 Apr 2018 21:01:07 GMT (envelope-from bugzilla-noreply@FreeBSD.org) Message-Id: <201804012101.w31L17CS044966@kenobi.freebsd.org> X-Authentication-Warning: kenobi.freebsd.org: bugzilla set sender to bugzilla-noreply@FreeBSD.org using -f From: bugzilla-noreply@FreeBSD.org To: freebsd-net@FreeBSD.org Subject: Problem reports for freebsd-net@FreeBSD.org that need special attention Date: Sun, 1 Apr 2018 21:01:07 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.25 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 01 Apr 2018 21:01:08 -0000 To view an individual PR, use: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=(Bug Id). The following is a listing of current problems submitted by FreeBSD users, which need special attention. These represent problem reports covering all versions including experimental development code and obsolete releases. Status | Bug Id | Description ------------+-----------+--------------------------------------------------- In Progress | 165622 | [ndis][panic][patch] Unregistered use of FPU in k In Progress | 206581 | bxe_ioctl_nvram handler is faulty In Progress | 221146 | [ixgbe] Problem with second laggport New | 204438 | setsockopt() handling of kern.ipc.maxsockbuf limi New | 205592 | TCP processing in IPSec causes kernel panic New | 206053 | kqueue support code of netmap causes panic New | 209682 | [panic] [netinet] arptimer race New | 213410 | [carp] service netif restart causes hang only whe New | 217748 | sys/dev/ixgbe/if_ix.c: PVS-Studio: Assignment to Open | 193452 | Dell PowerEdge 210 II -- Kernel panic bce (broadc Open | 194485 | Userland cannot add IPv6 prefix routes Open | 194515 | Fatal Trap 12 Kernel with vimage Open | 202510 | [CARP] advertisements sourced from CARP IP cause Open | 206544 | sendmsg(2) (sendto(2) too?) can fail with EINVAL; Open | 211962 | bxe driver queue soft hangs and flooding tx_soft_ Open | 213814 | AWS/EC2: no egress traffic stats on ixv(4) Open | 222273 | igb(4): Kernel panic (fatal trap 12) due to netwo 17 problems total for which you should take action. From owner-freebsd-net@freebsd.org Sun Apr 1 21:09:57 2018 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id BC565F7C12E for ; Sun, 1 Apr 2018 21:09:57 +0000 (UTC) (envelope-from hf@spg.tu-darmstadt.de) Received: from lnx503.hrz.tu-darmstadt.de (mail-relay239.hrz.tu-darmstadt.de [130.83.156.239]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 49F7E7DD54 for ; Sun, 1 Apr 2018 21:09:56 +0000 (UTC) (envelope-from hf@spg.tu-darmstadt.de) Received: from Bounce.nt.e-technik.tu-darmstadt.de (bounce.nt.e-technik.tu-darmstadt.de [130.83.197.1]) by lnx503.hrz.tu-darmstadt.de (8.14.4/8.14.4/HRZ/PMX) with ESMTP id w31L97m1021572; Sun, 1 Apr 2018 23:09:08 +0200 (envelope-from hf@spg.tu-darmstadt.de) Received: from [172.16.8.22] (p4FC6C1A4.dip0.t-ipconnect.de [79.198.193.164]) (authenticated bits=0) by Bounce.nt.e-technik.tu-darmstadt.de (8.15.2/8.15.2) with ESMTPSA id w31L9h34008942 (version=TLSv1 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Sun, 1 Apr 2018 23:09:46 +0200 (CEST) Date: Sun, 1 Apr 2018 23:10:22 +0200 From: Hauke Fath To: Eugene Grosbein Cc: freebsd-net@freebsd.org Message-ID: <20180401231022184335.e841ceaf@spg.tu-darmstadt.de> In-Reply-To: <5AC101AC.60906@grosbein.net> References: <20180401164209528151.6f554119@spg.tu-darmstadt.de> <5AC101AC.60906@grosbein.net> Subject: Re: Bridging a vlan trunk with a gif tunnel? MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Organization: TU Darmstadt X-Mailer: GyazMail version 1.5.19 X-PMX-TU: seen v1.2 by 5.6.1.2065439, Antispam-Engine: 2.7.2.376379, Antispam-Data: 2018.4.1.210017 X-PMX-RELAY: outgoing X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 01 Apr 2018 21:09:57 -0000 On Sun, 1 Apr 2018 22:58:36 +0700, Eugene Grosbein wrote: > 01.04.2018 21:42, Hauke Fath wrote: >=20 >> I am trying to network a remote site with a main site through a bridged= =20 >> gif tunnel, and it doesn't work for me.=20 >=20 > gif(4) supports only untagged frames when added to a bridge. Well, as I said, bridging the trunk from the gif tunnel to the hardware=20 ix interface works, in that the attached switch sorts it out and=20 machines on both sides connect. It's the router's vlan interfaces that=20 do not communicate with the bridge. =20 > You need to create gif-per-vlan=20 ... three vlans, one ip. > or switch to newer vxlan(4). That wouldn't work with the switches, would it, like vlans? =20 >> In the past, I have set up a similar link by tunneling ip over gif, but= =20 >> routing turned out to be intricate >=20 > what problems do you have with routing over gif? It works just fine for m= e. Routing requires new subnets, with acl changes rippling through the=20 whole installation. Since the university is essentially out of public=20 ipv4 space, we would have to NAT those subnets. Plus, with the past=20 setup, we got asymmetric routing, with some machines not reachable from=20 the other side - I successfully forgot the gory details, it's been a=20 while. >> and I figured just bridging the exclave with the main site would=20 >> save me routing issues, >=20 > And bring in bridging issues that are more severe. Like what, besides the shortcomings of if_bridge(4)? >> plus I could stick with the existing subnets. >=20 > And have extra overhead to pass +14 bytes of headers of MAC addresses=20 > per frame. >=20 > Single gif+bridge does not support trunks. I'll take that, and look into a routing setup. Thanks for your answers,=20 even if I don't like them. ;) Cheerio, hauke --=20 The ASCII Ribbon Campaign Hauke Fath () No HTML/RTF in email Institut f=FCr Nachrichtentechnik /\ No Word docs in email TU Darmstadt Respect for open standards Ruf +49-6151-16-21344 From owner-freebsd-net@freebsd.org Mon Apr 2 03:06:35 2018 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A1971F6CE02 for ; Mon, 2 Apr 2018 03:06:34 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-wr0-x229.google.com (mail-wr0-x229.google.com [IPv6:2a00:1450:400c:c0c::229]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 09A376A1E2 for ; Mon, 2 Apr 2018 03:06:34 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: by mail-wr0-x229.google.com with SMTP id l49so12260051wrl.4 for ; Sun, 01 Apr 2018 20:06:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=CZ3eqzL7nlZuff1JKMtGRZH4ing3W2/XLweP1VlfPR4=; b=eeBmd9EQLP0TzD31uHIwmgFDK7is3jbL/x8HFnChh6e/0J3w0m6rVUikvY5xYyMcc6 ln6TncoDcIl/1NGY17eNCDJRWCLnAwTlvfmHxKKnKC3BEHqb/pRYplm7HgUlxOvabW0P vxWJ17t4QnQjWRPxnWMoe4TOeH+m/CIuL1M4vfpi1duCZlln3aAecxw/kc5+lsX9jSeM wSRCNvk9eOn2savHCZPMtZZShaj24/4080kaRIaQOowes1x+BuWmx1e/uW8q1qbXDbnS ILLl3fgWfV9HKNvESHsD+vN+ZOXprUOm/0IuB5A3PmajwMFz/Y8erB2IOS/HFdEX5KPQ OI1w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=CZ3eqzL7nlZuff1JKMtGRZH4ing3W2/XLweP1VlfPR4=; b=RUchtrPLuoVCxVDMNQLCfkHtoLE1JQp5NfgNIHYbnz8wbb2m5+KWqjTtTA00XUW7Va sKrHlAYoneYO7CwkBjbGFKTonGcHt8a+0YDH9bPnN+SVyx4ypAAH3FzxGZOGvMTOXVFO kpfSGZ1WqGuoKCj6tqkEoYzTeYYLucRd3LTi1qy2d9dwje7Wzk6R7DRVbyhohIsM8M+9 bNdFm1WR/sBf8Wp5VhbhnNE52mL2qNe8U6rntJa4oXsRUPqTznVlkW84Mv+UrPzY0Afj Ea8t3CqdoDFl9AwIJsif5L1EhSzWsYeaRNSrFdb4hDiJH2w/DLZ9sG1KevCeH60mKGWA Tcog== X-Gm-Message-State: AElRT7F2U8V82d88SM6y9kXXI4edWqTnGy7gYoM6VcIk3Sz0JYUwAw5T kBTxpnpuWu3t/pnXwnaSQEHKMe0kAu4tanG8LnnUIQ== X-Google-Smtp-Source: AIpwx4+ZVEfL1vx2GT484pN32lJ4BhSrysXt62JJnYTELH4fq3eysVN2QstvtRwMKbWGcjTvLaJ44dsW4zQR/TDsMus= X-Received: by 10.223.138.214 with SMTP id z22mr5205705wrz.39.1522638392610; Sun, 01 Apr 2018 20:06:32 -0700 (PDT) MIME-Version: 1.0 Sender: adrian.chadd@gmail.com Received: by 10.28.14.202 with HTTP; Sun, 1 Apr 2018 20:06:31 -0700 (PDT) In-Reply-To: <07ad72f5-bac7-841a-3c32-eed58179fc11@yandex.ru> References: <70a569db-fa82-f2f6-61ea-a0d1a3dd9dae@yandex.ru> <20180322130002.GA65574@ci0.org> <20180322161543.GA66967@ci0.org> <20180323130204.GA74266@ci0.org> <07ad72f5-bac7-841a-3c32-eed58179fc11@yandex.ru> From: Adrian Chadd Date: Sun, 1 Apr 2018 20:06:31 -0700 X-Google-Sender-Auth: rnI-z2dUYTgYjroAnR2xGZtOhXE Message-ID: Subject: Re: crash with ipfw nat on mips32 To: "Andrey V. Elsukov" Cc: Olivier Houchard , FreeBSD Net Content-Type: text/plain; charset="UTF-8" X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 Apr 2018 03:06:35 -0000 hi, We figured it out today - gcc + no-arch-specific builtin bug. :-) cognet and I are sorting through that stuff at the moment and should land a fix in -HEAD soon. Thanks! -adrian On 28 March 2018 at 02:20, Andrey V. Elsukov wrote: > On 23.03.2018 20:07, Adrian Chadd wrote: >> Hi! >> >> Just to keep things up to date; I had a chat with people on IRC. >> >> * I got the regression suite in github compiling and running on amd64. >> I'm going to attempt to commit some makefile hilarity to get it to >> cross-compile against the copy in sys/contrib/ck >> * I'll go get more info when I next power up the AP in question >> > > Hi Adrian, > > any news about this? > I found PR https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=225816 > it is also related to the problem. > > -- > WBR, Andrey V. Elsukov > From owner-freebsd-net@freebsd.org Mon Apr 2 05:52:11 2018 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 9FEBAF746B2 for ; Mon, 2 Apr 2018 05:52:11 +0000 (UTC) (envelope-from eugen@grosbein.net) Received: from hz.grosbein.net (hz.grosbein.net [78.47.246.247]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "hz.grosbein.net", Issuer "hz.grosbein.net" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 298266F011 for ; Mon, 2 Apr 2018 05:52:10 +0000 (UTC) (envelope-from eugen@grosbein.net) Received: from eg.sd.rdtc.ru (root@eg.sd.rdtc.ru [62.231.161.221] (may be forged)) by hz.grosbein.net (8.15.2/8.15.2) with ESMTPS id w325q3mS004679 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 2 Apr 2018 07:52:03 +0200 (CEST) (envelope-from eugen@grosbein.net) X-Envelope-From: eugen@grosbein.net X-Envelope-To: hf@spg.tu-darmstadt.de Received: from [10.58.0.4] ([10.58.0.4]) by eg.sd.rdtc.ru (8.15.2/8.15.2) with ESMTPS id w325pst2073864 (version=TLSv1.2 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT); Mon, 2 Apr 2018 12:51:54 +0700 (+07) (envelope-from eugen@grosbein.net) Subject: Re: Bridging a vlan trunk with a gif tunnel? To: Hauke Fath References: <20180401164209528151.6f554119@spg.tu-darmstadt.de> <5AC101AC.60906@grosbein.net> <20180401231022184335.e841ceaf@spg.tu-darmstadt.de> Cc: freebsd-net@freebsd.org From: Eugene Grosbein Message-ID: <5AC1C4F4.90301@grosbein.net> Date: Mon, 2 Apr 2018 12:51:48 +0700 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.7.2 MIME-Version: 1.0 In-Reply-To: <20180401231022184335.e841ceaf@spg.tu-darmstadt.de> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=2.2 required=5.0 tests=BAYES_00, LOCAL_FROM, RDNS_NONE autolearn=no autolearn_force=no version=3.4.1 X-Spam-Report: * -2.3 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * 1.9 RDNS_NONE Delivered to internal network by a host with no rDNS * 2.6 LOCAL_FROM From my domains X-Spam-Level: ** X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on hz.grosbein.net X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 Apr 2018 05:52:11 -0000 02.04.2018 4:10, Hauke Fath wrote: >> or switch to newer vxlan(4). > > That wouldn't work with the switches, would it, like vlans? vxlan is not instead of vlans, it is instead of gifs vxlan is designed to pass trunks over routed network forming its own tunnel. Just read its manual page. >>> and I figured just bridging the exclave with the main site would >>> save me routing issues, >> >> And bring in bridging issues that are more severe. > Like what, besides the shortcomings of if_bridge(4)? Loops, broadcast storms spreading too far over long and slower links, applications and kernels not adopting automatically for "not LAN" conditions like they do in case of separate IP networks, extra overhead and timing issues, poor manageability of if_bridge (unable to show/manage its forwarding tables as opposed to newer vxlan) comparing to rich set of methods developed for routing tables etc. From owner-freebsd-net@freebsd.org Mon Apr 2 15:08:42 2018 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 50E11F70779 for ; Mon, 2 Apr 2018 15:08:42 +0000 (UTC) (envelope-from 0100016286e72f72-f78fb562-5726-47ef-869b-5747e322c8af-000000@amazonses.com) Received: from a32-132.smtp-out.amazonses.com (a32-132.smtp-out.amazonses.com [54.240.32.132]) (using TLSv1 with cipher ECDHE-RSA-AES128-SHA (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id EB6428270C for ; Mon, 2 Apr 2018 15:08:41 +0000 (UTC) (envelope-from 0100016286e72f72-f78fb562-5726-47ef-869b-5747e322c8af-000000@amazonses.com) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple; s=lix2ahltymepsyqw4em6ugr4pjkis3dq; d=neboshpractice.com; t=1522681721; h=Date:To:From:Reply-To:Subject:Message-ID:List-Unsubscribe:MIME-Version:Content-Type:Content-Transfer-Encoding; bh=Bfj+aqGgG1q8ULF1EaB+7UIUAxRmqokPGPqbxRGoXYE=; b=kYND9MRh2vYxpHCn4H57awoaxX56yOw6dthTYTXdW+iMh8HcqeAWnYDZgJmEqm9n uVJhY+v0WSqpWI5eKpRA73GwGuiIEwMJVL/KiyYaQzvyiTgK76K9R4zZ902lep4xWNi VZLj8MDvZRcKlxMBf8OOPuqrHioSfYBnGTYU67l4= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple; s=ug7nbtf4gccmlpwj322ax3p6ow6yfsug; d=amazonses.com; t=1522681721; h=Date:To:From:Reply-To:Subject:Message-ID:List-Unsubscribe:MIME-Version:Content-Type:Content-Transfer-Encoding:Feedback-ID; bh=Bfj+aqGgG1q8ULF1EaB+7UIUAxRmqokPGPqbxRGoXYE=; b=Iq52Da8vrATpJTt98xKP18TOYWYqwPT78B7MxA+L3E9sV1fvqXKETsBD4fzF/dYP Xyv8mhpczOoRB+aD4LF83bo5ue+7SV4uQ/n1amxO203/taLIE5XspIfo3bTj97sz8bc FvTZbCzCBVeZ6W5CYvDi7/hdqXDvRLuti8dTEZP4= Date: Mon, 2 Apr 2018 15:08:40 +0000 To: freebsd-net@freebsd.org From: OSHA Training Reply-To: OSHA Training Subject: OSHA Training Sign up - April 2018 Message-ID: <0100016286e72f72-f78fb562-5726-47ef-869b-5747e322c8af-000000@email.amazonses.com> X-Mailer: Sendy (https://sendy.co) MIME-Version: 1.0 X-SES-Outgoing: 2018.04.02-54.240.32.132 Feedback-ID: 1.us-east-1.lWFJiZtTS7uitxnKgsbDzrrd0C/obg3TXAAfSeCv3n0=:AmazonSES Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Content-Filtered-By: Mailman/MimeDel 2.1.25 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 Apr 2018 15:08:42 -0000 Complete your OSHA qualification & receive your OSHA DOL wallet card. Visit Website OSHA Outreach FAQ's Contact us OSHA Training SAVE 20% With Promo Code RES20 OSHA 10 hour Construction Our course is designed to teach an entry level construction worker about workplace...read more Enroll Now OSHA 30 hour Construction Comprehensive safety program designed for anyone involved in the construction....read more Enroll Now OSHA 10 hour General Industry Course is intended to provide an entry level general industry worker's broad...read more Enroll Now OSHA 30 hour General Industry Comprehensive safety program designed for anyone involved in general industry....read more Enroll Now This email was sent to freebsd-net@freebsd.org You received this email from REX Training Unsubscribe here Discuss the Offer with our Experts Call Us: 1-866-959-6230 REX Training Website: REX Training © REX Training is a registered trademark. From owner-freebsd-net@freebsd.org Mon Apr 2 18:32:10 2018 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id DC26DF7D2BA for ; Mon, 2 Apr 2018 18:32:10 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 72F796B548 for ; Mon, 2 Apr 2018 18:32:10 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id C3EF910301 for ; Mon, 2 Apr 2018 18:32:09 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id w32IW9xb061885 for ; Mon, 2 Apr 2018 18:32:09 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id w32IW97C061884 for freebsd-net@FreeBSD.org; Mon, 2 Apr 2018 18:32:09 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: freebsd-net@FreeBSD.org Subject: [Bug 221317] Netmap issue after ixgbe driver update in r320897 Date: Mon, 02 Apr 2018 18:32:06 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 11.1-STABLE X-Bugzilla-Keywords: IntelNetworking, regression X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: peixoto.cassiano@gmail.com X-Bugzilla-Status: In Progress X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: erj@freebsd.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 Apr 2018 18:32:11 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D221317 --- Comment #18 from Cassiano Peixoto --- (In reply to Sylvain Galliano from comment #17) Hi Sylvain, Thanks for sharing your patch. I've tested and it really worked. Let's wait= for some maintainer's answer. Thank you anyway :) --=20 You are receiving this mail because: You are on the CC list for the bug.= From owner-freebsd-net@freebsd.org Tue Apr 3 10:15:40 2018 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C65A6F73B89 for ; Tue, 3 Apr 2018 10:15:40 +0000 (UTC) (envelope-from ml@netfence.it) Received: from soth.netfence.it (net-2-44-121-52.cust.vodafonedsl.it [2.44.121.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "mailserver.netfence.it", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 17608752E2 for ; Tue, 3 Apr 2018 10:15:39 +0000 (UTC) (envelope-from ml@netfence.it) Received: from alamar.ventu (alamar.local.netfence.it [10.1.2.18]) (authenticated bits=0) by soth.netfence.it (8.15.2/8.15.2) with ESMTPSA id w33AFMja034455 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO) for ; Tue, 3 Apr 2018 12:15:35 +0200 (CEST) (envelope-from ml@netfence.it) X-Authentication-Warning: soth.netfence.it: Host alamar.local.netfence.it [10.1.2.18] claimed to be alamar.ventu From: Andrea Venturoli Subject: Questions about ipfw's dynamic rules' dyn_keepalive To: freebsd-net@freebsd.org Message-ID: <04ad23ad-4020-7c07-8d75-eef6e84f4de8@netfence.it> Date: Tue, 3 Apr 2018 12:15:22 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Apr 2018 10:15:40 -0000 Hello. I'm trying to find out how dyn_keepalive works. From ipfw(8): > net.inet.ip.fw.dyn_keepalive: 1 > Enables generation of keepalive packets for keep-state rules on > TCP sessions. A keepalive is generated to both sides of the con- > nection every 5 seconds for the last 20 seconds of the lifetime > of the rule. > ... > ... For TCP sessions, dynamic rules can be > instructed to periodically send keepalive packets to refresh the state of > the rule when it is about to expire. So I made some tests on a 11.1 router. I made sure net.inet.ip.fw.dyn_keepalive=1 (which is the default, BTW), activated some rules and made some tests with tcpdump to see if keep-alives were sent. Test 1: connection to the router itself I added this rule on the router: > ipfw add 99 allow tcp from any to me http setup keep-state Then, from another box (FreeBSD client without ipfw or other firewall) I issued: telnet router 80 I watched the dynamic rule being created, then waited 4.5 minutes and saw the keep-alive packets flowing and the rule timer get back to {net.inet.ip.fw.dyn_ack_lifetime} before reaching 0. The connection would still work after several minutes. Test 2: connection through the router > ipfw add 99 allow tcp from any to external-host http setup keep-state Then, from the same box as before I issued: telnet external-host 80 (external-host is is also FreeBSD with ipfw stateful rules). The result is the same as in test 1 (i.e. the connection will persist). Test 3: let's introduce NAT > ipfw add 99 skipto 10000 tcp from any to external-host http setup keep-state (skipto 10000 is used to allow nat rules). With the same external host as before, now the rule times out! Test 4: fwd to a jail on the router itself > ipfw add 99 fwd 127.0.2.1 tcp from any to me http setup keep-state telnet router 80 Again I see the keep-alive packets flowing and the connection will persist. Test 5: fwd to a jail on the router itself but using a different IP > ipfw add 99 fwd 127.0.2.1 tcp from any to x.y.z.w http setup keep-state telnet x.y.z.w 80 This time no keep-alives and the rule times out. I tried reasoning on this, but could not come up with an explanation. Can anybody give any hint about the above behaviours or point me to good documentation? The man pages is very brief on this, unfortunately. bye & Thanks av. From owner-freebsd-net@freebsd.org Tue Apr 3 10:46:44 2018 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id BE1B3F75DFB for ; Tue, 3 Apr 2018 10:46:44 +0000 (UTC) (envelope-from bu7cher@yandex.ru) Received: from forward105j.mail.yandex.net (forward105j.mail.yandex.net [IPv6:2a02:6b8:0:801:2::108]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "forwards.mail.yandex.net", Issuer "Yandex CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 34E0C76741 for ; Tue, 3 Apr 2018 10:46:43 +0000 (UTC) (envelope-from bu7cher@yandex.ru) Received: from mxback9g.mail.yandex.net (mxback9g.mail.yandex.net [IPv6:2a02:6b8:0:1472:2741:0:8b7:170]) by forward105j.mail.yandex.net (Yandex) with ESMTP id 63693184B31; Tue, 3 Apr 2018 13:46:41 +0300 (MSK) Received: from smtp4p.mail.yandex.net (smtp4p.mail.yandex.net [2a02:6b8:0:1402::15:6]) by mxback9g.mail.yandex.net (nwsmtp/Yandex) with ESMTP id 4zdPTjGkrz-kf58N5Y7; Tue, 03 Apr 2018 13:46:41 +0300 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1522752401; bh=e4G3e+9TewYG12C5XsFfKvJP+n9Re1tmFU4az63m1Ck=; h=Subject:To:References:From:Message-ID:Date:In-Reply-To; b=Nag9tlAmuQv2jZtzt4dT297dos2pFxf95Bz6/bwmmaUzDEsE8MOHkVXxDOqEVjRc/ Fevo6YUf+YgO77bFHUIi6P5Zga0t1MNTwh4P+pyFwTY/RFUjitk27fVuddVoHcMDPz zYZLveZwBzhjoizW8AVzvHpxVnlupm6w4Nbu3b2o= Received: by smtp4p.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id OYmP9yeLs0-keZqoXX9; Tue, 03 Apr 2018 13:46:40 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client certificate not present) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1522752400; bh=e4G3e+9TewYG12C5XsFfKvJP+n9Re1tmFU4az63m1Ck=; h=Subject:To:References:From:Message-ID:Date:In-Reply-To; b=YWQjfpml+kequWa1VzNr77DcEj51EK3beY/fBTdbyFS5jkcEpjivQbJI94JcaADI7 iuENVolNap/MBoJomZ93HE9FiTvMm5F6OYzP07NR8LGOPPtunMiwaoXYrXTZNGvsgX RPuWAc3CIwT14kOWT7n0GgFHJuy0OH8PoDQ8y5bo= Authentication-Results: smtp4p.mail.yandex.net; dkim=pass header.i=@yandex.ru Subject: Re: Questions about ipfw's dynamic rules' dyn_keepalive To: Andrea Venturoli , freebsd-net@freebsd.org References: <04ad23ad-4020-7c07-8d75-eef6e84f4de8@netfence.it> From: "Andrey V. Elsukov" Openpgp: id=E6591E1B41DA1516F0C9BC0001C5EA0410C8A17A Autocrypt: addr=bu7cher@yandex.ru; keydata= xsBNBEwBF1kBCADB9sXFhBEUy8qQ4X63Y8eBatYMHGEFWN9ypS5lI3RE6qQW2EYbxNk7qUC5 21YIIS1mMFVBEfvR7J9uc7yaYgFCEb6Sce1RSO4ULN2mRKGHP3/Sl0ijZEjWHV91hY1YTHEF ZW/0GYinDf56sYpDDehaBF5wkWIo1+QK5nmj3vl0DIDCMNd7QEiWpyLVwECgLX2eOAXByT8B bCqVhJGcG6iFP7/B9Ll6uX5gb8thM9LM+ibwErDBVDGiOgvfxqidab7fdkh893IBCXa82H9N CNwnEtcgzh+BSKK5BgvPohFMgRwjti37TSxwLu63QejRGbZWSz3OK3jMOoF63tCgn7FvABEB AAHNIkFuZHJleSBWLiBFbHN1a292IDxhZUBmcmVlYnNkLm9yZz7CwHsEEwECACUCGwMGCwkI BwMCBhUIAgkKCwQWAgMBAh4BAheABQJMB/ruAhkBAAoJEAHF6gQQyKF6MLwH/3Ri/TZl9uo0 SepYWXOnxL6EaDVXDA+dLb1eLKC4PRBBjX29ttQ0KaWapiE6y5/AfzOPmRtHLrHYHjd/aiHX GMLHcYRXD+5GvdkK8iMALrZ28X0JXyuuZa8rAxWIWmCbYHNSBy2unqWgTI04Erodk90IALgM 9JeHN9sFqTM6zalrMnTzlcmel4kcjT3lyYw3vOKgoYLtsLhKZSbJoVVVlvRlGBpHFJI5AoYJ SyfXoN0rcX6k9X7Isp2K50YjqxV4v78xluh1puhwZyC0p8IShPrmrp9Oy9JkMX90o6UAXdGU KfdExJuGJfUZOFBTtNIMNIAKfMTjhpRhxONIr0emxxDOwE0ETAEXWQEIAJ2p6l9LBoqdH/0J PEFDY2t2gTvAuzz+8zs3R03dFuHcNbOwjvWCG0aOmVpAzkRa8egn5JB4sZaFUtKPYJEQ1Iu+ LUBwgvtXf4vWpzC67zs2dDuiW4LamH5p6xkTD61aHR7mCB3bg2TUjrDWn2Jt44cvoYxj3dz4 S49U1rc9ZPgD5axCNv45j72tggWlZvpefThP7xT1OlNTUqye2gAwQravXpZkl5JG4eOqJVIU X316iE3qso0iXRUtO7OseBf0PiVmk+wCahdreHOeOxK5jMhYkPKVn7z1sZiB7W2H2TojbmcK HZC22sz7Z/H36Lhg1+/RCnGzdEcjGc8oFHXHCxUAEQEAAcLAXwQYAQIACQUCTAEXWQIbDAAK CRABxeoEEMihegkYCAC3ivGYNe2taNm/4Nx5GPdzuaAJGKWksV+w9mo7dQvU+NmI2az5w8vw 98OmX7G0OV9snxMW+6cyNqBrVFTu33VVNzz9pnqNCHxGvj5dL5ltP160JV2zw2bUwJBYsgYQ WfyJJIM7l3gv5ZS3DGqaGIm9gOK1ANxfrR5PgPzvI9VxDhlr2juEVMZYAqPLEJe+SSxbwLoz BcFCNdDAyXcaAzXsx/E02YWm1hIWNRxanAe7Vlg7OL+gvLpdtrYCMg28PNqKNyrQ87LQ49O9 50IIZDOtNFeR0FGucjcLPdS9PiEqCoH7/waJxWp6ydJ+g4OYRBYNM0EmMgy1N85JJrV1mi5i Message-ID: <756b78e2-4e65-ab03-1e91-943a77fdf45d@yandex.ru> Date: Tue, 3 Apr 2018 13:45:11 +0300 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <04ad23ad-4020-7c07-8d75-eef6e84f4de8@netfence.it> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="ycE0NCni69gZyot7QxS76QzdkHauzKhIO" X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Apr 2018 10:46:45 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --ycE0NCni69gZyot7QxS76QzdkHauzKhIO Content-Type: multipart/mixed; boundary="BylzomZoN1eqTOnxgKcmus93Sy07wkhEP"; protected-headers="v1" From: "Andrey V. Elsukov" To: Andrea Venturoli , freebsd-net@freebsd.org Message-ID: <756b78e2-4e65-ab03-1e91-943a77fdf45d@yandex.ru> Subject: Re: Questions about ipfw's dynamic rules' dyn_keepalive References: <04ad23ad-4020-7c07-8d75-eef6e84f4de8@netfence.it> In-Reply-To: <04ad23ad-4020-7c07-8d75-eef6e84f4de8@netfence.it> --BylzomZoN1eqTOnxgKcmus93Sy07wkhEP Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable On 03.04.2018 13:15, Andrea Venturoli wrote: > Test 3: let's introduce NAT >=20 >> ipfw add 99 skipto 10000 tcp from any to external-host http setup >> keep-state >=20 > (skipto 10000 is used to allow nat rules). > With the same external host as before, now the rule times out! > =20 > Test 5: fwd to a jail on the router itself but using a different IP >=20 >> ipfw add 99 fwd 127.0.2.1 tcp from any to x.y.z.w http setup keep-stat= e >=20 > telnet x.y.z.w 80 >=20 > This time no keep-alives and the rule times out. > I tried reasoning on this, but could not come up with an explanation. >=20 > Can anybody give any hint about the above behaviours or point me to goo= d > documentation? The man pages is very brief on this, unfortunately. Hi, ipfw uses M_SKIP_FIREWALL flag for self-generated packets. Thus keep-alive packets are sent bypass the rules. When you use NAT, I guess keep-alive packets have private source address, because they are not go through the NAT rule. And because of this remote host drops them without reply. Since there are no replies to keep-alive requests, a state times out. --=20 WBR, Andrey V. Elsukov --BylzomZoN1eqTOnxgKcmus93Sy07wkhEP-- --ycE0NCni69gZyot7QxS76QzdkHauzKhIO Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEzBAEBCAAdFiEE5lkeG0HaFRbwybwAAcXqBBDIoXoFAlrDWzcACgkQAcXqBBDI oXooeAf8DiPgjD8j2Jep9mScX7I8pJNYzG31J/IEVk3ZSBhbh4C59aN1DAwx1V4m uS6mxjpYfQK/65+2X3G7dcUI1v5pc0ORQu4wGwto6z8BR9KyYf/7SXzyJyHscgeH llr91RrR4xrwik8C5s+do+EPCqh8fI7e+ofHujFtrTU/V1sybjRcKv0RibTEMqzn c7yE+vq8a8JrDuiAqHFBOFaoWrz6240Tmvv76paOvJP1m715WihVqS0KJONwL8Eo r/YNDaNCUxF9c5L50gbKgf4gBfPWN1+oM77XbROloUbk4z417R+v/bkF9nYi21H2 +hzr3WI8Ty8S//60nHkMegoruj8aSg== =b6on -----END PGP SIGNATURE----- --ycE0NCni69gZyot7QxS76QzdkHauzKhIO-- From owner-freebsd-net@freebsd.org Tue Apr 3 10:56:19 2018 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 6BBF2F767B2 for ; Tue, 3 Apr 2018 10:56:19 +0000 (UTC) (envelope-from bu7cher@yandex.ru) Received: from forward100j.mail.yandex.net (forward100j.mail.yandex.net [IPv6:2a02:6b8:0:801:2::100]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "forwards.mail.yandex.net", Issuer "Yandex CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id D783976D67 for ; Tue, 3 Apr 2018 10:56:18 +0000 (UTC) (envelope-from bu7cher@yandex.ru) Received: from mxback11g.mail.yandex.net (mxback11g.mail.yandex.net [IPv6:2a02:6b8:0:1472:2741:0:8b7:90]) by forward100j.mail.yandex.net (Yandex) with ESMTP id 69B495D84CD4; Tue, 3 Apr 2018 13:56:08 +0300 (MSK) Received: from smtp2p.mail.yandex.net (smtp2p.mail.yandex.net [2a02:6b8:0:1472:2741:0:8b6:7]) by mxback11g.mail.yandex.net (nwsmtp/Yandex) with ESMTP id n5IWgp4wdx-u84GTmgW; Tue, 03 Apr 2018 13:56:08 +0300 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1522752968; bh=536E+5iUT3xjq3HfarT3rsQr8r3/90Umei4gVOjs5RA=; h=Subject:From:To:References:Message-ID:Date:In-Reply-To; b=XgG8PBfbYe0HLzIWRfCfOsfF0dRJKUJSiRZcrLutQ5WMe9ysd+AABSadEYaFzRmfm 5Q/T7F3/bvmRphik4LI10Mf1Y9K/z2/Gwt8AEHJT2H3PL6W5419AhOCVCtuPmeZKub bjq5eA5HAz1mH7tmQT0yePPNjOXU73l4m8wvv2D8= Received: by smtp2p.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id a3ff76jIsN-u19mm7ki; Tue, 03 Apr 2018 13:56:01 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client certificate not present) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1522752961; bh=536E+5iUT3xjq3HfarT3rsQr8r3/90Umei4gVOjs5RA=; h=Subject:From:To:References:Message-ID:Date:In-Reply-To; b=iioAaHSYvGWBKrtaIa0YJ8J+fOPMl8dnhAk2DEi+XX3aSOSz7DSeU5FuuaXWvvxaU qQXeCcu3C5NcpnF3BHIA5df5Jc49qnd++sJJLH9+INx596flUFXo7ws3+HOlpxwz2V tTsGnmrJHZ1N7H8XjS4neDi8CV2hp8ms1KdE2P/Q= Authentication-Results: smtp2p.mail.yandex.net; dkim=pass header.i=@yandex.ru Subject: Re: Questions about ipfw's dynamic rules' dyn_keepalive From: "Andrey V. Elsukov" To: Andrea Venturoli , freebsd-net@freebsd.org References: <04ad23ad-4020-7c07-8d75-eef6e84f4de8@netfence.it> <756b78e2-4e65-ab03-1e91-943a77fdf45d@yandex.ru> Openpgp: id=E6591E1B41DA1516F0C9BC0001C5EA0410C8A17A Autocrypt: addr=bu7cher@yandex.ru; keydata= xsBNBEwBF1kBCADB9sXFhBEUy8qQ4X63Y8eBatYMHGEFWN9ypS5lI3RE6qQW2EYbxNk7qUC5 21YIIS1mMFVBEfvR7J9uc7yaYgFCEb6Sce1RSO4ULN2mRKGHP3/Sl0ijZEjWHV91hY1YTHEF ZW/0GYinDf56sYpDDehaBF5wkWIo1+QK5nmj3vl0DIDCMNd7QEiWpyLVwECgLX2eOAXByT8B bCqVhJGcG6iFP7/B9Ll6uX5gb8thM9LM+ibwErDBVDGiOgvfxqidab7fdkh893IBCXa82H9N CNwnEtcgzh+BSKK5BgvPohFMgRwjti37TSxwLu63QejRGbZWSz3OK3jMOoF63tCgn7FvABEB AAHNIkFuZHJleSBWLiBFbHN1a292IDxhZUBmcmVlYnNkLm9yZz7CwHsEEwECACUCGwMGCwkI BwMCBhUIAgkKCwQWAgMBAh4BAheABQJMB/ruAhkBAAoJEAHF6gQQyKF6MLwH/3Ri/TZl9uo0 SepYWXOnxL6EaDVXDA+dLb1eLKC4PRBBjX29ttQ0KaWapiE6y5/AfzOPmRtHLrHYHjd/aiHX GMLHcYRXD+5GvdkK8iMALrZ28X0JXyuuZa8rAxWIWmCbYHNSBy2unqWgTI04Erodk90IALgM 9JeHN9sFqTM6zalrMnTzlcmel4kcjT3lyYw3vOKgoYLtsLhKZSbJoVVVlvRlGBpHFJI5AoYJ SyfXoN0rcX6k9X7Isp2K50YjqxV4v78xluh1puhwZyC0p8IShPrmrp9Oy9JkMX90o6UAXdGU KfdExJuGJfUZOFBTtNIMNIAKfMTjhpRhxONIr0emxxDOwE0ETAEXWQEIAJ2p6l9LBoqdH/0J PEFDY2t2gTvAuzz+8zs3R03dFuHcNbOwjvWCG0aOmVpAzkRa8egn5JB4sZaFUtKPYJEQ1Iu+ LUBwgvtXf4vWpzC67zs2dDuiW4LamH5p6xkTD61aHR7mCB3bg2TUjrDWn2Jt44cvoYxj3dz4 S49U1rc9ZPgD5axCNv45j72tggWlZvpefThP7xT1OlNTUqye2gAwQravXpZkl5JG4eOqJVIU X316iE3qso0iXRUtO7OseBf0PiVmk+wCahdreHOeOxK5jMhYkPKVn7z1sZiB7W2H2TojbmcK HZC22sz7Z/H36Lhg1+/RCnGzdEcjGc8oFHXHCxUAEQEAAcLAXwQYAQIACQUCTAEXWQIbDAAK CRABxeoEEMihegkYCAC3ivGYNe2taNm/4Nx5GPdzuaAJGKWksV+w9mo7dQvU+NmI2az5w8vw 98OmX7G0OV9snxMW+6cyNqBrVFTu33VVNzz9pnqNCHxGvj5dL5ltP160JV2zw2bUwJBYsgYQ WfyJJIM7l3gv5ZS3DGqaGIm9gOK1ANxfrR5PgPzvI9VxDhlr2juEVMZYAqPLEJe+SSxbwLoz BcFCNdDAyXcaAzXsx/E02YWm1hIWNRxanAe7Vlg7OL+gvLpdtrYCMg28PNqKNyrQ87LQ49O9 50IIZDOtNFeR0FGucjcLPdS9PiEqCoH7/waJxWp6ydJ+g4OYRBYNM0EmMgy1N85JJrV1mi5i Message-ID: <25e56a77-8374-d273-0b5e-2f11c1b03ff8@yandex.ru> Date: Tue, 3 Apr 2018 13:54:36 +0300 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <756b78e2-4e65-ab03-1e91-943a77fdf45d@yandex.ru> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="3pbQzHjYyhniEXlwlsr6Lwxvkwk8YBPgc" X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Apr 2018 10:56:19 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --3pbQzHjYyhniEXlwlsr6Lwxvkwk8YBPgc Content-Type: multipart/mixed; boundary="4EddIKeF57tY2C80Kd1IsdE9o5wOLvujc"; protected-headers="v1" From: "Andrey V. Elsukov" To: Andrea Venturoli , freebsd-net@freebsd.org Message-ID: <25e56a77-8374-d273-0b5e-2f11c1b03ff8@yandex.ru> Subject: Re: Questions about ipfw's dynamic rules' dyn_keepalive References: <04ad23ad-4020-7c07-8d75-eef6e84f4de8@netfence.it> <756b78e2-4e65-ab03-1e91-943a77fdf45d@yandex.ru> In-Reply-To: <756b78e2-4e65-ab03-1e91-943a77fdf45d@yandex.ru> --4EddIKeF57tY2C80Kd1IsdE9o5wOLvujc Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable On 03.04.2018 13:45, Andrey V. Elsukov wrote: >> Can anybody give any hint about the above behaviours or point me to go= od >> documentation? The man pages is very brief on this, unfortunately. >=20 > Hi, >=20 > ipfw uses M_SKIP_FIREWALL flag for self-generated packets. Thus > keep-alive packets are sent bypass the rules. When you use NAT, I guess= > keep-alive packets have private source address, because they are not go= > through the NAT rule. And because of this remote host drops them withou= t > reply. Since there are no replies to keep-alive requests, a state times= > out. You can try this patch: https://people.freebsd.org/~ae/ipfw_bypass_own_packets11.diff It adds sysctl variable net.inet.ip.fw.bypass_own_packets, that can control the behavior of M_SKIP_FIREWALL flag. --=20 WBR, Andrey V. Elsukov --4EddIKeF57tY2C80Kd1IsdE9o5wOLvujc-- --3pbQzHjYyhniEXlwlsr6Lwxvkwk8YBPgc Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEzBAEBCAAdFiEE5lkeG0HaFRbwybwAAcXqBBDIoXoFAlrDXWwACgkQAcXqBBDI oXpbqAf+NRhtkcCMY6lGmQ7nNf0lToYiC/rsz+vVCOY8x9b5FuM/3l05iNFDOS/T Qb52mOrC4iOTmLgeYBeKrciXPXUTL3JaVoQE9CGBj5SW3PAGO5cwWgfxOLitjMYj 5w6NSJ0PjXleJzNOSUCaMxxWzP0//K9JZLGdmv76ncgQj6v3NtwaIyiyxnDBEA8K gps71HHiURzw9BTyhAiDxf5wKLugefDdQ7wC+c/XNEAKJ3pyIam3ZURlDBfrqe5G 8ghOHIj3JbGXNhVR29B27jbtxIL3L68s3RaXMjVzA8UAE3UetZh4FWlM0GtYJJym sWfXCaYdlmhYIGifiI7ZmcWQctztTw== =S7Yi -----END PGP SIGNATURE----- --3pbQzHjYyhniEXlwlsr6Lwxvkwk8YBPgc-- From owner-freebsd-net@freebsd.org Wed Apr 4 12:45:19 2018 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 5BA05F8B7F1 for ; Wed, 4 Apr 2018 12:45:19 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id E7747783D1 for ; Wed, 4 Apr 2018 12:45:18 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id 4489C2620A for ; Wed, 4 Apr 2018 12:45:18 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id w34CjIlI093443 for ; Wed, 4 Apr 2018 12:45:18 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id w34CjI1P093442 for freebsd-net@FreeBSD.org; Wed, 4 Apr 2018 12:45:18 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: freebsd-net@FreeBSD.org Subject: [Bug 227259] accept() does not wakeup on shutdown()/close() Date: Wed, 04 Apr 2018 12:45:18 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 11.0-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: rozhuk.im@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Apr 2018 12:45:19 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D227259 rozhuk.im@gmail.com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |freebsd-net@FreeBSD.org --=20 You are receiving this mail because: You are on the CC list for the bug.= From owner-freebsd-net@freebsd.org Wed Apr 4 12:52:08 2018 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 138D0F8C165 for ; Wed, 4 Apr 2018 12:52:08 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id A318578DA5 for ; Wed, 4 Apr 2018 12:52:07 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id D54632635E for ; Wed, 4 Apr 2018 12:52:06 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id w34Cq6eC031191 for ; Wed, 4 Apr 2018 12:52:06 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id w34Cq6Zc031189 for freebsd-net@FreeBSD.org; Wed, 4 Apr 2018 12:52:06 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: freebsd-net@FreeBSD.org Subject: [Bug 227259] accept()/poll() and shutdown()/close() - not work as in FreeBSD10, may broke many apps Date: Wed, 04 Apr 2018 12:52:06 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 11.0-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: rozhuk.im@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: short_desc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Apr 2018 12:52:08 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D227259 rozhuk.im@gmail.com changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|accept() does not wakeup on |accept()/poll() and |shutdown()/close() |shutdown()/close() - not | |work as in FreeBSD10, may | |broke many apps --=20 You are receiving this mail because: You are on the CC list for the bug.= From owner-freebsd-net@freebsd.org Wed Apr 4 12:56:35 2018 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 423FAF8C643 for ; Wed, 4 Apr 2018 12:56:35 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id CE3647928F for ; Wed, 4 Apr 2018 12:56:34 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id 2B2F12636E for ; Wed, 4 Apr 2018 12:56:34 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id w34CuY1c040831 for ; Wed, 4 Apr 2018 12:56:34 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id w34CuYvu040830 for freebsd-net@FreeBSD.org; Wed, 4 Apr 2018 12:56:34 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: freebsd-net@FreeBSD.org Subject: [Bug 227259] accept()/poll() and shutdown()/close() - not work as in FreeBSD10, may broke many apps Date: Wed, 04 Apr 2018 12:56:34 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 11.0-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: rozhuk.im@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Apr 2018 12:56:35 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D227259 --- Comment #2 from rozhuk.im@gmail.com --- I do not understand why shutdown() does not generates POLLHUP/EV_EOF (EV_ER= ROR then add shutdowned socket) for poll() and kqueue(). --=20 You are receiving this mail because: You are on the CC list for the bug.= From owner-freebsd-net@freebsd.org Wed Apr 4 13:08:33 2018 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 72F76F8D3DA for ; Wed, 4 Apr 2018 13:08:33 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 0E98779C3E for ; Wed, 4 Apr 2018 13:08:33 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id 4DBD5264EB for ; Wed, 4 Apr 2018 13:08:32 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id w34D8W1D079580 for ; Wed, 4 Apr 2018 13:08:32 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id w34D8W6Z079578 for freebsd-net@FreeBSD.org; Wed, 4 Apr 2018 13:08:32 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: freebsd-net@FreeBSD.org Subject: [Bug 227259] accept()/poll() and shutdown()/close() - not work as in FreeBSD10, may broke many apps Date: Wed, 04 Apr 2018 13:08:32 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 11.0-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: rozhuk.im@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Apr 2018 13:08:33 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D227259 --- Comment #3 from rozhuk.im@gmail.com --- Why close() does not wakes thread that sleep on accept()? --=20 You are receiving this mail because: You are on the CC list for the bug.= From owner-freebsd-net@freebsd.org Thu Apr 5 08:35:59 2018 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D53FFF9559F for ; Thu, 5 Apr 2018 08:35:59 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 6FF956FF68 for ; Thu, 5 Apr 2018 08:35:59 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id 9C61710B53 for ; Thu, 5 Apr 2018 08:35:58 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id w358ZwfC011511 for ; Thu, 5 Apr 2018 08:35:58 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id w358ZwqK011510 for freebsd-net@FreeBSD.org; Thu, 5 Apr 2018 08:35:58 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: freebsd-net@FreeBSD.org Subject: [Bug 227259] accept()/poll() and shutdown()/close() - not work as in FreeBSD10, may broke many apps Date: Thu, 05 Apr 2018 08:35:58 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 11.1-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: rozhuk.im@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: version Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Apr 2018 08:36:00 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D227259 rozhuk.im@gmail.com changed: What |Removed |Added ---------------------------------------------------------------------------- Version|11.0-STABLE |11.1-STABLE --=20 You are receiving this mail because: You are on the CC list for the bug.= From owner-freebsd-net@freebsd.org Thu Apr 5 09:53:41 2018 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 36B5BF9A1E4 for ; Thu, 5 Apr 2018 09:53:41 +0000 (UTC) (envelope-from julian@freebsd.org) Received: from vps1.elischer.org (vps1.elischer.org [204.109.63.16]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "vps1.elischer.org", Issuer "CA Cert Signing Authority" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id BB9D473054 for ; Thu, 5 Apr 2018 09:53:40 +0000 (UTC) (envelope-from julian@freebsd.org) Received: from Julian-MBP3.local (115-166-20-68.dyn.iinet.net.au [115.166.20.68]) (authenticated bits=0) by vps1.elischer.org (8.15.2/8.15.2) with ESMTPSA id w359rRbr061820 (version=TLSv1.2 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Thu, 5 Apr 2018 02:53:30 -0700 (PDT) (envelope-from julian@freebsd.org) Subject: Re: Raw Sockets: Two Questions To: Eugene Grosbein , "Ronald F. Guilmette" , FreeBSD Net References: <3559.1521655704@segfault.tristatelogic.com> <5AB2AD9F.6040600@grosbein.net> From: Julian Elischer Message-ID: <4f1c0fe3-ad6e-80d3-9ae2-210c63af355b@freebsd.org> Date: Thu, 5 Apr 2018 17:53:21 +0800 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <5AB2AD9F.6040600@grosbein.net> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Apr 2018 09:53:41 -0000 On 22/3/18 3:08 am, Eugene Grosbein wrote: > 22.03.2018 1:08, Ronald F. Guilmette wrote: > >> OK, so, if I have understood all that has been said in this thread so >> far, then I would assert that, from the perspective of a simple-minded >> and naive end user (e.g. me), the assertion that I originally quoted >> -is- in fact correct, i.e. one -cannot- just simply do sendto/recvfrom >> (and expect to get back responses) if the raw packets that one sends out >> happen to be, for example, well formed TCP or UDP packets. > Not exactly. You can't use raw sockets to receive but that does not mean > you cannot use sendto/recvfrom (or similar calls) at all: there are > libpcap, libdnet and NETGRAPH allowing to send requests and receive answers. > >> If I have correctly understood Matt Joras, there -are- ways to get hold >> of such reply packets, under FreeBSD, but those require getting a bit more >> "under the hood" in order to actually get hold of them... more than just >> a simple recvfrom on the RAW socket. > Why should you concentrate on RAW sockets? > > I have small perl script that sends manually crafted PPPoE frames > and receives replies using simple libpcap interface: > > use Net::Pcap qw(:DEFAULT :functions); > > use constant V8021Q => 0x8100; > use constant ETHERTYPE_PPPOEDISC => 0x8863; > use constant PPPOE_VER => 1; > use constant PPPOE_TYPE => 1; > use constant PADO_CODE => 7; > use constant PADI_CODE => 9; > use constant TAG_END_OF_LIST => 0x0000; > use constant TAG_SERVICE_NAME => 0x0101; > use constant TAG_AC_NAME => 0x0102; > use constant TAG_HOST_UNIQ => 0x0103; > > $packet = > # Ethernet header: dst MAC, src MAC, TYPE > ether_aton('ff:ff:ff:ff:ff:ff') . $bmac . pack('n', ETHERTYPE_PPPOEDISC) . > # PPPoE PADI: VER, TYPE, CODE, SESSION_ID=0 > pack('C', (PPPOE_VER<<4) + PPPOE_TYPE) . pack('C', PADI_CODE) . pack('n', 0) > # LENGTH, tags > pack('n', $tlen) . $tags; > # zero padding upto 60 bytes ethernet frame length (without checksum) > $packet .= pack('a' . (40-$tlen) , '') if $tlen < 40; > > err("cannot open interface $interface: $err") > unless $pcap = pcap_open_live($interface, $snaplen, 0, 0, \$err); > err("could not send PADI") > if pcap_sendpacket($pcap, $packet) != 0; > > $filter = "ether proto " . ETHERTYPE_PPPOEDISC . " and ether dst $mac"; > err("cannot compile filter: $filter") > if pcap_compile($pcap, \$bpf, $filter, 1, 0) < 0; > pcap_setfilter($pcap, $bpf); > > $ec = 0; > while($ec == 0) { > $ec = pcap_loop($pcap, -1, \&callback, undef); > } > pcap_close($pcap); > exit(0); > > sub callback($$$) { > return if $_[1]->{'len'} < 20; # sanity check: short frame > my ($dst, $src, $ftype, $ftag, $fp) = unpack('a6a6na4a*' , $_[2]); > ... > } why not just use the ng-pppoe node? :-) > _______________________________________________ > freebsd-net@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" > From owner-freebsd-net@freebsd.org Thu Apr 5 13:14:55 2018 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 34C2FF84AC7 for ; Thu, 5 Apr 2018 13:14:55 +0000 (UTC) (envelope-from eugen@grosbein.net) Received: from hz.grosbein.net (hz.grosbein.net [78.47.246.247]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "hz.grosbein.net", Issuer "hz.grosbein.net" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 9B0D37B415; Thu, 5 Apr 2018 13:14:53 +0000 (UTC) (envelope-from eugen@grosbein.net) Received: from eg.sd.rdtc.ru (root@eg.sd.rdtc.ru [62.231.161.221] (may be forged)) by hz.grosbein.net (8.15.2/8.15.2) with ESMTPS id w35DE8We037547 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 5 Apr 2018 15:14:09 +0200 (CEST) (envelope-from eugen@grosbein.net) X-Envelope-From: eugen@grosbein.net X-Envelope-To: julian@freebsd.org Received: from [10.58.0.4] ([10.58.0.4]) by eg.sd.rdtc.ru (8.15.2/8.15.2) with ESMTPS id w35DDvTw018246 (version=TLSv1.2 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT); Thu, 5 Apr 2018 20:13:57 +0700 (+07) (envelope-from eugen@grosbein.net) Subject: Re: Raw Sockets: Two Questions To: Julian Elischer , FreeBSD Net References: <3559.1521655704@segfault.tristatelogic.com> <5AB2AD9F.6040600@grosbein.net> <4f1c0fe3-ad6e-80d3-9ae2-210c63af355b@freebsd.org> From: Eugene Grosbein Message-ID: <5AC62111.6030206@grosbein.net> Date: Thu, 5 Apr 2018 20:13:53 +0700 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.7.2 MIME-Version: 1.0 In-Reply-To: <4f1c0fe3-ad6e-80d3-9ae2-210c63af355b@freebsd.org> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=2.2 required=5.0 tests=BAYES_00, LOCAL_FROM, RDNS_NONE autolearn=no autolearn_force=no version=3.4.1 X-Spam-Report: * -2.3 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * 1.9 RDNS_NONE Delivered to internal network by a host with no rDNS * 2.6 LOCAL_FROM From my domains X-Spam-Level: ** X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on hz.grosbein.net X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Apr 2018 13:14:55 -0000 05.04.2018 16:53, Julian Elischer wrote: > why not just use the ng-pppoe node? :-) Well, I do not need full-blown pppoe session nor interface configuration, only send thousands ppppoe broadcasts then collect all replies, period. Low-overhead solution is preferred. From owner-freebsd-net@freebsd.org Thu Apr 5 14:04:04 2018 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 2A75CF87CB3 for ; Thu, 5 Apr 2018 14:04:04 +0000 (UTC) (envelope-from julian@freebsd.org) Received: from vps1.elischer.org (vps1.elischer.org [204.109.63.16]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "vps1.elischer.org", Issuer "CA Cert Signing Authority" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id A63DE7D669 for ; Thu, 5 Apr 2018 14:04:03 +0000 (UTC) (envelope-from julian@freebsd.org) Received: from Julian-MBP3.local (115-166-20-68.dyn.iinet.net.au [115.166.20.68]) (authenticated bits=0) by vps1.elischer.org (8.15.2/8.15.2) with ESMTPSA id w35E3w0C063028 (version=TLSv1.2 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO) for ; Thu, 5 Apr 2018 07:04:01 -0700 (PDT) (envelope-from julian@freebsd.org) Subject: Re: Same host or different? How can you tell "over the wire"? To: freebsd-net@freebsd.org References: <5700.1521675051@segfault.tristatelogic.com> From: Julian Elischer Message-ID: Date: Thu, 5 Apr 2018 22:03:53 +0800 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <5700.1521675051@segfault.tristatelogic.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Apr 2018 14:04:04 -0000 On 22/3/18 7:30 am, Ronald F. Guilmette wrote: > In message <5AB2D11A.6060605@grosbein.net>, > Eugene Grosbein wrote: > >> If they respond truly identically, there are no reasons to treat them like >> distinct hosts >> despite of different IP addresses. are you on the same segment as them? From owner-freebsd-net@freebsd.org Thu Apr 5 18:17:15 2018 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 76AC3F97F6A for ; Thu, 5 Apr 2018 18:17:15 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 0FB2A69586 for ; Thu, 5 Apr 2018 18:17:15 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id 54D8F15B4C for ; Thu, 5 Apr 2018 18:17:14 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id w35IHEoD070926 for ; Thu, 5 Apr 2018 18:17:14 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id w35IHEJW070923 for freebsd-net@FreeBSD.org; Thu, 5 Apr 2018 18:17:14 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: freebsd-net@FreeBSD.org Subject: [Bug 227303] tcp cwnd grows without bounds while app/rwnd limited, interacts badly with rwnd autosize Date: Thu, 05 Apr 2018 18:17:11 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: linimon@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-net@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: assigned_to Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Apr 2018 18:17:15 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D227303 Mark Linimon changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|freebsd-bugs@FreeBSD.org |freebsd-net@FreeBSD.org --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-net@freebsd.org Thu Apr 5 20:46:24 2018 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E5924FA1BAB for ; Thu, 5 Apr 2018 20:46:23 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 751A470C2F for ; Thu, 5 Apr 2018 20:46:23 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id C5B0A16FDD for ; Thu, 5 Apr 2018 20:46:22 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id w35KkMdC047841 for ; Thu, 5 Apr 2018 20:46:22 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id w35KkMvo047838 for freebsd-net@FreeBSD.org; Thu, 5 Apr 2018 20:46:22 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: freebsd-net@FreeBSD.org Subject: [Bug 227303] tcp cwnd grows without bounds while app/rwnd limited, interacts badly with rwnd autosize Date: Thu, 05 Apr 2018 20:46:23 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: srichard@netapp.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-net@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Apr 2018 20:46:24 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D227303 --- Comment #2 from Richard Scheffenegger --- After further investigation, this issue is more complex. cwnd does in fact = not grow when the transmission is rwnd limited. However, 20 sec prior to these = two burst events, during slow start, the client already signaled a large rwnd (= at least as large as when the bursts happen). And no losses occured, so cwnd d= id probably grow to the large rwnd (or very close to is) during the initial sl= ow start. Then, the client reduced rwnd to 1/2 or 1/3 of that initial value, a= nd cwnd never decays (RTT is 1ms with empty buffers, and 40ms with full buffer= s; 20 sec are eons in any case).=20 So at the time of these graphs, cwnd has no longer any valid information ab= out the state of the network, but is nevertheless used as such. Guess RFC7661 (with substituting "no transmissions" with "transmission rate= < cwnd") with it's many-rtt long decay would adress this particular issue. Can provide xpl file (but not original trace) of the entire session. --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-net@freebsd.org Thu Apr 5 20:48:56 2018 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 65F00FA1E8D for ; Thu, 5 Apr 2018 20:48:56 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id F2F4C70DD3 for ; Thu, 5 Apr 2018 20:48:55 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id 454E516FE0 for ; Thu, 5 Apr 2018 20:48:55 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id w35Kmti0051146 for ; Thu, 5 Apr 2018 20:48:55 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id w35KmtUE051145 for freebsd-net@FreeBSD.org; Thu, 5 Apr 2018 20:48:55 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: freebsd-net@FreeBSD.org Subject: [Bug 227303] tcp cwnd grows without bounds while app/rwnd limited, interacts badly with rwnd autosize Date: Thu, 05 Apr 2018 20:48:55 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: srichard@netapp.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-net@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Apr 2018 20:48:56 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D227303 --- Comment #3 from Richard Scheffenegger --- Immediately clamping cwnd down to rwnd is not a viable solution, as TCP flow control might be in actual use by the client (dynamically adjusting rwnd wi= thin <10 RTTs, depending on processing state of the received data). Thus a slow decay as mentioned in 7661 is probably the correct course.... --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-net@freebsd.org Thu Apr 5 20:51:44 2018 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 36DF8F80287 for ; Thu, 5 Apr 2018 20:51:44 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id BD3ED71114 for ; Thu, 5 Apr 2018 20:51:43 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id 0BBB917018 for ; Thu, 5 Apr 2018 20:51:43 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id w35Kpgr6060306 for ; Thu, 5 Apr 2018 20:51:42 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id w35KpgGi060305 for freebsd-net@FreeBSD.org; Thu, 5 Apr 2018 20:51:42 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: freebsd-net@FreeBSD.org Subject: [Bug 227303] TCP: huge cwnd does not slowly decay while app/rwnd limited, interacts badly with rwnd autosize Date: Thu, 05 Apr 2018 20:51:43 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: srichard@netapp.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-net@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: short_desc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Apr 2018 20:51:44 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D227303 Richard Scheffenegger changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|tcp cwnd grows without |TCP: huge cwnd does not |bounds while app/rwnd |slowly decay while app/rwnd |limited, interacts badly |limited, interacts badly |with rwnd autosize |with rwnd autosize --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-net@freebsd.org Thu Apr 5 21:33:34 2018 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A7CD3F82EB1 for ; Thu, 5 Apr 2018 21:33:34 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 432DA72BC1 for ; Thu, 5 Apr 2018 21:33:34 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id 98219176A5 for ; Thu, 5 Apr 2018 21:33:33 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id w35LXXEp035932 for ; Thu, 5 Apr 2018 21:33:33 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id w35LXXOY035931 for freebsd-net@FreeBSD.org; Thu, 5 Apr 2018 21:33:33 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: freebsd-net@FreeBSD.org Subject: [Bug 227259] accept()/poll() and shutdown()/close() - not work as in FreeBSD10, may broke many apps Date: Thu, 05 Apr 2018 21:33:33 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 11.1-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: glebius@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Apr 2018 21:33:34 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D227259 --- Comment #4 from Gleb Smirnoff --- Can you please confirm that behavior changed for FreeBSD 11, not 12? I would expect to have a regression in 12, since there was a big change to listening sockets there, but not in 11. --=20 You are receiving this mail because: You are on the CC list for the bug.= From owner-freebsd-net@freebsd.org Thu Apr 5 21:34:29 2018 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id EF06EF82F84 for ; Thu, 5 Apr 2018 21:34:28 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 8E50672C9B for ; Thu, 5 Apr 2018 21:34:28 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id CD912176AB for ; Thu, 5 Apr 2018 21:34:27 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id w35LYRcl037095 for ; Thu, 5 Apr 2018 21:34:27 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id w35LYRhq037094 for freebsd-net@FreeBSD.org; Thu, 5 Apr 2018 21:34:27 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: freebsd-net@FreeBSD.org Subject: [Bug 227303] TCP: huge cwnd does not slowly decay while app/rwnd limited, interacts badly with rwnd autosize Date: Thu, 05 Apr 2018 21:34:28 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: hiren@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-net@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Apr 2018 21:34:29 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D227303 --- Comment #4 from Hiren Panchasara --- IIRC, Netflix has new-cwv implemented in their not-yet-upstreamed codebase. --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-net@freebsd.org Thu Apr 5 21:38:29 2018 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 8E25DF83509 for ; Thu, 5 Apr 2018 21:38:29 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 2A12872F3D for ; Thu, 5 Apr 2018 21:38:29 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id 69712176B2 for ; Thu, 5 Apr 2018 21:38:28 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id w35LcSbb042135 for ; Thu, 5 Apr 2018 21:38:28 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id w35LcSQm042134 for freebsd-net@FreeBSD.org; Thu, 5 Apr 2018 21:38:28 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: freebsd-net@FreeBSD.org Subject: [Bug 227259] accept()/poll() and shutdown()/close() - not work as in FreeBSD10, may broke many apps Date: Thu, 05 Apr 2018 21:38:28 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 11.1-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: rozhuk.im@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Apr 2018 21:38:29 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D227259 --- Comment #5 from rozhuk.im@gmail.com --- FreeBSD rimwks 11.1-STABLE FreeBSD 11.1-STABLE r331113M amd64 I do not try 12. You can run test from attach and see results. --=20 You are receiving this mail because: You are on the CC list for the bug.= From owner-freebsd-net@freebsd.org Thu Apr 5 22:22:46 2018 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 82448F8648A for ; Thu, 5 Apr 2018 22:22:46 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 1028E74CB3 for ; Thu, 5 Apr 2018 22:22:46 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id 5FC7F17D73 for ; Thu, 5 Apr 2018 22:22:45 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id w35MMj4t064432 for ; Thu, 5 Apr 2018 22:22:45 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id w35MMjar064430 for freebsd-net@FreeBSD.org; Thu, 5 Apr 2018 22:22:45 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: freebsd-net@FreeBSD.org Subject: [Bug 227259] accept()/poll() and shutdown()/close() - not work as in FreeBSD10, may broke many apps Date: Thu, 05 Apr 2018 22:22:45 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 11.1-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: rozhuk.im@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: attachments.isobsolete attachments.mimetype attachments.created Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Apr 2018 22:22:46 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D227259 rozhuk.im@gmail.com changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #192208|0 |1 is obsolete| | Attachment #192260|text/x-csrc |text/plain mime type| | --- Comment #6 from rozhuk.im@gmail.com --- Created attachment 192260 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D192260&action= =3Dedit test tool I do few modifications to run on linux, also add epoll() to kqueue() place. Linux ubuntux64 4.4.0-57-generic #78-Ubuntu SMP Fri Dec 9 23:50:32 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux ./acc_test | grep "chk OK" 0: socket(AF_INET, block) ... lskt accept shutdown chk OK, ret cod= e: 22 - Invalid argument 1: socket(AF_INET, block) ... rskt accept shutdown chk OK, ret cod= e: 22 - Invalid argument 4: socket(AF_INET, block) ... lskt poll shutdown chk OK 5: socket(AF_INET, block) ... rskt poll shutdown chk OK 6: socket(AF_INET, block) ... lskt epoll shutdown chk OK 7: socket(AF_INET, block) ... rskt epoll shutdown chk OK 16: socket(AF_INET, block) ... lskt shutdown accept chk OK, ret cod= e: 22 - Invalid argument 20: socket(AF_INET, block) ... lskt shutdown poll chk OK 22: socket(AF_INET, block) ... lskt shutdown epoll chk OK 36: socket(AF_INET, nblock) ... lskt poll shutdown chk OK 37: socket(AF_INET, nblock) ... rskt poll shutdown chk OK 38: socket(AF_INET, nblock) ... lskt epoll shutdown chk OK 39: socket(AF_INET, nblock) ... rskt epoll shutdown chk OK 42: socket(AF_INET, nblock) ... lskt shutdown poll chk OK 43: socket(AF_INET, nblock) ... lskt shutdown epoll chk OK shutdown() work every where! close() does not work. --=20 You are receiving this mail because: You are on the CC list for the bug.= From owner-freebsd-net@freebsd.org Thu Apr 5 23:47:00 2018 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 5CF50F8C18D for ; Thu, 5 Apr 2018 23:47:00 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id E585C77D65 for ; Thu, 5 Apr 2018 23:46:59 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id A35C8F8C189; Thu, 5 Apr 2018 23:46:59 +0000 (UTC) Delivered-To: net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 90D9BF8C187 for ; Thu, 5 Apr 2018 23:46:59 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 2D14277D62 for ; Thu, 5 Apr 2018 23:46:59 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id 3938018885 for ; Thu, 5 Apr 2018 23:46:58 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id w35Nkw8o063556 for ; Thu, 5 Apr 2018 23:46:58 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id w35Nkwb7063555 for net@FreeBSD.org; Thu, 5 Apr 2018 23:46:58 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: net@FreeBSD.org Subject: [Bug 227259] accept()/poll() and shutdown()/close() - not work as in FreeBSD10, may broke many apps Date: Thu, 05 Apr 2018 23:46:57 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 11.1-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: rozhuk.im@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Apr 2018 23:47:00 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D227259 --- Comment #7 from rozhuk.im@gmail.com --- DragonFly 5.0-RELEASE DragonFly v5.0.2-RELEASE #4: Sun Dec 3 17:42:25 EST 2017 ./acc_test | grep "chk OK" 0: socket(AF_INET, block) ... lskt accept shutdown chk OK, ret cod= e: 53 - Software caused connection abort 1: socket(AF_INET, block) ... rskt accept shutdown chk OK, ret cod= e: 53 - Software caused connection abort 4: socket(AF_INET, block) ... lskt poll shutdown chk OK 5: socket(AF_INET, block) ... rskt poll shutdown chk OK 16: socket(AF_INET, block) ... lskt shutdown accept chk OK, ret cod= e: 53 - Software caused connection abort 20: socket(AF_INET, block) ... lskt shutdown poll chk OK 36: socket(AF_INET, nblock) ... lskt poll shutdown chk OK 37: socket(AF_INET, nblock) ... rskt poll shutdown chk OK 42: socket(AF_INET, nblock) ... lskt shutdown poll chk OK --=20 You are receiving this mail because: You are on the CC list for the bug.= From owner-freebsd-net@freebsd.org Fri Apr 6 10:54:47 2018 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A67B1F9B68F for ; Fri, 6 Apr 2018 10:54:47 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 3B97273C51 for ; Fri, 6 Apr 2018 10:54:47 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id F11C3F9B68E; Fri, 6 Apr 2018 10:54:46 +0000 (UTC) Delivered-To: net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id DE788F9B68D for ; Fri, 6 Apr 2018 10:54:46 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 777F573C4F for ; Fri, 6 Apr 2018 10:54:46 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id BA2E11E4DE for ; Fri, 6 Apr 2018 10:54:45 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id w36Asjmp081978 for ; Fri, 6 Apr 2018 10:54:45 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id w36Asji1081977 for net@FreeBSD.org; Fri, 6 Apr 2018 10:54:45 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: net@FreeBSD.org Subject: [Bug 221919] ixl: TX queue hang when using TSO and having a high and mixed network load Date: Fri, 06 Apr 2018 10:54:39 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 11.1-STABLE X-Bugzilla-Keywords: IntelNetworking X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: krzysztof.galazka@intel.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: erj@freebsd.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Apr 2018 10:54:47 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D221919 Krzysztof Galazka changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |krzysztof.galazka@intel.com --- Comment #17 from Krzysztof Galazka --- The Phabricator review which should fix this issue: https://reviews.freebsd.org/D14985 --=20 You are receiving this mail because: You are on the CC list for the bug.= From owner-freebsd-net@freebsd.org Fri Apr 6 10:56:53 2018 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 7D2DCF9B8FA for ; Fri, 6 Apr 2018 10:56:53 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id CD22773E21 for ; Fri, 6 Apr 2018 10:56:52 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 913CFF9B8E9; Fri, 6 Apr 2018 10:56:52 +0000 (UTC) Delivered-To: net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 8013AF9B8E8 for ; Fri, 6 Apr 2018 10:56:52 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 1667B73E19 for ; Fri, 6 Apr 2018 10:56:52 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id 3B70D1E4E5 for ; Fri, 6 Apr 2018 10:56:51 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id w36Aunrd085018 for ; Fri, 6 Apr 2018 10:56:49 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id w36Aungg085016 for net@FreeBSD.org; Fri, 6 Apr 2018 10:56:49 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: net@FreeBSD.org Subject: [Bug 221530] if_ixl: add a way to disable/enable lldp handling by the NIC Date: Fri, 06 Apr 2018 10:56:48 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: IntelNetworking, patch X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: krzysztof.galazka@intel.com X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: net@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Apr 2018 10:56:53 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D221530 --- Comment #6 from Krzysztof Galazka --- The review which add this feature to in-kernel driver: https://reviews.freebsd.org/D14985 --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-net@freebsd.org Fri Apr 6 10:59:08 2018 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 157BEF9BCA6 for ; Fri, 6 Apr 2018 10:59:07 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 638CC740B2 for ; Fri, 6 Apr 2018 10:59:07 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 21D2BF9BCA0; Fri, 6 Apr 2018 10:59:07 +0000 (UTC) Delivered-To: net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 0E08AF9BC9E for ; Fri, 6 Apr 2018 10:59:07 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 93A78740AB for ; Fri, 6 Apr 2018 10:59:06 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id E86061E4EF for ; Fri, 6 Apr 2018 10:59:05 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id w36Ax5ID088311 for ; Fri, 6 Apr 2018 10:59:05 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id w36Ax5Am088310 for net@FreeBSD.org; Fri, 6 Apr 2018 10:59:05 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: net@FreeBSD.org Subject: [Bug 224116] [ixl] STP Frames are ignored in promiscuous mode Date: Fri, 06 Apr 2018 10:59:04 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 11.1-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: krzysztof.galazka@intel.com X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: erj@freebsd.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Apr 2018 10:59:08 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D224116 Krzysztof Galazka changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |krzysztof.galazka@intel.com --- Comment #18 from Krzysztof Galazka --- The fix for multicast promiscuous mode is included in this review: https://reviews.freebsd.org/D14985 --=20 You are receiving this mail because: You are on the CC list for the bug.= From owner-freebsd-net@freebsd.org Fri Apr 6 13:36:06 2018 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 90671F86528 for ; Fri, 6 Apr 2018 13:36:06 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 2153A7BF00 for ; Fri, 6 Apr 2018 13:36:06 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id D4CE0F86523; Fri, 6 Apr 2018 13:36:05 +0000 (UTC) Delivered-To: net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C0FC8F86522 for ; Fri, 6 Apr 2018 13:36:05 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 28D747BEF9 for ; Fri, 6 Apr 2018 13:36:05 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id 4E6191FB20 for ; Fri, 6 Apr 2018 13:36:04 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id w36Da4BZ081463 for ; Fri, 6 Apr 2018 13:36:04 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id w36Da4qx081462 for net@FreeBSD.org; Fri, 6 Apr 2018 13:36:04 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: net@FreeBSD.org Subject: [Bug 227259] accept()/poll() and shutdown()/close() - not work as in FreeBSD10, may broke many apps Date: Fri, 06 Apr 2018 13:36:03 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 11.1-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: emss@free.fr X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Apr 2018 13:36:06 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D227259 emss@free.fr changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |emss@free.fr --- Comment #8 from emss@free.fr --- Hello, Could this issue be related to https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D225863 please ? In last comment on https://freeswitch.org/jira/browse/FS-10580 M. Jerris st= ates the following : "so the way that is supposed to work is the close_socket(&listen_list.sock); line from the shutdown function would close the socket causing the accpet to stop blocking in the runtime function. For some reason that is not happenin= g. This is going to be something with either freebsd or your network settings = on the box causing that close to fail. I'm not sure how to troubleshoot that i= ssue further, but add some logging around that accept in the runtime and the clo= se in shutdown and look at open sockets and see what is happening at shutdown." --=20 You are receiving this mail because: You are on the CC list for the bug.= From owner-freebsd-net@freebsd.org Fri Apr 6 14:10:18 2018 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4F272F88B83 for ; Fri, 6 Apr 2018 14:10:18 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id C72217D70C for ; Fri, 6 Apr 2018 14:10:17 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 841B4F88B78; Fri, 6 Apr 2018 14:10:17 +0000 (UTC) Delivered-To: net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 44CECF88B75 for ; Fri, 6 Apr 2018 14:10:17 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id D0FE67D702 for ; Fri, 6 Apr 2018 14:10:16 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id 146031FF54 for ; Fri, 6 Apr 2018 14:10:16 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id w36EAFFp072046 for ; Fri, 6 Apr 2018 14:10:15 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id w36EAF6p072045 for net@FreeBSD.org; Fri, 6 Apr 2018 14:10:15 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: net@FreeBSD.org Subject: [Bug 227259] accept()/poll() and shutdown()/close() - not work as in FreeBSD10, may broke many apps Date: Fri, 06 Apr 2018 14:10:15 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 11.1-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: jtl@freebsd.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Apr 2018 14:10:18 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D227259 --- Comment #9 from Jonathan T. Looney --- My best guess is that this is due to a new check in soshutdown() added in stable/11: sys/kern/uipc_socket.c: 2351 if ((so->so_state & 2352 (SS_ISCONNECTED | SS_ISCONNECTING | SS_ISDISCONNECTING)= ) =3D=3D 0) { 2353 /* 2354 * POSIX mandates us to return ENOTCONN when shutdown(2) is 2355 * invoked on a datagram sockets, however historica= lly we would 2356 * actually tear socket down. This is known to be leveraged by 2357 * some applications to unblock process waiting in recvXXX(2) 2358 * by other process that it shares that socket with. Try to meet 2359 * both backward-compatibility and POSIX requiremen= ts by forcing 2360 * ENOTCONN but still asking protocol to perform pru_shutdown(). 2361 */ 2362 if (so->so_type !=3D SOCK_DGRAM) 2363 return (ENOTCONN); 2364 soerror_enotconn =3D 1; 2365 } I don't think I ever really considered someone calling shutdown() on a listening socket. I would have expected them to use close(). My guess is th= at whoever added this didn't consider that case, either. FWIW, this check was added in r285910. I suppose the simple fix is to add a check for SOLISTENING(so) (head) or so->so_options & SO_ACCEPTCON (stable/11). However, we should consult with someone to see what POSIX requires in this case. --=20 You are receiving this mail because: You are on the CC list for the bug.= From owner-freebsd-net@freebsd.org Sat Apr 7 14:18:25 2018 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 225C8F8BDF6 for ; Sat, 7 Apr 2018 14:18:25 +0000 (UTC) (envelope-from ml@netfence.it) Received: from soth.netfence.it (net-2-44-121-52.cust.vodafonedsl.it [2.44.121.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "mailserver.netfence.it", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 86BB37A03E for ; Sat, 7 Apr 2018 14:18:23 +0000 (UTC) (envelope-from ml@netfence.it) Received: from alamar.ventu (alamar.local.netfence.it [10.1.2.18]) (authenticated bits=0) by soth.netfence.it (8.15.2/8.15.2) with ESMTPSA id w37EI5Ut038945 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO); Sat, 7 Apr 2018 16:18:12 +0200 (CEST) (envelope-from ml@netfence.it) X-Authentication-Warning: soth.netfence.it: Host alamar.local.netfence.it [10.1.2.18] claimed to be alamar.ventu Subject: Re: Questions about ipfw's dynamic rules' dyn_keepalive To: "Andrey V. Elsukov" , freebsd-net@freebsd.org References: <04ad23ad-4020-7c07-8d75-eef6e84f4de8@netfence.it> <756b78e2-4e65-ab03-1e91-943a77fdf45d@yandex.ru> <25e56a77-8374-d273-0b5e-2f11c1b03ff8@yandex.ru> From: Andrea Venturoli Message-ID: <07ab14c5-466d-2d7e-9447-6b7d1e9bd823@netfence.it> Date: Sat, 7 Apr 2018 16:18:04 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <25e56a77-8374-d273-0b5e-2f11c1b03ff8@yandex.ru> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 07 Apr 2018 14:18:25 -0000 On 04/03/18 12:54, Andrey V. Elsukov wrote: > On 03.04.2018 13:45, Andrey V. Elsukov wrote: >>> Can anybody give any hint about the above behaviours or point me to good >>> documentation? The man pages is very brief on this, unfortunately. >> >> Hi, Thanks for your answer. >> ipfw uses M_SKIP_FIREWALL flag for self-generated packets. Thus >> keep-alive packets are sent bypass the rules. When you use NAT, I guess >> keep-alive packets have private source address, because they are not go >> through the NAT rule. And because of this remote host drops them without >> reply. If this is the reason, since I run tcpdump on the client (internal network) I should have seen them arriving, shouldn't I? > You can try this patch: > > https://people.freebsd.org/~ae/ipfw_bypass_own_packets11.diff > > It adds sysctl variable net.inet.ip.fw.bypass_own_packets, that can > control the behavior of M_SKIP_FIREWALL flag. It seems this is a patch against HEAD and it doesn't apply cleanly to 11.1R. Unfortunately the file it modifies seems to have changed a lot and I don't know how to adapt this. Is there a plan to get this patch in the source in the future? If not, why? Are there any disadvantages? bye & Thanks av. From owner-freebsd-net@freebsd.org Sat Apr 7 15:21:31 2018 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 1AAE3F9098D for ; Sat, 7 Apr 2018 15:21:31 +0000 (UTC) (envelope-from artemrts@ukr.net) Received: from frv190.fwdcdn.com (frv190.fwdcdn.com [212.42.77.190]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id AB4B57DB60 for ; Sat, 7 Apr 2018 15:21:30 +0000 (UTC) (envelope-from artemrts@ukr.net) Received: from [10.10.80.12] (helo=frv196.fwdcdn.com) by frv190.fwdcdn.com with esmtp ID 1f4pLF-000CnK-0V for freebsd-net@freebsd.org; Sat, 07 Apr 2018 18:01:21 +0300 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=ukr.net; s=ffe; h=Content-Type:MIME-Version:References:In-Reply-To:Message-Id:Cc:To: Subject:From:Date:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=ONyXiO3kmPyS6CJ8KWw6T2803frBHzdoblU4hYVLiAY=; b=neud86ElSogEmUsGEzdfFmWZR1 lP6abNGIPsuiMCySp3kvR/E2JqSk26Eehiv9Hf4vDQe2aNOF1pNSpYr4T43fzZttflGGDuocScMlm Dc+l6I8XHYkj9SjxcVrqoVeVhzNdI/iw/Nq/jXJOi+rnabzJpdzgwl5F0LNdb2ask1lY=; Received: from [10.10.10.52] (helo=frv52.fwdcdn.com) by frv196.fwdcdn.com with smtp ID 1f4pL7-000NEE-9P for freebsd-net@freebsd.org; Sat, 07 Apr 2018 18:01:13 +0300 Date: Sat, 07 Apr 2018 18:01:13 +0300 From: wishmaster Subject: Re[2]: Questions about ipfw's dynamic rules' dyn_keepalive To: ml@netfence.it Cc: freebsd-net@freebsd.org X-Mailer: mail.ukr.net 5.0 Message-Id: <1523113095.663460514.l5y2tucy@frv52.fwdcdn.com> In-Reply-To: <07ab14c5-466d-2d7e-9447-6b7d1e9bd823@netfence.it> References: <04ad23ad-4020-7c07-8d75-eef6e84f4de8@netfence.it> <756b78e2-4e65-ab03-1e91-943a77fdf45d@yandex.ru> <25e56a77-8374-d273-0b5e-2f11c1b03ff8@yandex.ru> <07ab14c5-466d-2d7e-9447-6b7d1e9bd823@netfence.it> X-Reply-Action: reply Received: from artemrts@ukr.net by frv52.fwdcdn.com; Sat, 07 Apr 2018 18:01:13 +0300 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: binary X-Content-Filtered-By: Mailman/MimeDel 2.1.25 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 07 Apr 2018 15:21:31 -0000 --- Original Message --- From: "Andrea Venturoli" Date: 7 April 2018, 17:19:00 > On 04/03/18 12:54, Andrey V. Elsukov wrote: > > On 03.04.2018 13:45, Andrey V. Elsukov wrote: > >>> Can anybody give any hint about the above behaviours or point me to good > >>> documentation? The man pages is very brief on this, unfortunately. > >> > >> Hi, > > Thanks for your answer. > > > > >> ipfw uses M_SKIP_FIREWALL flag for self-generated packets. Thus > >> keep-alive packets are sent bypass the rules. When you use NAT, I guess > >> keep-alive packets have private source address, because they are not go > >> through the NAT rule. And because of this remote host drops them without > >> reply. > > If this is the reason, since I run tcpdump on the client (internal > network) I should have seen them arriving, shouldn't I? > > > > > You can try this patch: > > > > https://people.freebsd.org/~ae/ipfw_bypass_own_packets11.diff > > > > It adds sysctl variable net.inet.ip.fw.bypass_own_packets, that can > > control the behavior of M_SKIP_FIREWALL flag. > > It seems this is a patch against HEAD and it doesn't apply cleanly to > 11.1R. Unfortunately the file it modifies seems to have changed a lot > and I don't know how to adapt this. > > Is there a plan to get this patch in the source in the future? > If not, why? Are there any disadvantages? I have tested this patch (with some modifications) and with this patch ipfw works as expected for users behind NAT without any side effects. --- Vitaly From owner-freebsd-net@freebsd.org Sat Apr 7 16:28:10 2018 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A586DF94D39 for ; Sat, 7 Apr 2018 16:28:10 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 34D6F82438 for ; Sat, 7 Apr 2018 16:28:10 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id EA37DF94D35; Sat, 7 Apr 2018 16:28:09 +0000 (UTC) Delivered-To: net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D8265F94D31 for ; Sat, 7 Apr 2018 16:28:09 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 6E24E82413 for ; Sat, 7 Apr 2018 16:28:09 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id 87C115CD7 for ; Sat, 7 Apr 2018 16:28:08 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id w37GS88I099593 for ; Sat, 7 Apr 2018 16:28:08 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id w37GS8IB099592 for net@FreeBSD.org; Sat, 7 Apr 2018 16:28:08 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: net@FreeBSD.org Subject: [Bug 227259] accept()/poll() and shutdown()/close() - not work as in FreeBSD10, may broke many apps Date: Sat, 07 Apr 2018 16:28:07 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 11.1-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: rozhuk.im@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 07 Apr 2018 16:28:10 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D227259 --- Comment #10 from rozhuk.im@gmail.com --- IMHO: - shutdown() and close() should wakes up all thread on all descriptors that wait blocking i/o. - shutdown() should generate EOF for all syscals: read()/recv/write()/send()/accept()/poll()/kqueue()/etc... - close() should generate BADFD for all syscals: read()/recv/write()/send()/accept()/poll() and kqueue() (on close kqueue fd) for all descriptors types See linux: if you call shutdown() then you know that everything wakes up, i= t is very useful. Well, at lest return old behavior from FreeBSD 10. --=20 You are receiving this mail because: You are on the CC list for the bug.= From owner-freebsd-net@freebsd.org Sat Apr 7 18:15:59 2018 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 50C02F9C34D for ; Sat, 7 Apr 2018 18:15:59 +0000 (UTC) (envelope-from 9rgeoc@gmail.com) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id DB4D876D6D for ; Sat, 7 Apr 2018 18:15:58 +0000 (UTC) (envelope-from 9rgeoc@gmail.com) Received: by mailman.ysv.freebsd.org (Postfix) id 994DCF9C34C; Sat, 7 Apr 2018 18:15:58 +0000 (UTC) Delivered-To: net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 5D424F9C34B for ; Sat, 7 Apr 2018 18:15:58 +0000 (UTC) (envelope-from 9rgeoc@gmail.com) Received: from mail-ua0-x22a.google.com (mail-ua0-x22a.google.com [IPv6:2607:f8b0:400c:c08::22a]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id F093876D50 for ; Sat, 7 Apr 2018 18:15:57 +0000 (UTC) (envelope-from 9rgeoc@gmail.com) Received: by mail-ua0-x22a.google.com with SMTP id u4so2628525uaf.10 for ; Sat, 07 Apr 2018 11:15:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=Zr6tysONVr3klY/M/AgnyVWj0FkRymk/QukwxJLzbd8=; b=OD8SDMeyKizOhHMF9Gi+7cHkadxtm1cSXBdwxQO193DQvvY/9gtMYyRS+cGLr7ic4w ElZLK6oDXzf3miLeBitV3pOLbuUtZsx3rpJnR6dafhlz3/QUTvuQ0VcL77ohf0vAH9Zu IBK7QPobZY7BGcHq3F7+soXgpMcl3eCbto2MWRA3kQcsrTGpUMxZJYVhebmixvoA97ip eC+9etD3ZPIs3PmhK7ptb+y7qbRU5a3SuKT6JEdERquJSOROpMfHAG0dAcRVfkWtITqD wfEBFm0WomoUMoKVFNaYv9eBNt0mWsZh+h0laIT1RPHoWGSMjADGuz3U7V+8qEJ/2G4u 3kKg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=Zr6tysONVr3klY/M/AgnyVWj0FkRymk/QukwxJLzbd8=; b=cWtj2ld39SrhqlblY2ywl3tUy01ZdYW4jy+j6BkYDYPYwEuiDYtOAAFC3TVF/PfsZo mPe9i+gti4Ryjpoejb7G44PKRw7ccR+WImngsLH4R75iI9crPE3QXKDaN4a4lU31H02R MHlQErP67/ds0VrfjWQxobnc1eRvvoyeWZZGFYZI8uJhiync6ZJLIW/n/Wzf9TlalVXr rE4pKoQC/hJpLCfnqQQf3dDfv0eu8sTqJzpPVl4bmdMYD3fQUhSQdEdQ7gfkmnCecro2 SsAqvaZxgGhlzJmU8+I/m05KVE6CYb9psDOOkbIKh4KtGB3PXY1WCfiYh7KykoPp5BYC sg9Q== X-Gm-Message-State: ALQs6tCIxowrILateY51Undnaf0Etn4zqo0Q1RN2tmnsBTWQs+Y82YwY FemQX48VxGz/tyCh80ihYChAATFnI0F1d74kQ1aqTA== X-Google-Smtp-Source: AIpwx48ztRW05HyUTSb7UEUtDef+AH3iNLZ+iQSVlD4I3PytsUf6C99LYkeWmLb7bUZ1uSqAmGLnd9uioT1+EmdE66U= X-Received: by 10.176.48.174 with SMTP id b14mr19261636uam.129.1523124957269; Sat, 07 Apr 2018 11:15:57 -0700 (PDT) MIME-Version: 1.0 Received: by 10.31.213.135 with HTTP; Sat, 7 Apr 2018 11:15:56 -0700 (PDT) From: Ralston Champagnie <9rgeoc@gmail.com> Date: Sat, 7 Apr 2018 13:15:56 -0500 Message-ID: Subject: Support for Dual NIC To: net@freebsd.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.25 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 07 Apr 2018 18:15:59 -0000 Hello Guys, Netmap natively support only the four ports NIC doesn't make sense when considering that dual NIC has the same exact chipset as the quad ones... Is there a patch available? Noticed problems with pictures or videos such as this with the dual (mine: Intel 82575) and IPS with lots of memory - 196.115874 [1071] netmap_grab_packets bad pkt at 445 1en 2164 Kind regards, Ralston From owner-freebsd-net@freebsd.org Sat Apr 7 21:02:10 2018 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 8317BF852E8 for ; Sat, 7 Apr 2018 21:02:10 +0000 (UTC) (envelope-from m.muenz@spam-fetish.org) Received: from mailout-02.maxonline.de (mailout-02.maxonline.de [81.24.66.23]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 6D781744F2 for ; Sat, 7 Apr 2018 21:02:08 +0000 (UTC) (envelope-from m.muenz@spam-fetish.org) Received: from web03-01.max-it.de (web03-01.max-it.de [81.24.64.215]) by mailout-02.maxonline.de (Postfix) with ESMTPS id 0806719 for ; Sat, 7 Apr 2018 22:52:10 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by web03-01.max-it.de (Postfix) with ESMTP id E993928B84D for ; Sat, 7 Apr 2018 22:52:09 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at web03-01.max-it.de Received: from web03-01.max-it.de ([127.0.0.1]) by localhost (web03-01.max-it.de [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id qgncpYvmKrxa for ; Sat, 7 Apr 2018 22:52:09 +0200 (CEST) Received: from [81.24.66.132] (unknown [81.24.66.132]) (Authenticated sender: m.muenz@spam-fetish.org) by web03-01.max-it.de (Postfix) with ESMTPA id BF3C628B84B for ; Sat, 7 Apr 2018 22:52:09 +0200 (CEST) Subject: Re: Support for Dual NIC To: freebsd-net@freebsd.org References: From: "Muenz, Michael" Message-ID: Date: Sat, 7 Apr 2018 22:52:08 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 07 Apr 2018 21:02:10 -0000 Am 07.04.2018 um 20:15 schrieb Ralston Champagnie: > Hello Guys, > > Netmap natively support only the four ports NIC doesn't make sense when > considering that dual NIC has the same exact chipset as the quad ones... > > Is there a patch available? Noticed problems with pictures or videos such > as this with the dual (mine: Intel 82575) and IPS with lots of memory - > 196.115874 [1071] netmap_grab_packets bad pkt at 445 1en 2164 > > > Kind regards, Ralston Hm, that might be the reason why my Intel X710 Dual SFP+ doesn't work when running Suricata with IPS / netmap.