From owner-freebsd-net@freebsd.org Thu May 21 09:22:01 2020 Return-Path: Delivered-To: freebsd-net@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 259C632EA70 for ; Thu, 21 May 2020 09:22:01 +0000 (UTC) (envelope-from ozkan.kirik@gmail.com) Received: from mail-vs1-xe29.google.com (mail-vs1-xe29.google.com [IPv6:2607:f8b0:4864:20::e29]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 49SPJm1641z4dyc for ; Thu, 21 May 2020 09:21:59 +0000 (UTC) (envelope-from ozkan.kirik@gmail.com) Received: by mail-vs1-xe29.google.com with SMTP id w65so3607797vsw.11 for ; Thu, 21 May 2020 02:21:59 -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=MZQZjo8IwTjANTw+WxY3OauWjjp390Q8uiJsX8s5Kl0=; b=BCPNTcePjMtA8YdAoX2Fc+SrfasAC8P4zwLxLn0vFq1qeKp9D55ekdFi32b0j5cJ4t EIj9m8zzCy1e1aJBlEUbnvF0ozeTtmXkhSOuMfTfw3nutUYoEihGpOv5iDBfwu5HAe+k efCa0dedLRhq16kyiA6Ij4HlXyuG8n/Ske5Ainjr7M1buSpH+7UOFuWvPIPLIjEGHfSF 0ezLLzCKC1VBC9rXa6FN/Z+crNmlixErfbMjVKUlJBVrqueyiodwSvqj1+3FhxZ+GWUc XBV6Wep+ochocZU3vjudPEaeJN4Z36OWwhWeB8FfNyTyVdZLJyxBzih2b34TMBh66evP wHMg== 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=MZQZjo8IwTjANTw+WxY3OauWjjp390Q8uiJsX8s5Kl0=; b=ZiHpvSfdZfphfE5a0uCRretPqNnnMvPUHGWn5s+heVs9woLaGy+uhq7wcYdfBbCzFn zzQ0YYcCf8uKDclnSs/T+NOT1ohGWxEj4JBd569zdRBJZMooEGLOsWCag8kcWf4u2yJS mZyZCSl0y2i8l/69uDHkDSIQq5TqN8Nd0zytXjC14RK8fqXp3Zx8g/4Zofbo2TLRAtk/ wrA9UwsJEDMT91zYD/VeDMnzft8RtMaVt3DAADW8jrIo/1cNwrqQUNGaUJHKHUYGgXdq I41Wivh6xnh6Qt9IopKM31S5/eCixPLnJoQceWH1C87VrNDRv02f5/iHxreQrqhIvusK Eilg== X-Gm-Message-State: AOAM5317n0dPBzaCLB/CTpscIuMwmTF8OExu+VqkofHVdu0tgxkp92zz +plGu4KbjrINUutAMFk2oY7Gwr+RsTuMjZ8MVAoNiHNF7qs= X-Google-Smtp-Source: ABdhPJwCeGo3DTQqkocVNBD/+VOmzcoijfKqW6i4qChl45KFeH4P6Vz4+SGuPBD/I8f0Ehy4TmTNlZgYujnkfIjFYec= X-Received: by 2002:a05:6102:3012:: with SMTP id s18mr6672364vsa.76.1590052918825; Thu, 21 May 2020 02:21:58 -0700 (PDT) MIME-Version: 1.0 From: =?UTF-8?B?w5Z6a2FuIEtJUklL?= Date: Thu, 21 May 2020 12:21:48 +0300 Message-ID: Subject: How to force Multicast VIF disable To: freebsd-net@freebsd.org X-Rspamd-Queue-Id: 49SPJm1641z4dyc X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=BCPNTceP; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of ozkankirik@gmail.com designates 2607:f8b0:4864:20::e29 as permitted sender) smtp.mailfrom=ozkankirik@gmail.com X-Spamd-Result: default: False [0.80 / 15.00]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36:c]; FREEMAIL_FROM(0.00)[gmail.com]; TO_DN_NONE(0.00)[]; URI_COUNT_ODD(1.00)[1]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; TAGGED_FROM(0.00)[]; R_MIXED_CHARSET(0.62)[subject]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.58)[-0.578]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-0.49)[-0.485]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-net@freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_SPAM_SHORT(0.24)[0.238]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::e29:from]; HTTP_TO_IP(1.00)[]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[] Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.33 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.33 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, 21 May 2020 09:22:01 -0000 Hello, I'm using FreeBSD 12.1-STABLE. After restarting multicast routing daemon, daemon can't start with this error: "Failed adding VIF 1 (MRT_ADD_VIF) for iface em1: Address already in use". pimd tries to disable all vifs from kernel (shown in output below) but still throws same error. I tried with both mrouted and pimd. Both of them shows same behaviour. My opinion is kernel doesn't disable VIFs. Is there any tool to disable all VIFs in kernel ? # pimd -N -d -s debug debug level 0xffffffff (dvmrp_detail,dvmrp_prunes,dvmrp_routes,dvmrp_neighbors,dvmrp_timers,igmp_p= roto,igmp_timers,igmp_members,trace,timeout,packets,interfaces,kernel,cache= ,rsrr,pim_detail,pim_hello,pim_register,pim_join_prune,pim_bootstrap,pim_as= serts,pim_cand_rp,pim_routes,pim_timers,pim_rpf) 11:52:23.035 pimd version 2.3.2 starting ... 11:52:23.035 Got 262144 byte send buffer size in 0 iterations 11:52:23.035 Got 262144 byte recv buffer size in 0 iterations 11:52:23.035 Got 262144 byte send buffer size in 0 iterations 11:52:23.035 Got 262144 byte recv buffer size in 0 iterations 11:52:23.035 Getting vifs from kernel 11:52:23.035 Installing em0 (10.2.4.20 on subnet 10.2.4/24) as vif #0 - rate 0 11:52:23.035 Installing em1 (192.168.58.1 on subnet 192.168.58) as vif #1 - rate 0 11:52:23.035 Installing em2 (192.168.59.1 on subnet 192.168.59) as vif #2 - rate 0 11:52:23.035 Installing em1.1600 (192.168.16.1 on subnet 192.168.16) as vif #3 - rate 0 11:52:23.035 Installing em1.1700 (192.168.17.1 on subnet 192.168.17) as vif #4 - rate 0 11:52:23.035 Disabling all vifs from kernel 11:52:23.035 Getting vifs from /usr/local/etc//pimd.conf 11:52:23.035 Local Cand-BSR address 192.168.59.1, priority 5 11:52:23.035 Local Cand-RP address 192.168.59.1, priority 20, interval 30 sec 11:52:23.035 spt-threshold packets 0 interval 100 11:52:23.035 Local static RP: 169.254.0.1, group 232.0.0.0/8 11:52:23.035 IGMP query interval : 12 sec 11:52:23.035 IGMP querier timeout : 41 sec 11:52:23.035 Interface em0 is DISABLED; vif #0 out of service 11:52:23.035 **Failed adding VIF 1 (MRT_ADD_VIF) for iface em1: Address already in use**