Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 26 Mar 2013 04:59:30 -0700 (PDT)
From:      ktsin@acm.org
To:        "lars@netapp.com" <lars@netapp.com>, "schrodinger@konundrum.org" <schrodinger@konundrum.org>
Cc:        "freebsd-net@freebsd.org" <freebsd-net@freebsd.org>
Subject:   Re: ntpd bind() failure: Can't assign requested address
Message-ID:  <1364299170.64928.iosMobile@web31816.mail.mud.yahoo.com>

next in thread | raw e-mail | index | archive | help
How do you configure your network interfaces? Using /etc/start_if* or /etc/rc.conf?<br/>
From owner-freebsd-net@FreeBSD.ORG  Tue Mar 26 13:07:41 2013
Return-Path: <owner-freebsd-net@FreeBSD.ORG>
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 <freebsd-net@freebsd.org>; 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 <freebsd-net@freebsd.org>; 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" <melifaro@FreeBSD.org>
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 <freebsd-net.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/options/freebsd-net>,
 <mailto:freebsd-net-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-net>;
List-Post: <mailto:freebsd-net@freebsd.org>
List-Help: <mailto:freebsd-net-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-net>,
 <mailto:freebsd-net-request@freebsd.org?subject=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 ).





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1364299170.64928.iosMobile>