Re: OSPF socket error on "bge0" invalid argument

2016-12-30 Thread Ondrej Zajicek
On Sat, Dec 31, 2016 at 08:00:58AM +0700, David S. wrote: > Dear All, > > I have trouble to establish ospf on BIRD 1.6.3 using FreeBSD 11 amd64, here > is my topology and BIRD configuration: > > router-a -- router-b (directly connected use cat6) > > router-a: 10.22.40.17/30 > router-b: 10.22

Re: OSPF socket error on "bge0" invalid argument

2016-12-31 Thread Ondrej Zajicek
On Sat, Dec 31, 2016 at 10:42:26AM +0700, David S. wrote: > Hi Keenan and Ondrej, > > I already update the configuration as your advice but the still couldn't be > established, here is the new configuration: Hi You have 'type broadcast' set on router A while default is used on router B (which wo

Re: Upgrade to 1.6.3

2017-01-02 Thread Ondrej Zajicek
On Fri, Dec 30, 2016 at 04:53:52PM +0100, Michal wrote: > On 2016-12-30 13:30, Michal wrote: > >On 2016-12-30 13:26, Ondrej Zajicek wrote: > >>On Fri, Dec 30, 2016 at 01:13:59PM +0100, Michal wrote: > >>>Stupid... increasing read buffer helped of course > >>

Re: OSPF socket error on "bge0" invalid argument

2017-01-02 Thread Ondrej Zajicek
On Mon, Jan 02, 2017 at 01:33:57AM +0700, David S. wrote: > Hi, > > I tried to setup new environment using FreeBSD11 amd64 on vmware and > everything work without a problem, I didn't see any error or interface > issue like on routera and routerb. Let's say that new router we called it > routerc an

Re: old tools

2017-01-02 Thread Ondrej Zajicek
On Sat, Dec 31, 2016 at 06:18:22PM +0100, Robert Scheck wrote: > On Thu, 29 Dec 2016, Alexander Lazarev wrote: > > Tools in package are dated 2009, and there's no checking of aarch64 > > platform. But there is in last version of script. > > Sounds like an ancient version of autoconf/automake is us

Re: Errors like "bgp1: Error: Hold timer expired"

2017-01-05 Thread Ondrej Zajicek
On Thu, Jan 05, 2017 at 04:11:25PM +, Roger Whittaker wrote: > I'm trying to use bird to help prevent spam as described here: > > https://debian-administration.org/article/715/Preventing_SPAM_connections_with_bird > > I understand very little about BGP, so I'm really using that article > as a

Re: Errors like "bgp1: Error: Hold timer expired"

2017-01-05 Thread Ondrej Zajicek
On Thu, Jan 05, 2017 at 05:53:40PM +0100, Ondrej Zajicek wrote: > On Thu, Jan 05, 2017 at 04:11:25PM +, Roger Whittaker wrote: > > I'm trying to use bird to help prevent spam as described here: > > > > https://debian-administration.org/article/715/Preventing_

Re: OSPF socket error on "bge0" invalid argument

2017-01-14 Thread Ondrej Zajicek
On Sat, Jan 14, 2017 at 10:56:42AM +0100, Olivier Cochard-Labbé wrote: > FreeBSD's official bird port version is 1.6.0: If you are using bird 1.6.3, > this mean you're using your own upgraded version of bird. > But take care to use the UDP RAW socket bird patch from the FreeBSD port > [2] if you ar

Re: Use Variables / Defines in include statements

