X-Scanned-BY: MIMEDefang 2.67 on 10.5.11.12 CC: Pavel Simerda MIME-Version: 1.0 In-Reply-To: X-Spam-Status: No, score=-5.0 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS,T_FRT_STOCK2 autolearn=ham version=3.3.1 X-DCC-Wuwien-Metrics: post.isc.org 1290; Body=1 Fuz1=1 Fuz2=1 References: <5231E416.1060401@redhat.com> Message-ID: <523FFBB7.4030109@redhat.com> Content-Type: text/plain; charset=UTF-8; format=flowed X-RT-Original-Encoding: utf-8 Received: from mx.pao1.isc.org (mx.pao1.isc.org [149.20.64.53]) by bugs.isc.org (Postfix) with ESMTP id 150012D20051 for ; Mon, 23 Sep 2013 08:28:55 +0000 (UTC) Received: from mx.pao1.isc.org (localhost [127.0.0.1]) by mx.pao1.isc.org (Postfix) with ESMTP id 4A825C941E for ; Mon, 23 Sep 2013 08:28:42 +0000 (UTC) (envelope-from jpopelka@redhat.com) Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mx.pao1.isc.org (Postfix) with ESMTP for ; Mon, 23 Sep 2013 08:28:42 +0000 (UTC) (envelope-from jpopelka@redhat.com) Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id r8N8Sfso012499 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Mon, 23 Sep 2013 04:28:41 -0400 Received: from zepelin.brq.redhat.com (zepelin.brq.redhat.com [10.34.4.75]) by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id r8N8Sek5025306; Mon, 23 Sep 2013 04:28:40 -0400 Delivered-To: dhcp-bugs@bugs.isc.org Subject: Re: [ISC-Bugs #34784] more 'dhclient -6' instances steal each other packets User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.0 Return-Path: X-Original-To: dhcp-bugs@bugs.isc.org Date: Mon, 23 Sep 2013 10:28:39 +0200 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mx.pao1.isc.org To: dhcp-bugs@isc.org Content-Transfer-Encoding: 7bit From: Jiri Popelka RT-Message-ID: Content-Length: 1452 First of all thank you for you reply ! On 09/22/2013 10:07 AM, Francis Dupont via RT wrote: > On Thu Sep 12 15:56:23 2013, jpopelka@redhat.com wrote: > > => a simple question: is the problem for multicast or > unicast packets (it should work for multicast packets > but for unicast packets it has no chance to work with > a single global socket bound to *.port)? Unicast I think - I've seen it with Reply in response to Renew/Rebind and on other machine (kernel) with Advertise. > => local_address* is for agents (i.e., relays and servers). > In fact this part of the code is essentially for agents. > >> I don't know the internals, so the patch can be completely wrong >> but up to now it's seemed to fix the problem and not cause any others. >> I'll update it if I find something better. > > => I am afraid it will break agents via the multicast receive. We already dropped it and have been using the following, i.e. binding to interface even for AF_INET6: +++ dhcp-4.2.5/common/socket.c @@ -245,7 +245,7 @@ if_register_socket(struct interface_info #if defined(SO_BINDTODEVICE) /* Bind this socket to this interface. */ - if ((local_family != AF_INET6) && (info->ifp != NULL) && + if (((do_multicast == 0)||(*do_multicast == 0)) && (info->ifp != NULL) && setsockopt(sock, SOL_SOCKET, SO_BINDTODEVICE, (char *)(info -> ifp), sizeof(*(info -> ifp))) < 0) { log_fatal("setsockopt: SO_BINDTODEVICE: %m"); regards, Jiri