From owner-freebsd-net@FreeBSD.ORG Tue Mar 26 11:59:38 2013 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id AA61EC75 for ; Tue, 26 Mar 2013 11:59:38 +0000 (UTC) (envelope-from sinkeyteck@yahoo.com) Received: from nm25.bullet.mail.bf1.yahoo.com (nm25.bullet.mail.bf1.yahoo.com [98.139.212.184]) by mx1.freebsd.org (Postfix) with ESMTP id 3AEB77B6 for ; Tue, 26 Mar 2013 11:59:37 +0000 (UTC) Received: from [98.139.212.147] by nm25.bullet.mail.bf1.yahoo.com with NNFMP; 26 Mar 2013 11:59:31 -0000 Received: from [98.139.212.226] by tm4.bullet.mail.bf1.yahoo.com with NNFMP; 26 Mar 2013 11:59:31 -0000 Received: from [127.0.0.1] by omp1035.mail.bf1.yahoo.com with NNFMP; 26 Mar 2013 11:59:31 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 595129.28770.bm@omp1035.mail.bf1.yahoo.com Received: (qmail 65002 invoked by uid 60001); 26 Mar 2013 11:59:31 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1364299170; bh=1S3aJouYUXfBSvu3ccDf7oSkEgxNyKUCxu9uC4mnpp4=; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-RocketYMMF:X-Mailer:Message-ID:Date:From:Subject:To:Cc:MIME-Version:Content-Type; b=vABZeldee6JQAj0/LxYXxZ4GXXHn1DcuvNUeohu84IkIPRt5N/i2kr2w5l+RN8recC6fF3qokvQwu+YCga3YcZSNxCIuN6zxcYcIoetbuFkarUoOcb86hy5p6rXfSm4bBZK6YA1FAVAzpUdpwUzKTHvJpHyrFXiooRd4PSbuw/M= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-RocketYMMF:X-Mailer:Message-ID:Date:From:Subject:To:Cc:MIME-Version:Content-Type; b=nOTJAn1SNXZNWX71X9m8qVgtJAYOH1j+v1Tcd9GMMo7c+wzbTbPmUmiSpaGfKxdHEGL7GbWaLONitAacEz5+oo03ncdFOnclUaCxMm83ar7iLqfWshzBUNFvugfl0DaKGFbUt7UgWBLpUhcsFn1WZI8gcYmiTT5hi/U04Rvt61o=; X-YMail-OSG: H0Bj2OIVM1mUo6JEEMESnroSoqy37d.dXPS9QC0QvlSAvp0 lrzzBM1F.xpNIicBrrYj1eMyiU8C4yj6YWY4F41Y5Q1YogRuaEpa9VOJT5OY oaEUQBrvO6wfBsHq7KqExV.KPUAnZ2ireWfvYmWXd82k36KktbSyVejk8Gtv ius84CqBY9651OD46h9WqeM2FjBdlCSver7sn_5jaP3Yh6C_obiadaQYDtAb JAeWNpLgbNUO5Cbhxes0txTzbcoPtAGduLRg5DaBbS1DJgvA.ORFHvftBA9R LgxvIFBlDtTiUisNEAhzfDLASFOWmR_5Z8ef..baoR7WwEHggVpXZOEfsNTS qNu_PIfHhH4WXqf7IThPFg7vpW6o67FCS_b6kCMEuz4jwUWrV7F9qM6F11VI owOlprjd9FRbAWf9mVDEghnlCh3yeWJ811MJ6cJqf_zQazDsEQOJhpoKlzgq dq.S57T_hH2VtwvQLqdhXi3jJJ_7rgWXpAQeMFzAlJ8kE2YE2VzOhkAO80w- - Received: from [49.125.183.152] by web31816.mail.mud.yahoo.com via HTTP; Tue, 26 Mar 2013 04:59:30 PDT X-Rocket-MIMEInfo: 002.001, SG93IGRvIHlvdSBjb25maWd1cmUgeW91ciBuZXR3b3JrIGludGVyZmFjZXM_IFVzaW5nIC9ldGMvc3RhcnRfaWYqIG9yIC9ldGMvcmMuY29uZj88YnIvPgEwAQEBAQ-- X-RocketYMMF: sinkeyteck X-Mailer: YahooMailWebService/0.8.139.530 Message-ID: <1364299170.64928.iosMobile@web31816.mail.mud.yahoo.com> Date: Tue, 26 Mar 2013 04:59:30 -0700 (PDT) From: ktsin@acm.org Subject: Re: ntpd bind() failure: Can't assign requested address To: "lars@netapp.com" , "schrodinger@konundrum.org" MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: "freebsd-net@freebsd.org" X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.14 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, 26 Mar 2013 11:59:38 -0000 How do you configure your network interfaces? Using /etc/start_if* or /etc/rc.conf?
From owner-freebsd-net@FreeBSD.ORG Tue Mar 26 13:07:41 2013 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 401B817D for ; Tue, 26 Mar 2013 13:07:41 +0000 (UTC) (envelope-from devel@stasyan.com) Received: from mx.providersolutions.ru (mx.providersolutions.ru [89.253.252.22]) by mx1.freebsd.org (Postfix) with ESMTP id 827C6C24 for ; Tue, 26 Mar 2013 13:07:39 +0000 (UTC) Received: (qmail 5406 invoked from network); 26 Mar 2013 13:07:27 -0000 Received: from unknown (HELO mx.providersolutions.ru) ([89.253.252.14]) by 89.253.252.22 with SMTP; 26 Mar 2013 13:07:27 -0000 Received: from b-internet.212.164.232.186.nsk.rt.ru (b-internet.212.164.232.186.nsk.rt.ru [212.164.232.186]) by rsnx.ru (Horde Framework) with HTTP; Tue, 26 Mar 2013 16:07:27 +0300 Message-ID: <20130326160727.18585l7sz9gql027@webmail01.providersolutions.ru> Date: Tue, 26 Mar 2013 16:07:27 +0300 From: devel@stasyan.com To: "Alexander V. Chernikov" Subject: Re: ng_netflow patch for AS filling References: <201303261714.49770.devel@stasyan.com> <51517CBD.8080805@FreeBSD.org> In-Reply-To: <51517CBD.8080805@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain; charset=windows-1251; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable User-Agent: Internet Messaging Program (IMP) H3 (4.3) Cc: freebsd-net@freebsd.org X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.14 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, 26 Mar 2013 13:07:41 -0000 >> Patch for injecting information network->as_number from extrernal >> sources (RIPE database, for example) into kernel and filling src and dst >> AS-number in Netflow v5 datagrams. > +=09o1=3D(htonl(rec->src_addr)>>24)&0xFF; > +=09o2=3D(htonl(rec->src_addr)>>16)&0xFF; > +=09o3=3D(htonl(rec->src_addr)>>8)&0xFF; > +=09o4=3D(htonl(rec->src_addr))&0xFF; > +=09a1=3DGetAsnumber(aaa,o1,o2,o3,o4); > Why do you need o* here? Per-byte presentation of IPV4-address required because scheme of =20 storing based on it. > Why not using in_addr in GetAsnumber()? > Why you are using 255 as multiplier ? 255 - width of array. It's access to two-dimensonal array. > MALLOC(asn[255*i1+i2].ptr_low,struct ascelllow*, sizeof(struct > ascelllow),M_NETFLOW_HASH,M_NOWAIT); > ^^ malloc() with M_WAITOK can be used here. Ok, will be done. > You should support at least loading 32-bit ASNs (and convert them to > 23456 for v5 export). Ok, will be done. > + case NGM_NETFLOW_DELETENETFROMAS: > + { > + break; > + } > You should probably support deleting prefixes :) "Global" delete (when destroing node) support now. But "partial" =20 deleting support need too, you're right. > +struct ascellhigh { > +=09struct ascelllow*=09ptr_low; > +}; > > Do we need another layer here? Current scheme was optimized for fast_search/small_memory_utilization =20 for IPV4-table. I suppose that for IPV6 we need something another. > While v5 export supports IPv4 and 2-byte ASNs only it is probably much > better to include IPv6 support at least in NGM_ messages ( like > ng_ksocket do ).