From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Dumazet Subject: Re: regression when connecting to ipv6 localhost Date: Mon, 15 Oct 2012 07:42:33 +0200 Message-ID: <1350279753.21172.17290.camel@edumazet-glaptop> References: <1350242941.21172.17023.camel@edumazet-glaptop> <1350244485.21172.17077.camel@edumazet-glaptop> <1350246314.21172.17139.camel@edumazet-glaptop> <1350246414.21172.17144.camel@edumazet-glaptop> <1350246481.21172.17147.camel@edumazet-glaptop> <1350248858.21172.17197.camel@edumazet-glaptop> <1350250542.21172.17229.camel@edumazet-glaptop> <1350252091.21172.17257.camel@edumazet-glaptop> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Cc: netdev@vger.kernel.org To: Jan Hinnerk Stosch Return-path: Received: from mail-wi0-f178.google.com ([209.85.212.178]:50913 "EHLO mail-wi0-f178.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752281Ab2JOFmh (ORCPT ); Mon, 15 Oct 2012 01:42:37 -0400 Received: by mail-wi0-f178.google.com with SMTP id hr7so1599410wib.1 for ; Sun, 14 Oct 2012 22:42:35 -0700 (PDT) In-Reply-To: Sender: netdev-owner@vger.kernel.org List-ID: On Mon, 2012-10-15 at 00:11 +0200, Jan Hinnerk Stosch wrote: > 2012/10/15 Eric Dumazet : > > Please add -f to follow children > > > > strace -o /tmp/STRACE -f /usr/bin/ntpd -g -u ntp:ntp > > > > > > Ok, done. # grep bind STRACE 12928 bind(16, {sa_family=AF_INET, sin_port=htons(123), sin_addr=inet_addr("0.0.0.0")}, 16) = 0 12928 bind(17, {sa_family=AF_INET6, sin6_port=htons(123), inet_pton(AF_INET6, "::", &sin6_addr), sin6_flowinfo=0, sin6_scope_id=0}, 28) = 0 (These two binds are the wildcards to drop ipv4/ipv6 packets sent on other addresses than the following :) 12928 bind(18, {sa_family=AF_INET, sin_port=htons(123), sin_addr=inet_addr("127.0.0.1")}, 16) = 0 12928 bind(19, {sa_family=AF_INET, sin_port=htons(123), sin_addr=inet_addr("192.168.178.27")}, 16) = 0 12928 bind(20, {sa_family=AF_INET6, sin6_port=htons(123), inet_pton(AF_INET6, "fe80::922b:34ff:fe33:c292", &sin6_addr), sin6_flowinfo=0, sin6_scope_id=if_nametoindex("eth0")}, 28) = 0 12928 bind(21, {sa_family=AF_NETLINK, pid=0, groups=00000771}, 12) = 0 So ntpd doesnt listen on ntp messages sent on ::1