2017-01-17 Thread Ondrej Zajicek
On Tue, Jan 17, 2017 at 01:00:57PM +0100, Jan Matejka wrote: > On 01/17/2017 11:03 AM, Tim Weippert wrote: > > Hi, > > > > i currently try to do different includes, based on an variable/define > > within the config. > > > > for example: > > > > function test(int asn) { > > > > [ do something

Re: Re-set-ing constants/variables

2017-01-19 Thread Ondrej Zajicek
On Wed, Jan 18, 2017 at 06:20:53PM +0100, Maximilian Wilhelm wrote: > Hi, > > Are there any means to build something like that? Like having some > defaults in the main config and re-set these values later on (in other > config snippets)? If I would generate the defines by a script I would > have

Re: full route table

2017-01-19 Thread Ondrej Zajicek
On Wed, Jan 18, 2017 at 03:19:09AM +, OUYANG JUNJIE wrote: > hi. > > I'm looking for a way to import mrt data into bird. I fount two Global > options (mrtdump "filename" & mrtdump protocols all|off|{ states|messages [, > ...] }), but I don't know how to use it... if anyone knows, can you he

Re: [PATCH] protocol aggregation

2017-01-24 Thread Ondrej Zajicek
On Sun, Jan 22, 2017 at 11:09:35PM +0300, Alexander V. Chernikov wrote: > Hello list, > > Here is the last photo agg diff, based on bird 1.6.3. Hello Thanks for the patch. Hopefully, i will finally get to merge it. -- Elen sila lumenn' omentielvo Ondrej 'Santiago' Zajicek (email: santi...@cr

Re: print and bgp_large_community

2017-01-24 Thread Ondrej Zajicek
On Tue, Jan 24, 2017 at 02:02:39PM +0100, Robert Sander wrote: > Hi, > > I need to print the bgp_large_community for debugging purposes but all I > get is the output "(lclist )". > > Are these list not printable? Hi Works for me: filter/test.conf : ... ll = --- empty ---; ll = add(ll, (t

Re: print and bgp_large_community

2017-01-24 Thread Ondrej Zajicek
On Tue, Jan 24, 2017 at 02:27:11PM +0100, Robert Sander wrote: > In a function in a filter like this: > > print bgp_community; > print bgp_large_community; > > Self defined variables like "lc set test" can be printed with > > print test; > > without issues. > > Wait a minute. If I only get "(l

Re: [PATCH] Fix filter comparison when using !~

2017-01-24 Thread Ondrej Zajicek
On Tue, Jan 24, 2017 at 03:12:40PM +0100, Vincent Bernat wrote: > From: Vincent Bernat > > When BIRD compares a filter using the `!~`, we get: > > Unknown instruction 8574 in same (~) > > This is due to the missing case for the `!~` operator. Add it. Thanks, merged. -- Elen sila lumenn'

Re: print and bgp_large_community

2017-01-25 Thread Ondrej Zajicek
On Tue, Jan 24, 2017 at 03:31:00PM +0100, Robert Sander wrote: > On 24.01.2017 15:13, Ondrej Zajicek wrote: > > > Well i see two routes here, one from ospf1 and one from static_bgp. Don't > > you apply the filter just for the first one? That would be true in say > >

Re: Administrative distance

2017-02-02 Thread Ondrej Zajicek
On Thu, Feb 02, 2017 at 02:03:51PM +0500, Михаил Хотько wrote: > Hi all, does bird allowes multipath default route? > Something like that: > > protocol static { > route 0.0.0.0/32 multipath > via 10.4.50.200 weight 1 > via 10.4.50.100 weight 2; > route 1.0.0.0/32 via 10.4.50.1; > } Ye

Re: OSPF ptmp

2017-02-07 Thread Ondrej Zajicek
On Sun, Feb 05, 2017 at 09:38:20AM +, Борис Коваленко wrote: > Hello! > > Trying to run bird on ethernet interface with type = ptmp. Yes, I know that > ethernet is broadcast interface, but there is a good practice to use ptmp > on ethernet. I found a strange bug. When type = ptmp, bird sends o

Re: Wrong default route announced with OSPF

2017-02-07 Thread Ondrej Zajicek
On Sun, Feb 05, 2017 at 09:05:10PM +0100, Thomas Berger wrote: > Hi all, > > we have a strange issue with bird and OSPF: > > We have set up a two redundant firewall clusters, one for external and one > for > internal routing. > > The setup is working well, as long as only the active external

Re: Administrative distance

2017-02-07 Thread Ondrej Zajicek
On Fri, Feb 03, 2017 at 10:07:49AM +0500, Михаил Хотько wrote: > Okay, do u know what means "!" in show routes? We run bird 1.5.0 on busybox > for routing management, and when I add multipath default route bird marks > it with "!" and routes doesnt go to kernel. Hello Mark "!" means that BIRD fail

Re: FreeBSD ECMP Bird OSPF

2017-02-16 Thread Ondrej Zajicek
On Wed, Feb 15, 2017 at 09:26:30AM -0200, Cassiano Peixoto wrote: > Hi guys, > > Anyone knows if Bird OSPF supports FreeBSD ECMP (RADIX_MPATH kernel option)? No, it is not implemented. -- Elen sila lumenn' omentielvo Ondrej 'Santiago' Zajicek (email: santi...@crfreenet.org) OpenPGP encrypted e

Re: Invalid example for RIPv2 in User's Guide

2017-02-17 Thread Ondrej Zajicek
On Fri, Feb 17, 2017 at 03:37:28PM +0800, Steve Leung wrote: > http://bird.network.cz/?get_doc&f=bird-6.html#ss6.10 > > In the link above, the RIP section's example will return config error in > bird v1.6.3. Is this an outdated example for older version of bird? Yes, it is for pre-1.6.x versions.

Re: Route attributes overwritten during reconfiguration

2017-02-17 Thread Ondrej Zajicek
On Fri, Feb 17, 2017 at 09:06:55AM +0200, Lennert Buytenhek wrote: > Hello! > > I work with João and I managed to cut our (huge) config down to a > minimal reproducer. Our setup does something like this: Hi Thanks for trying to track the problem. > There seems to be a problem related to the m

Re: Remove Private As Example

2017-02-17 Thread Ondrej Zajicek
On Fri, Feb 17, 2017 at 09:39:09AM -0600, Michael McConnell wrote: > Hello Daz, > > As far as I know there is no single command equivalent in bird, however you > can achieve basically the same by running these commands in a filter > > > export filter { > if (source net = 22.23.24.25/23 )

Re: Route attributes overwritten during reconfiguration

2017-02-17 Thread Ondrej Zajicek
On Fri, Feb 17, 2017 at 09:57:41PM +0200, Lennert Buytenhek wrote: > On Fri, Feb 17, 2017 at 02:22:11PM +0100, Ondrej Zajicek wrote: > > > I think that the reconfiguration code finds the old and the new implicit > > > filter expression to be the same code, and therefo

Re: Route attributes overwritten during reconfiguration

2017-02-17 Thread Ondrej Zajicek
On Fri, Feb 17, 2017 at 09:20:45PM +0100, Ondrej Zajicek wrote: > On Fri, Feb 17, 2017 at 09:57:41PM +0200, Lennert Buytenhek wrote: > > On Fri, Feb 17, 2017 at 02:22:11PM +0100, Ondrej Zajicek wrote: > > > > I think that the reconfiguration code finds the old and the new im

Re: FreeBSD ECMP Bird OSPF

2017-02-18 Thread Ondrej Zajicek
On Fri, Feb 17, 2017 at 11:53:33PM +0200, Sami Halabi wrote: > בתאריך 16 בפבר׳ 2017 07:39 PM,‏ "Ondrej Zajicek" > > On Wed, Feb 15, 2017 at 09:26:30AM -0200, Cassiano Peixoto wrote: > > > Hi guys, > > > > > > Anyone knows if Bird OSPF suppor

Re: [PATCH,RFC] Allow exchanging LOCAL_PREF with eBGP peers.

2017-02-18 Thread Ondrej Zajicek
On Sat, Feb 18, 2017 at 05:41:07AM +0200, Lennert Buytenhek wrote: > Hello! > > I've attached a patch that allows (selectively) exchanging LOCAL_PREF > with eBGP peers. > > The BGP RFC (RFC4271) says that you shouldn't send LOCAL_PREF to eBGP > peers, but most modern BGP implementations have an o

Re: bit operators

2017-02-18 Thread Ondrej Zajicek
On Sat, Feb 18, 2017 at 06:52:56PM +, Борис Коваленко wrote: > Hello! > > I have an idea to write common filters like > > define RF_REDISTRIBUTE_CONNECTED 0x10 > define RF_REDISTRIBUTE_STATIC 0x20 > . > > protocol ospf main_ospf { > export where f_main_ospf_e(RF_REDISTRIBUTE_CONNECTED |

Re: OSPF ptmp

2017-02-19 Thread Ondrej Zajicek
On Sun, Feb 19, 2017 at 05:47:16AM +, Борис Коваленко wrote: > Hello, Ondrej! Hello > There was something wrong with my previous test. So I did new one. > > Answering your questions: > > 1) Where interface is broadcast and mode is ptmp - bird does not send > any packet (checked with tcpdump

Re: [PATCH,RFC] Allow exchanging LOCAL_PREF with eBGP peers.

2017-02-23 Thread Ondrej Zajicek
On Mon, Feb 20, 2017 at 06:08:41AM +0200, Lennert Buytenhek wrote: > > I think it is a useful feature. But rx/tx values seems like a bit > > overengineering. If for some obscure reason someone wants it just > > one way, it can easily be done in filters. > > Good point, I agree. Here's v2, also wi

Re: iBGP - Simple static route exchange

2017-02-23 Thread Ondrej Zajicek
On Thu, Feb 23, 2017 at 02:45:34PM +0100, Cedric Lemarchand wrote: > Hello, > > I am trying to distribute 2 static routes between 2 hosts, not directly > connected, and I am having hard time to make it works … > > host1 10.10.1.1 (eth0) own subnet 192.168.1.0/24 ( 192.168.1.1 on eth1) > host2 1

Re: [PATCH,RFC] Allow exchanging LOCAL_PREF with eBGP peers.

2017-02-23 Thread Ondrej Zajicek
On Thu, Feb 23, 2017 at 05:05:20PM +0200, Lennert Buytenhek wrote: > > The patch is OK, i will merge it. W.r.t. config option, what about 'allow > > bgp_local_pref'? That would make it consistent with BIRD name of the > > attribute and also with other options like 'default bgp_local_pref'. > > I h

Re: Version 2.0.0pre0

2017-02-23 Thread Ondrej Zajicek
On Thu, Feb 23, 2017 at 04:32:20PM +0100, Toke Høiland-Jørgensen wrote: > Ondrej Filip writes: > > > Dear BIRD users, > > it took us a very long time, but we are moving towards 2.0.x branch. > > Main feature of this branch is IPv4 and IPv6 integration. > > So has anything more happened with this

Re: [PATCH,RFC] Allow exchanging LOCAL_PREF with eBGP peers.

2017-02-23 Thread Ondrej Zajicek
On Thu, Feb 23, 2017 at 04:09:28PM +0100, Ondrej Zajicek wrote: > On Thu, Feb 23, 2017 at 05:05:20PM +0200, Lennert Buytenhek wrote: > > > The patch is OK, i will merge it. W.r.t. config option, what about 'allow > > > bgp_local_pref'? That would make it c

Re: iBGP - Simple static route exchange

2017-02-23 Thread Ondrej Zajicek
On Thu, Feb 23, 2017 at 04:42:50PM +0100, Cedric Lemarchand wrote: > Yes, I am not sure to understand how plays theses options (and if I need it) > in the bgp protocol and it they are related to my problem : > > gateway recursive : means that if host2 advertise "route 192.168.2.0/24 > via 10.10

Re: Will bird block on syslog() call?

2017-02-24 Thread Ondrej Zajicek
On Fri, Feb 24, 2017 at 01:13:55PM +0100, Pavlos Parissis wrote: > Hi, > > We have observed some instability on BFD protocol, where upstream router > and/or > the server (Linux RedHat 7.3) declares the BFD session dead and as consequence > upstream router stops forwarding traffic to the server (w

Re: OSPF ptmp

2017-02-27 Thread Ondrej Zajicek
On Sat, Feb 25, 2017 at 06:38:24AM +, Борис Коваленко wrote: > пн, 20 февр. 2017, 9:06 Борис Коваленко : > > 1) No, there are no incoming HELLOs in log Hi That looks strange. Could you send me output of tcpdump (with Hello packets from the other side), config file and output of 'show interf

Re: Will bird block on syslog() call?

2017-02-27 Thread Ondrej Zajicek
On Fri, Feb 24, 2017 at 08:48:48PM +0100, Pavlos Parissis wrote: > On 24/02/2017 04:12 μμ, Ondrej Zajicek wrote: > > I would suggest to decrease min rx/tx interval to 100 ms (to see if that > > helps). > > If the hypothesis holds true, that is Bird blocks for 1.2secs

Re: Adding a grammar rule with conditional compilation

2017-02-27 Thread Ondrej Zajicek
On Sat, Feb 25, 2017 at 09:59:30PM +0100, Dean wrote: > Hello, > > I'm modifying some parts of the code, and I've added a new grammar rule for > creating static routes in the config.Y file. > > However, I would like this rule to only be enabled based on a preprocessor > definition, with an #ifdef

Re: Adding more then one bgp community at once

2017-02-27 Thread Ondrej Zajicek
On Mon, Feb 27, 2017 at 08:04:41AM +, Борис Коваленко wrote: > Hello! > > > Is this possible to add many communites at once? > bgp_community.add([(1,1), (1,2)]) is wrong "Setting clist attribute to > non-clist value" No, this is not implemented (although it makes sense). You have to add each

Re: filters, line 1360: ~ applied on unknown type pair

2017-02-27 Thread Ondrej Zajicek
On Fri, Feb 24, 2017 at 08:36:39PM +0100, Job Snijders wrote: > Hi all, > > I see the following pop up in the syslog, over and over again: > > root@eunetworks-2:/etc/bird# tail -F /var/log/syslog | grep filters > Feb 24 19:34:32 eunetworks-2 bird: filters, line 1360: ~ applied on > u

Re: OSPF ptmp

2017-03-04 Thread Ondrej Zajicek
On Sat, Mar 04, 2017 at 06:19:54PM +, Борис Коваленко wrote: > Hello, Ondrej! > > Something strange. So, FreeBSD 11 with bird 1.6.3, and Mikrotik 6.38.3. As > said previous - no problems with broadcast mode. When PtP - no luck. OSPF > is running on em0.102 interface. FreeBSD IP is X.X.16.82, a

Re: OSPF ptmp

2017-03-05 Thread Ondrej Zajicek
On Sun, Mar 05, 2017 at 04:51:47AM +, Борис Коваленко wrote: > Hello, Ondrej! > > Ough. It was deep night when I returned to this problem. Of course you are > right. Here is info for ptmp. No packets from FreeBSD. Well, it is clear. Because PtMP mode in BIRD does not use multicast (as per RFC

Re: iBGP - Simple static route exchange

2017-03-05 Thread Ondrej Zajicek
On Sun, Mar 05, 2017 at 01:51:10PM +0100, Cedric Lemarchand wrote: > On host1 (10.10.1.1) : > > bird> show route all for 192.168.1.0/24 > 192.168.1.0/24 dev eth1 [direct1 13:44:52] * (240) > Type: device unicast univ >via 10.10.1.1 on eth0 [static1 13:44:52] (200) >

Re: Source Address Dependent Routing for BIRD

2017-03-05 Thread Ondrej Zajicek
On Sun, Mar 05, 2017 at 07:39:57PM +0100, Dean wrote: > Hello, > > I have been working on implementing SADR (Source Address Dependent Routing) > in BIRD for the static and OSPFv3 protocols. Interesting. How it works? > What's the procedure for publishing the code? Should I put it on a > reposito

Re: Source Address Dependent Routing for BIRD

2017-03-05 Thread Ondrej Zajicek
On Sun, Mar 05, 2017 at 09:21:43PM +0100, Dean wrote: > About the patch: it might be a little long, about 60 commits. And I > started working last year, on BIRD 1.6.2, so some things might be > different. Should I still just send each commit one by one here? Generally, commits that are series of w

Re: Some autoconf cleanups

2017-03-06 Thread Ondrej Zajicek
On Sat, Mar 04, 2017 at 06:13:16PM +0100, Ruben Kerkhof wrote: > The goal of this series is to make it possible to run autoreconf on a git > checkout. > > It does this by moving configure.in to configure.ac and fixes deprecation > warnings > and errors generated by autoheader. Hi Thanks for th

Re: [PATCH 1/9] Adding configuration option --enable-sadr.

2017-03-07 Thread Ondrej Zajicek
On Tue, Mar 07, 2017 at 12:56:25AM +0100, Dean Luga wrote: > From: dean > > It compiles with the macro SADR_OSPF defined. > --- > configure | 13 - > 1 file changed, 12 insertions(+), 1 deletion(-) > > diff --git a/configure b/configure Hi The script 'configure' is autogenerated,

Re: [PATCH 2/9] Nest changes to support SADR.

2017-03-07 Thread Ondrej Zajicek
On Tue, Mar 07, 2017 at 12:56:26AM +0100, Dean Luga wrote: > From: dean > > When SADR is enabled, fib_node contains source address prefix > and prefix length. > > A data structure addr_data was added to be passed to > fib_{get|find|route} and net_{get|find} functions and allow > the same call sy

Re: additional attributes of static routes

2017-03-07 Thread Ondrej Zajicek
On Tue, Mar 07, 2017 at 08:01:53PM +0300, Anton Danilov wrote: > Hello folks. > I have a strange desire to set the bgp community to static routes to > implement the advanced route policy on my border router. > I've written this configuration of additional static protocol with > only default route t

Re: manipulating the best path, eBGP, MED?

2017-03-07 Thread Ondrej Zajicek
On Tue, Mar 07, 2017 at 03:43:13PM +0100, Thomas@PhaseHosting wrote: > Supp, > > thnqx for the reply, > > The BGP i have figured out and i have confirmation from my host they accept > customer-set MEDs. Only i couldn't get these working and i found 2 posts on > the internet with a different confi

Re: RIP with passive option

2017-03-09 Thread Ondrej Zajicek
On Thu, Mar 09, 2017 at 07:47:52AM +, Alexander Festl wrote: > Hi, this is my first post in a mailing list. I hope I do it fine. > > My server should receive routes via RIP. > I have tried it on Ubuntu 10.04 with bird from *ppa:cz.nic-labs/bird* . > The server should work with the interface op

Re: bgp proto bug with add paths in bird 1.6.3

2017-03-09 Thread Ondrej Zajicek
On Thu, Mar 09, 2017 at 02:20:28PM +0200, Lennert Buytenhek wrote: > On Mon, Mar 06, 2017 at 07:41:44PM +0200, Lennert Buytenhek wrote: > > > Hi! > > > > bgp_init() in proto/bgp/bgp.c does: > > > > P->accept_ra_types = c->secondary ? RA_ACCEPTED : RA_OPTIMAL; > > > > and then bgp_rx_open() in

Re: [PATCH, RFC 3/3] BGP: Don't unconditionally bounce connection for remote AS changes.

2017-03-09 Thread Ondrej Zajicek
On Thu, Mar 09, 2017 at 04:30:55PM +0200, Lennert Buytenhek wrote: > If we are using the secondary remote AS mechanism, we don't necessarily > need to restart an already established BGP connection if the remote AS > for a BGP session changes, as long as the AS number that the peer is > currently co

Re: [PATCH, RFC 2/3] BGP: Correctly handle changes to c->{check_link, bfd} when reconfiguring.

2017-03-09 Thread Ondrej Zajicek
On Thu, Mar 09, 2017 at 04:30:24PM +0200, Lennert Buytenhek wrote: > Since the area between 'struct proto_config c' and 'char *password' > in 'struct bgp_config' is compared using memcmp() in bgp_reconfigure(), > move ->check_link and ->bfd so that they are part of that area. Also > add a note to

Re: [PATCH, RFC 3/3] BGP: Don't unconditionally bounce connection for remote AS changes.

2017-03-09 Thread Ondrej Zajicek
On Thu, Mar 09, 2017 at 05:36:54PM +0200, Lennert Buytenhek wrote: > > Well, the simple way to avoid reconfiguration in this case is just to move > > 'remote_as2' field at the end of bgp_config, like 'check_link' or 'bfd'. > > Well, e.g. if remote_as is 12345 and the currently established peer AS

Re: [PATCH,RFC 1/3] BGP: Implement secondary remote AS number support.

2017-03-09 Thread Ondrej Zajicek
On Thu, Mar 09, 2017 at 04:29:40PM +0200, Lennert Buytenhek wrote: > This patch implements the latter option, and this functionality is > enabled by specifying two different remote AS numbers for a peer in > the neighbor statement. Instead of specifying: > > neighbor 1.2.3.4 as 12345; > >

Re: [PATCH] Allow address scopes for non-link-local addresses

2017-03-11 Thread Ondrej Zajicek
On Tue, Mar 07, 2017 at 04:50:34PM +, Fritz Grimpen wrote: > Hi. > > Here is a small patch which allows non-zero address scopes on > non-link-local addresses. This is required to create connections inside > a VRF domain, as the Linux kernel documentation states. Hi I would accept the patch,

Re: bgp proto bug with add paths in bird 1.6.3

2017-03-11 Thread Ondrej Zajicek
On Thu, Mar 09, 2017 at 03:20:59PM +0100, Ondrej Zajicek wrote: > Thanks for the bugreport and patch. We already found and fixed the bug > during work on 2.0 branch [*], but we forgot to fix it in 1.6 branch. > Your patch should be OK. Merged -- Elen sila lumenn' omentielvo On

Re: [PATCH] Allow address scopes for non-link-local addresses

2017-03-14 Thread Ondrej Zajicek
On Sat, Mar 11, 2017 at 05:13:13PM +0100, Ondrej Zajicek wrote: > On Tue, Mar 07, 2017 at 04:50:34PM +, Fritz Grimpen wrote: > > Hi. > > > > Here is a small patch which allows non-zero address scopes on > > non-link-local addresses. This is required to create c

Re: Some autoconf cleanups

2017-03-14 Thread Ondrej Zajicek
On Tue, Mar 07, 2017 at 03:20:09PM +0100, Ruben Kerkhof wrote: > On Tue, Mar 7, 2017 at 12:17 AM, Ondrej Zajicek > wrote: > > On Sat, Mar 04, 2017 at 06:13:16PM +0100, Ruben Kerkhof wrote: > > Thanks for the cleanup patches, our configure script is old and not much > >

Re: [PATCH,RFC 1/3] BGP: Implement secondary remote AS number support.

2017-03-14 Thread Ondrej Zajicek
On Fri, Mar 10, 2017 at 05:19:11PM +0200, Lennert Buytenhek wrote: > On Thu, Mar 09, 2017 at 05:53:51PM +0100, Ondrej Zajicek wrote: > > > > This patch implements the latter option, and this functionality is > > > enabled by specifying two different remote AS numbers

Re: Some autoconf cleanups

2017-03-14 Thread Ondrej Zajicek
On Tue, Mar 14, 2017 at 06:54:39PM +0100, Ruben Kerkhof wrote: > > But i am OK with removing unnecessary and redoing macros differently in > > aclocal.m4 (e.g., integer length testing macros are most likely obsolete > > and could be replaced by C99 types). > > Yes, I was thinking about that. Do yo

Re: Is there a way to speed up config process?

2017-03-28 Thread Ondrej Zajicek
On Fri, Mar 24, 2017 at 04:43:17PM +, Lyubomir Millanov wrote: > Hello, > > I was wondering if there is a way to speed up re-configuration process? Right > now it takes up to 30+ minutes to run ./config after modifying > bird_config_gen. It should be much faster. Could you send me your conf

Re: [Feature request] DHCPv6 protocol

2017-04-02 Thread Ondrej Zajicek
On Sat, Apr 01, 2017 at 01:08:31PM +0200, Martin Huněk wrote: > Hello, > > When I was recently in CZ.NIC and I've asked for this feature (DHCPv6 > protocol > support in bird), I've been told that I should try to make my case on this > list. So: > ... > > Short list of reasons: > - No reliable

Re: Bird blackhole, example config

2017-05-01 Thread Ondrej Zajicek
On Sun, Apr 30, 2017 at 06:01:46PM -0700, Gregg Berkholtz wrote: > > > > On Apr 30, 2017, at 8:47 AM, Krzysztof Puchała TriplmeMedia > > wrote: > > > > Hi, You once added an example of a blackhole configuration in the birde on > > the mailing list: > > http://bird.network.cz/pipermail/bird-use

Re: Version 2.0.0-pre1

2017-05-01 Thread Ondrej Zajicek
On Sun, Apr 30, 2017 at 10:42:19AM +0200, Job Snijders wrote: > Hi Ondrej, > > On Sun, Apr 30, 2017 at 12:46:04AM +0200, Ondrej Filip wrote: > > Let me announce a new addition to 2.0.x branch. > > Congratulations! > > Does this 2.0.0-pre1 version follow draft-ietf-grow-bgp-reject ? No, like 1.

Re: Bird dying on nl_get_reply

2017-05-02 Thread Ondrej Zajicek
On Tue, May 02, 2017 at 03:16:08PM +0200, Vincent Bernat wrote: > Hey! > > Just got an instance of BIRD dying unexpectedly after displaying the > following message: > > nl_get_reply: No buffer space available > > It's from netlink.c: > > int x = recvmsg(nl->fd, &m, 0); > if (x <

Re: "enable route refresh off" question

2017-05-08 Thread Ondrej Zajicek
On Thu, May 04, 2017 at 06:48:39PM +0300, Alexander Shikov wrote: > Hello! > > Today I ran in situation where I need to have Route Refresh capability > (RFC 2918) to be turned on, while Enhanced Route Refresh capability > (RFC 7313) to be turned off. > > According to docs, "enable route refresh

Re: Question regarding announcing AS set in the bgp path

2017-05-08 Thread Ondrej Zajicek
On Sat, May 06, 2017 at 06:00:25PM -0700, Jae Hyun Park wrote: > Hi, I'm a graduate student at UCSD. > > I was wondering how to announce AS set in the bgp path using BIRD. > I could only find an example of prepending an AS, but not AS set in the > document. That is true, BIRD filters do not suppo

Re: Import directly connected routes

2017-05-08 Thread Ondrej Zajicek
On Mon, May 08, 2017 at 02:51:55PM -0400, Damien Clabaut wrote: > Hello, > > I have an issue with latest stable Bird (1.6.3) on Debian8. > > I have a bunch of directly connected networks, with route in main routing > table: > > # ip route show > default via 10.21.136.126 dev eth0 > 10.21.136.0/2

Re: Import directly connected routes

2017-05-08 Thread Ondrej Zajicek
On Mon, May 08, 2017 at 03:45:17PM -0400, Damien Clabaut wrote: > Hello Ondrej, > > Thank you for your answer. > > I did not manage to do it with "device", but "direct" works: Yes, that was my mistake. 'direct' is the correct one, -- Elen sila lumenn' omentielvo Ondrej 'Santiago' Zajicek (ema

Re: Import directly connected routes

2017-05-09 Thread Ondrej Zajicek
On Mon, May 08, 2017 at 04:43:32PM -0400, Damien Clabaut wrote: > Hello again, > > Is there any way to declare a list of interfaces in a string set or > something ? No, string sets are not implemented. Although it is something that makes sense to add. You could define functions that match a set

Re: Import directly connected routes

2017-05-09 Thread Ondrej Zajicek
On Tue, May 09, 2017 at 08:28:26AM -0400, Damien Clabaut wrote: > Hello, > > Thank you for your answer. > > Are there some reserved variable names in function arguments ? Yes, unfortunately each keyword is reserved and cannot be used as symbol (variable, argument, protocol, table, ... name). 's'

Re: Unexpected behavior of static routes

2017-05-09 Thread Ondrej Zajicek
On Tue, May 09, 2017 at 06:39:04PM +0200, Alexander Demenshin wrote: > Hi, > > I have something like this in my config (bird 1.6.3 @linux): > > protocol static { > route 10.1.0.0/24 via "eth1"; > route 10.2.0.0/24 via 10.1.0.1; > } > > Route to 10.1.0.0/24 is installed as expected, but, rout

Re: Unexpected behavior of static routes

2017-05-10 Thread Ondrej Zajicek
On Wed, May 10, 2017 at 12:28:31PM +0200, Alexander Demenshin wrote: > On 2017-05-10 03:01, Ondrej Zajicek wrote: > > >It is expected behavior. It is not optimal, but it is how it works. > > Is it limitation by design or just "not implemented"? More or less by des

Re: Bird & VRF on Linux

2017-05-10 Thread Ondrej Zajicek
On Wed, May 10, 2017 at 12:42:23PM +0200, Tim Weippert wrote: > HI all, > > currently i'm playing with Bird & VRF on Linux Kernel >4.9. I try to > investigate if it is possible to build up an system which use Bird/BGP > to populate the VRF/Tables. > > I tried to run on bird instance and use the

Re: Please help, local interfaces not being recognized as local

2017-05-18 Thread Ondrej Zajicek
On Wed, May 17, 2017 at 06:28:59PM -0700, Jerry Scharf wrote: > Hi, > > So I have narrowed things down but still don't understand what is going on. > The symptoms are as follows: > > I have local interfaces with either simple addresses on net or on vlans. The > peer is on the local subnet of the

Re: [PATCH 2/4] Static protocol supports SADR

2017-05-22 Thread Ondrej Zajicek
On Sun, May 21, 2017 at 11:01:35PM +0200, Dean Luga wrote: > From: dean > > A new channel, sadr_ip6, is used for SADR both in the kernel > and static protocols. In the static protocol, routes can be > inserted with the following syntax: > > route from via "interface" > route from recursive

Re: [PATCH 1/4] Core changes to support SADR

2017-05-22 Thread Ondrej Zajicek
On Sun, May 21, 2017 at 11:01:34PM +0200, Dean Luga wrote: > From: dean > > This patch adds a new network of type NET_SADR_IP6, including new > structures, constants, and switch cases for the new network type. > Some existing functions are duplicates to handle the new network > type, and netlink

Re: [PATCH 2/4] Static protocol supports SADR

2017-05-22 Thread Ondrej Zajicek
On Mon, May 22, 2017 at 02:17:43PM +0200, Dean wrote: > >You should add parsing of SADR networks to conf/confbase.Y together with > >other network types in net_ nonterminal symbol. That would add support > >of SADR to static procotol automatically. > > > >Also, SADR-based recursive routes seems lik

Re: [PATCH 2/4] Static protocol supports SADR

2017-05-23 Thread Ondrej Zajicek
On Sun, May 21, 2017 at 11:01:35PM +0200, Dean Luga wrote: > struct static_route { > diff --git a/sysdep/linux/netlink.c b/sysdep/linux/netlink.c > index d89ae10..073bf65 100644 > --- a/sysdep/linux/netlink.c > +++ b/sysdep/linux/netlink.c > @@ -1937,7 +1937,8 @@ krt_sys_start(struct krt_proto *p)

Re: [PATCH 1/4] Core changes to support SADR

2017-05-23 Thread Ondrej Zajicek
On Sun, May 21, 2017 at 11:01:34PM +0200, Dean Luga wrote: > @@ -1394,7 +1404,8 @@ nl_parse_route(struct nl_parse_state *s, struct > nlmsghdr *h) >struct rtattr *a[BIRD_RTA_MAX]; >int new = h->nlmsg_type == RTM_NEWROUTE; > > - net_addr dst; > + net_addr dst, sadr_src; > + net_fill_ip6

Re: [PATCH 2/4] Static protocol supports SADR

2017-05-23 Thread Ondrej Zajicek
On Tue, May 23, 2017 at 03:27:43PM +0200, Dean wrote: > On 05/23/2017 03:04 PM, Ondrej Zajicek wrote: > >My opinion is that behavior of OSPF and Kernel protocols should be > >consistent. If OSPFv3 uses one channel and one table for SADR and > >non-SADR routes, then Kernel s

Re: bird redhat repo missing rpms for 1.6.3

2017-05-24 Thread Ondrej Zajicek
On Tue, May 23, 2017 at 10:46:58AM +0200, Stefan Plug wrote: > Hi guys, > > forgive me for my ignorance, but I just compiled 1.6.3-1 on a scientific > linux 6.8 machine with ncurses 5.7 and installed that RPM on a centos7 > machine with ncurses 5.9 and it all seems to work just fine. > > What am

Re: VRF Support

2017-05-24 Thread Ondrej Zajicek
On Mon, May 22, 2017 at 04:07:14PM +, Reji Varghese wrote: > Hello Team, > > Want to quickly check this. > > Do we have VRF support today in the BIRD stack? No. But in some cases you can use existing multiple routing tables support. > If not, is there a plan to add support for the same in t

Re: [PATCH 2/4] Static protocol supports SADR

2017-05-24 Thread Ondrej Zajicek
On Tue, May 23, 2017 at 10:27:30PM +0200, Toke Høiland-Jørgensen wrote: > Ondrej Zajicek writes: > > >> And routes from other protocols with normal IPv6 channels should be > >> transformed to SADR routes with a ::/0 source? > > > > That is a tricky issue.

Re: [PATCH 2/4] Static protocol supports SADR

2017-05-24 Thread Ondrej Zajicek
On Tue, May 23, 2017 at 08:03:38PM +0200, Dean wrote: > >>And routes from other protocols with normal IPv6 channels should be > >>transformed to SADR routes with a ::/0 source? > >That is a tricky issue. I see four possibilities: > > > >2) Soma hack to Pipe protocol that allows to bridge IP6 table

Re: [PATCH] babel: Add support for dual-stack v4/v6 operation

2017-05-30 Thread Ondrej Zajicek
On Mon, May 29, 2017 at 10:24:57PM +0200, Toke Høiland-Jørgensen wrote: > This adds support for dual-stack v4/v6 operation to the Babel protocol. > Routing > messages will be exchanged over IPv6, but IPv4 routes can be carried in the > messages being exchanged. This matches how the reference Babel

Re: [PATCH] babel: Add support for dual-stack v4/v6 operation

2017-05-30 Thread Ondrej Zajicek
On Tue, May 30, 2017 at 01:37:56PM +0200, Toke Høiland-Jørgensen wrote: > > Also channel_is_active() is called but channel may not even exist? > > Ah, proto_configure_channel can leave the channel var entirely unset? Yes, it could add/remove/reconfigure the channel, based on whether there is or i

Re: [PATCH] babel: Add support for dual-stack v4/v6 operation

2017-05-30 Thread Ondrej Zajicek
On Tue, May 30, 2017 at 01:48:10PM +0200, Ondrej Zajicek wrote: > On Tue, May 30, 2017 at 01:37:56PM +0200, Toke Høiland-Jørgensen wrote: > > > Also channel_is_active() is called but channel may not even exist? > > > > Ah, proto_configure_channel can leave the channel var

Re: [PATCH] babel: Add support for dual-stack v4/v6 operation

2017-05-30 Thread Ondrej Zajicek
On Tue, May 30, 2017 at 01:56:24PM +0200, Toke Høiland-Jørgensen wrote: > Ondrej Zajicek writes: > > > On Tue, May 30, 2017 at 01:37:56PM +0200, Toke Høiland-Jørgensen wrote: > >> > Also channel_is_active() is called but channel may not even exist? > >> >

Re: [PATCH] babel: Add support for dual-stack v4/v6 operation

2017-05-30 Thread Ondrej Zajicek
On Tue, May 30, 2017 at 02:04:00PM +0200, Toke Høiland-Jørgensen wrote: > Ondrej Zajicek writes: > > > On Tue, May 30, 2017 at 01:48:10PM +0200, Ondrej Zajicek wrote: > >> On Tue, May 30, 2017 at 01:37:56PM +0200, Toke Høiland-Jørgensen wrote: > >> > > Al

Re: bird redhat repo missing rpms for 1.6.3

2017-05-30 Thread Ondrej Zajicek
On Tue, May 30, 2017 at 02:31:21PM +0200, Martin Huněk wrote: > Hi, > > I've tested that 1.6.3 on CentOS 7 and that RPM is not usable on it. > > The output of yum (in Czech): > Řešení závislostí... > --> Kontrola transakce spuštěna > ---> Balíček bird.x86_64 0:1.6.0-1 bude aktualizován > ---> Bal

Re: [PATCH] babel: Add support for dual-stack v4/v6 operation

2017-05-30 Thread Ondrej Zajicek
On Tue, May 30, 2017 at 02:34:17PM +0200, Toke Høiland-Jørgensen wrote: > Ondrej Zajicek writes: > > > I see no reason not to do conditional initialization of FIBs in > > babel_start(). If a channel appears later, it will stay in CS_DOWN until > > protocol restarts (an

Re: Increasing the granularity of internal timers in Bird?

2017-06-05 Thread Ondrej Zajicek
On Mon, Jun 05, 2017 at 06:53:02PM +0200, Toke Høiland-Jørgensen wrote: > Hey > > I have been looking at changing the internal timers in Bird to operate > at millisecond granularity instead of the current one-second steps. I > have two motivations for this: Hi Check this: https://gitlab.labs.ni

Re: Increasing the granularity of internal timers in Bird?

2017-06-06 Thread Ondrej Zajicek
On Mon, Jun 05, 2017 at 11:19:15PM +0200, Toke Høiland-Jørgensen wrote: > > It is a recent branch that replaces current timers with microsecond > > timers (already used in BFD). You could just swap bird_clock_t, timer > > and tm_*() functions with btime, timer2 and tm2_*() functions (with > > updat

Re: [PATCH 0/3] babel: Add compression and support for subtlvs

2017-06-06 Thread Ondrej Zajicek
On Mon, Jun 05, 2017 at 11:49:51PM +0200, Toke Høiland-Jørgensen wrote: > This patch series adds compression of outgoing IPv6 prefixes to the > Babel protocol, and also adds support to the parser for parsing subtlvs > as per RFC6126 bis (see > https://tools.ietf.org/html/draft-ietf-babel-rfc6126bis

Re: [PATCH 0/3] babel: Add compression and support for subtlvs

2017-06-06 Thread Ondrej Zajicek
On Tue, Jun 06, 2017 at 12:42:23PM +0200, Toke Høiland-Jørgensen wrote: > Ondrej Zajicek writes: > > > On Mon, Jun 05, 2017 at 11:49:51PM +0200, Toke Høiland-Jørgensen wrote: > >> This patch series adds compression of outgoing IPv6 prefixes to the > >> Babel prot

<    1   2   3   4   5   6   7   8   9   10   >