Issues in Babel

2017-10-14 Thread Ondrej Zajicek
Hi Toke (and others) I updated Babel to use microsecond timers [1] and during testing i noticed several unrelated issues. 1) Hello expiration was not properly implemented, as i understand RFC, it should reset the timer based on last packet hello interval and time-out repeatedly until hello map

Re: Limit on how many neighbors

2017-10-13 Thread Ondrej Zajicek
On Thu, Oct 12, 2017 at 11:43:03AM +, Magnus Löfqvist wrote: > Hi, > > We are running Bird with OSPF between embedded routers (openwrt) (mobile > routers). > The routers are connected to our main server with openvpn, and we are using > bird ontop on openvpn to deliver routes to the end

Re: import where IPv6 BGP

2017-10-09 Thread Ondrej Zajicek
On Mon, Oct 09, 2017 at 02:32:44PM -0400, Robert Blayzor wrote: > When running IPv6 daemon, I have a BGP peer: > > protocol bgp bogon_1 from BH_SERVER { > import where net.len < 33; > import filter BLACKHOLE_IN; > import limit 10 action warn; > } > > > > The filter

Re: BGP connection between two peers

2017-09-27 Thread Ondrej Zajicek
On Wed, Sep 27, 2017 at 10:04:26PM +0200, Александра Урошевска wrote: > After a hard work all day, I install again BIRD and seems to work very well. > Thank you for the advices Anton Danilov, I can't say why didn't work. But, > I can share my previous installation and the current installation, I

Re: Decode BGP Shutdown Communication messages (RFC 8203)

2017-09-26 Thread Ondrej Zajicek
On Tue, Sep 26, 2017 at 10:14:11AM +0200, Peter Hessler wrote: > On 2017 Sep 19 (Tue) at 20:53:47 +0200 (+0200), Ondrej Zajicek wrote: > :Merged with some significant changes, with support for both RX and TX of > :shutdown communication: > ... > : > :Unfortunately, that means th

Re: MTU mismatch with nbr

2017-09-24 Thread Ondrej Zajicek
On Thu, Sep 21, 2017 at 11:08:47AM -0600, Derek Andrew wrote: > We are running BIRD and BIRD6 to manage our BFD and OSPF relationship on > our DNS servers. > > We moved the DNS servers onto a Fortigate firewall. I was able to get the > BIRD daemon running, but BIRD6 is complaining about an MTU

Re: Static routing

2017-09-24 Thread Ondrej Zajicek
On Sun, Sep 24, 2017 at 02:51:46PM +0200, Александра Урошевска wrote: > Hi all bird users, > > I have started with fresh configuration of BIRD. And I want to use a > default routing table with static routing. Is there any template for > configuration of protocol static, protocol kernel, protocol

Re: Ignoring bogus route 240.0.0.0/4

2017-09-20 Thread Ondrej Zajicek
On Tue, Sep 19, 2017 at 10:32:34PM +0200, Alexander Demenshin wrote: > Hi, > > Any reason why 240.0.0.0/4+ routes are ignored by bird (1.6.3)? Hi I do not know why it was implemented in BIRD originally in such way and i had to need to question that, so it stayed is it was. If Linux and BSD

Re: Decode BGP Shutdown Communication messages (RFC 8203)

2017-09-19 Thread Ondrej Zajicek
On Thu, Jul 27, 2017 at 05:55:40PM +0200, Job Snijders wrote: > Hi all, > > Here is a patch to decode received BGP shutdown communication messages > as specified in RFC 8203. In the following example scenario I'm sending > a shutdown communication with openbgpd: > > $ bgpctl neighbor

Re: Bird redundant routers with same AS on same location and prefix delegation to lower router

2017-09-19 Thread Ondrej Zajicek
On Mon, Sep 18, 2017 at 03:44:40PM +0300, Andrew wrote: > Hi. > > Something like: > > template bgp bgp_local { >     local as my_as; >     import filter import_bgp; >     export filter export_bgp; > multihop; >     rr client; >     rr cluster id 1.0.0.1; > } > > # R2 - also

Re: [RFC,PATCH 1/2] BGP: Implement iebgp_peer mode.

2017-09-19 Thread Ondrej Zajicek
On Sat, Aug 12, 2017 at 10:22:06PM +0300, Lennert Buytenhek wrote: > Implement an 'internal eBGP' peer mode, where the remote peer uses a > different AS number than we do, as if it were an eBGP peer, but we > treat the peer as if were an AS-internal peer. This enables > implementing a network

Re: BIRD export reject not working

2017-09-19 Thread Ondrej Zajicek
On Tue, Sep 19, 2017 at 11:27:58AM +0200, Tim Weippert wrote: > Hi, > > IIRC, bird added your local ASN before export filter, so 64515 is > neither first nor last in ASN Path, and it isn't exactly only 64515 in > the path. Hi, you are right, but note that 'if bgp_path = 64515 then reject;' does

Re: documentation on emptying bgp_community

2017-09-13 Thread Ondrej Zajicek
On Tue, Sep 12, 2017 at 09:12:33PM +0200, Alexander Zubkov wrote: > Hello. > > I have found a couple of methods to make bgp_community empty: > > 1) bgp_community.empty > 2) bgp_community = -empty- > > But neither of them are present in the documentation. Only example in > bird.conf.example

Re: BIRD IP tunnel problem

2017-09-12 Thread Ondrej Zajicek
Hi BIRD does not handle well situations where there are overlapping IP ranges on interfaces. It just find a first iface that matches the next-hop. It is true that one would expect that in 'direct' mode, the iface is used also for the next hop, but even in that case BGP is two-level and BGP next

Re: Kernel dropped some netlink messages, will resync on next scan.

2017-09-12 Thread Ondrej Zajicek
On Tue, Sep 12, 2017 at 11:19:43AM +0200, Giuseppe Ravasio (LU) wrote: > Hi, > I'm upgrading my core router (running an old bird 1.3.10) with a new > Ubuntu 16.04 running 1.6.3 from the official PPA. > > Actually it'a a pretty simple configuration > > ISP3 ISP1 ISP2 > |

Re: BIRD IP tunnel problem

2017-09-12 Thread Ondrej Zajicek
On Tue, Sep 12, 2017 at 12:45:25PM +0200, n...@joey-network.de wrote: > Hi,  > > I figured out a problem with the BIRD routing daemon.  > It is not possible to route BGP via IPIP tunnels. As you can see below  > the packets will be routed through the wrong device. Normally it should  > choose

Re: Bird v2, MPLS and LDP

2017-09-11 Thread Ondrej Zajicek
On Sat, Sep 09, 2017 at 03:26:54AM +0200, Maximilian Wilhelm wrote: > Hi folks, > > I've just seen in the NEWS for bird 2.0.0-pre1 that there are many > MPLS related things coming. Kudos for that! > > Forgive me if this has been answered recently, I didn't find anything > in my list archive: >

Re: FreeBSD 11.1 OSPF multicast broken?

2017-09-08 Thread Ondrej Zajicek
ej 'Santiago' Zajicek (email: santi...@crfreenet.org) OpenPGP encrypted e-mails preferred (KeyID 0x11DEADC3, wwwkeys.pgp.net) "To err is human -- to blame it on a computer is even more so." commit f6e6c3b5a5997ffc67d96785bbde76bcec072890 Author: Ondrej Zajicek (work) <santi...@crfreenet.o

Re: Fix IPv6 ECMP handling with 4.11+ kernel

2017-09-01 Thread Ondrej Zajicek
On Fri, Sep 01, 2017 at 01:19:57PM +0200, Vincent Bernat wrote: > ❦ 1 septembre 2017 13:12 +0200, Ondrej Zajicek <santi...@crfreenet.org> : > > >> > Also, alien routes are correctly parsed when next-hops are correctly > >> > ordered (I didn't check if this

Re: Fix IPv6 ECMP handling with 4.11+ kernel

2017-09-01 Thread Ondrej Zajicek
On Fri, Sep 01, 2017 at 11:59:19AM +0200, Vincent Bernat wrote: > > We have lots of kit (e.g. https://www.arista.com/en/products/7280r-series) > > that comes with: > > > > Linux labtest 3.4.43.Ar-3964936.4173F #1 SMP PREEMPT Mon Dec 19 > > 14:31:21 PST 2016 x86_64 x86_64 x86_64 GNU/Linux > >

Re: Fix IPv6 ECMP handling with 4.11+ kernel

2017-09-01 Thread Ondrej Zajicek
On Fri, Sep 01, 2017 at 11:19:40AM +0200, Vincent Bernat wrote: > ❦ 31 août 2017 22:39 +0200, Vincent Bernat  : > > > Also, alien routes are correctly parsed when next-hops are correctly > > ordered (I didn't check if this restriction is also present for IPv4 or > > if Linux is

Re: Error sending route to kernel on FreeBSD (ARM)

2017-09-01 Thread Ondrej Zajicek
On Fri, Sep 01, 2017 at 12:06:11PM +0400, Eugene Sevastyanov wrote: > Hi! > > I tried to run a bird (v1.6.3) under FreeBSD on ARM architecture. An error > occurred: > > KRT: Error sending route XX.XX.XX.XX/XX to kernel: Invalid argument > > ... > > Studying the source code, found out that

Re: bgp_path.first

2017-08-22 Thread Ondrej Zajicek
On Mon, Aug 21, 2017 at 08:29:25PM +0300, nixx wrote: > Hello. > > function rt_export() > { > if proto = "static_bgp" then return true; > if source != RTS_BGP then return false; > return bgp_path.first ~ [ downlink1AS, downlink2AS ]; > } > > But this incorrectly works - bird trying to

Re: One possible way of supporting MPLS labels in bird 1.6

2017-08-17 Thread Ondrej Zajicek
On Thu, Aug 17, 2017 at 10:11:59AM +0300, Lennert Buytenhek wrote: > I'd be happy to do that, but I'm trying to hold back on the number of > discrete patches I'm submitting to this mailing list, because it seems > as if the more patches I submit, the smaller the chance they'll be > looked at. ;p

Re: gateway recursive

2017-08-09 Thread Ondrej Zajicek
On Mon, Aug 07, 2017 at 06:49:56PM +0300, Mikhail Mayorov wrote: > Hi all! > > Please help me with recursion to caclulate bgp_next_hop using IGP. > I have 2 router "A" and "B" connected to each other via iBGP. Each of the > routers has connection to the outside world in different AS and get full

Re: BIRD BGP and VRF - Cannot assign requested address

2017-08-08 Thread Ondrej Zajicek
On Sun, Aug 06, 2017 at 05:03:00PM +0200, Clément Guivy wrote: > On 06/08/2017 12:27, Ondrej Zajicek wrote: > > The difference is that such bug affect only outgoing connnections, not > > incoming connections. In your IBGP case, both routers are affected by the > > bug, so no c

Re: bird: memory exhausted

2017-08-06 Thread Ondrej Zajicek
On Sun, Aug 06, 2017 at 10:52:27PM +0200, Andre van Zyl wrote: > On Sun, 6 Aug 2017 16:24:24 +0200 > Job Snijders wrote: > > > Dear all, > > > > It appears I'm hitting some kind of limit in yacc stuff (on > > 1.6.3-1+trusty+1): > > > > router# bird -c

Re: BIRD BGP and VRF - Cannot assign requested address

2017-08-06 Thread Ondrej Zajicek
On Sun, Aug 06, 2017 at 08:05:38AM +0200, Clément Guivy wrote: > On 05/08/2017 23:55, Ondrej Zajicek wrote: > > I found that it is probably a bug/behavior of Linux VRF implementation. > > Socket can be bound to an iface, which is also used to choose related > > VRF. For

Re: BIRD BGP and VRF - Cannot assign requested address

2017-08-05 Thread Ondrej Zajicek
On Sat, Aug 05, 2017 at 01:02:08PM +0200, Ondrej Zajicek wrote: > On Sat, Aug 05, 2017 at 01:53:11AM +0200, Clément Guivy wrote: > > On 04/08/2017 23:00, Ondrej Zajicek wrote: > > > > > > You could try to use 'direct' option for IBGP to run it in IBGP mode

Re: BIRD BGP and VRF - Cannot assign requested address

2017-08-04 Thread Ondrej Zajicek
On Fri, Aug 04, 2017 at 04:43:01PM +0200, Clément Guivy wrote: > Hello, I am trying to set up 2 BIRD routers as AS border routers (on Debian > 9). > ... > I plan to use both ipv4 and ipv6 and also, on BIRD routers both the forwarding > and the BGP peerings are to take place in a linux vrf named

Re: BGP Conditional Advertisement

2017-08-02 Thread Ondrej Zajicek
On Mon, Jul 31, 2017 at 10:35:34AM +0200, e2rd wrote: > Hi, > thanks, that trick works but I have another problem. Route which I want to > export is distributed via OSPF. I've set preference of static "condition" > protocol lower than OSPF (and filtered it out in kernel export) but now this >

Re: OSPF no route

2017-08-01 Thread Ondrej Zajicek
On Mon, Jul 31, 2017 at 04:02:41PM +0500, Михаил Хотько wrote: > Hi! > > I have some trouble with OSPF: > ... > > The trouble is that Switch1 has not receive route to Switch2, if prefix > length of IP on VLAN1 is 30. > If prefix length is 29 or less everything is OK. I guess this is the issue

Re: Why is a neighbour as ospf peer reachable, but as router unreachable?

2017-08-01 Thread Ondrej Zajicek
On Sun, Jul 30, 2017 at 12:22:15PM +0200, Roger Schreiter wrote: > Hello, > > is there something special to configure, for bird ospf knowns, which IP > addresses belong to the one neighbour router? > > I have bird in ospf area 2. The ospf peer is in area 2 and in area 0. > bird ospf learns all

Re: Injecting route into bird/ospf

2017-07-28 Thread Ondrej Zajicek
On Fri, Jul 28, 2017 at 11:27:23AM +, ico wrote: > Hello, > > Is there a way to do it without setting IPs anywhere? Maybe set some custom > local routing table for this and tell bird to announce routes found there? > > echo "25 mytable" >> /etc/iproute2/rt_tables > ip route show

Re: Multiple ASBRs: summarizing prefixes from BGP into OSPF

2017-07-28 Thread Ondrej Zajicek
On Wed, Jul 26, 2017 at 12:20:29PM +0100, Israel G. Lugo wrote: > Hello, > What I need, unless someone has a better suggestion, is some way to > summarize externals in OSPF, such that the summary prefix is only > announced if I've got more specific routes inside it. Hi > area 0.0.1.2 { >

Re: BGP Conditional Advertisement

2017-07-28 Thread Ondrej Zajicek
On Fri, Jul 21, 2017 at 01:24:52AM +0200, e2rd wrote: > Hi, > Is there any way to configure BGP Conditional Advertisement like in cisco: > http://www.cisco.com/c/en/us/support/docs/ip/border-gateway-protocol-bgp/16137-cond-adv.html > ? Hi It is not directly supported. It may be possible to use a

Re: Syntax error at "export all;"

2017-07-28 Thread Ondrej Zajicek
On Fri, Jul 28, 2017 at 12:35:38AM +0200, Roger Schreiter wrote: > Hello, > > I just started configuring my first installation of bird. > > However, I even do not get running the simples samples. > > My conf file > > protocol kernel { > export all; > } > > does fail. > Bird complains

Re: IETF-99

2017-07-17 Thread Ondrej Zajicek
On Mon, Jul 17, 2017 at 05:18:03PM +0200, Juliusz Chroboczek wrote: > 1. Ondrej, if there's so many of us, don't you need to book a table? The two of three restaurants i thought about are usually empty enough. > 2. There's the Babel working group meeting happening at 17:40 in the >

Re: IETF-99

2017-07-17 Thread Ondrej Zajicek
On Mon, Jul 17, 2017 at 10:44:34AM +0200, Ondrej Zajicek wrote: > Hi > > Although i am not an atendee of IETF 99, i am in Praha and i would be > glad to meet with BIRD users atending IETF 99. If there are more > interested people, we could make a common meeting. Hi We alread

Re: IETF-99

2017-07-17 Thread Ondrej Zajicek
On Sun, Jul 16, 2017 at 07:04:02PM +0200, Clemens Schrimpe wrote: > Hi - > > will any of the core developers be present at IETF99 in Praha this week and > if so: Where could I meet you? Hi Although i am not an atendee of IETF 99, i am in Praha and i would be glad to meet with BIRD users

Re: Static IPv6 leases on VLAN interface

2017-07-14 Thread Ondrej Zajicek
On Fri, Jul 14, 2017 at 10:03:18AM +0200, Martin Huněk wrote: > Hí, > > I have recently found out a problem with assigning IPv6 prefix via static > protocol for the VLAN interface. > > When I wrote this: > protocol static leases { > route 2001:db8:0:100::/56 via

Re: Version 1.6.2

2017-07-11 Thread Ondrej Zajicek
On Tue, Jul 11, 2017 at 01:06:28PM +0200, Job Snijders wrote: > Hi all, > > Apologies for bumping up an old thread > > Can I maybe help testing this feature? > > The use case is that I operate a large public BGP Looking Glass for the > NLNOG RING project at

Re: UNABLE TO CONNECT BIRDC6

2017-07-11 Thread Ondrej Zajicek
On Tue, Jul 11, 2017 at 11:13:56AM +0200, Janvier Rwakagabo wrote: > Hi > > Can you assist me on this issue, when trying to access birdc6, I got below > error > > > #birdc6 > > Unable to connect to server control socket (/run/bird/bird6.ctl): Connection > refused Well, there are three

Re: BGP Monitoring Protocol (BMP) support in Bird?

2017-07-11 Thread Ondrej Zajicek
On Thu, Jul 06, 2017 at 04:26:13PM +0300, Mikhail Grishin wrote: > Hi Ondrej, > > Is there any news/updates about BMP support in Bird? Hi, it is planned for this year. -- Elen sila lumenn' omentielvo Ondrej 'Santiago' Zajicek (email: santi...@crfreenet.org) OpenPGP encrypted e-mails preferred

Re: Bird 1.6.3 strange hangup

2017-07-04 Thread Ondrej Zajicek
On Sun, Jul 02, 2017 at 12:27:18PM +0300, Andrew wrote: > Hi all. > > Today I saw strange bird hangup, which results in OSPF failure in areas > where router is. BIRD works as OSPF + BGP. All returns to work state after > bird was killed by SIGKILL and started again. > > Here's strange logs

Re: Next-hop check not needed?

2017-07-04 Thread Ondrej Zajicek
On Thu, Jun 29, 2017 at 02:56:17PM +0200, Vincent Bernat wrote: > ❦ 29 juin 2017 11:02 +0200, Vincent Bernat  : > > >> On the next pass, BIRD doesn't recognize it (KRT: Received route > >> 203.0.113.10/32 with strange next-hop 203.0.113.1) and tries to install > >> it again but

Re: Identifying BGP convergence bottleneck

2017-06-28 Thread Ondrej Zajicek
On Thu, Jun 22, 2017 at 10:26:03AM +0200, patrick.den...@os3.nl wrote: > Hi everyone! > > I am currently looking into the performance of BIRD (bgp) as a > route-server with ~700 peers with 10k prefixes each. I'm noticing an > increase in convergence time as I increase these numbers (which is not

Re: Next-hop check not needed?

2017-06-28 Thread Ondrej Zajicek
On Wed, Jun 21, 2017 at 05:11:55PM +0200, Vincent Bernat wrote: > Hey > > in netlink.c, there is this piece of code: > ... > In turns, it calls neigh_find2() which delegates the decision to > if_connected(). if_connected() will return an error if it thinks that > the gateway is not part of the

Re: [PATCH] Don't clamp extended community values to 0..0xffff for EC_GENERICs.

2017-06-19 Thread Ondrej Zajicek
On Sat, Jun 17, 2017 at 04:16:07PM +0300, Lennert Buytenhek wrote: > filter/config.Y:f_new_ec_item() currently clamps the value part to > 0..0x whenever key >= 0x1, which makes sense if key and value > together need to fit into 48 bits, but this is not the case for > generic extended

Re: [PATCH] Babel: Fix pointer arithmetic in subtlv parsing

2017-06-15 Thread Ondrej Zajicek
On Thu, Jun 15, 2017 at 08:38:16AM +0200, Martin Mares wrote: > Hello, world!\n > > >for (tlv = (void *) hdr + state->current_tlv_endpos; > > - tlv < hdr + TLV_LENGTH(hdr); > > + (void *) tlv < (void *) hdr + TLV_LENGTH(hdr); > > tlv = NEXT_TLV(tlv)) > > BTW, is there any

Re: [PATCH] Babel: Fix pointer arithmetic in subtlv parsing

2017-06-14 Thread Ondrej Zajicek
On Tue, Jun 13, 2017 at 11:01:11PM +0200, Toke Høiland-Jørgensen wrote: > The subtlv parsing code was doing byte-based arithmetic with non-void > pointers, > causing it to read beyond the end of the packet. Thanks, merged. -- Elen sila lumenn' omentielvo Ondrej 'Santiago' Zajicek (email:

Re: auto-cost reference-bandwidth

2017-06-13 Thread Ondrej Zajicek
On Wed, Jun 07, 2017 at 06:32:59PM +0200, Markus Wigge wrote: > Hello, > > according to a chat I recently had with Elrond I put my question on the > mailing list: > > Is there an option for the OSPF protocol in bird to calculate the > interface cost based on the bandwidth like cisco or quagga or

Re: Order of BGP communities

2017-06-13 Thread Ondrej Zajicek
On Wed, Jun 07, 2017 at 03:49:35PM +0200, Pavlos Parissis wrote: > Hi, > > Today, we noticed a difference in the order that communities were added > between 1.6.3 and 1.4.5 version. > > Does anyone know why ? It is true, one reason is that to have that consistent with extended and long

Re: roa_check not re-evaluating after roa table update

2017-06-13 Thread Ondrej Zajicek
On Fri, Jun 09, 2017 at 01:17:08PM +0200, Stefan Plug wrote: > Hi guys, > > Bird 1.6.3 > > Just testing about with the RPKI roa_check and it seems that my routes are > not being re-evaluated after a "configure" when my roa table is updated. > I do this check during the import phase so the

Re: [PATCH 3/3] babel: Parse subtlvs and skip TLVs with a mandatory subtlv

2017-06-09 Thread Ondrej Zajicek
On Mon, Jun 05, 2017 at 11:49:54PM +0200, Toke Høiland-Jørgensen wrote: > RFC6126bis formally introduces subtlvs to the Babel protocol, including > mandatory subtlvs. This adds support for parsing subtlvs to the Babel protocol > and skips TLVs that contain mandatory subtlvs, as per the spec.

Re: [PATCH v2] babel: Implement IPv6 prefix compression on outgoing updates

2017-06-09 Thread Ondrej Zajicek
On Tue, Jun 06, 2017 at 02:52:15PM +0200, Toke Høiland-Jørgensen wrote: > Previously, the Babel protocol would never use prefix compression on outgoing > updates (but would parse it on incoming ones). This adds compression of IPv6 > addresses of outgoing updates. Thanks, merged. > +static inline

Re: [PATCH] babel: Add documentation for dual-stack operation and options

2017-06-09 Thread Ondrej Zajicek
On Thu, Jun 08, 2017 at 10:37:09PM +0200, Toke Høiland-Jørgensen wrote: > This updates the documentation for the Babel protocol to mention the fact that > it now supports dual-stack operation, and adds documentation for the new next > hop options. Thanks, merged. -- Elen sila lumenn' omentielvo

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

2017-06-08 Thread Ondrej Zajicek
On Tue, May 30, 2017 at 03:20:42PM +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

Re: [PATCH 1/3] lib: Add ip6_common_octets function

2017-06-06 Thread Ondrej Zajicek
On Tue, Jun 06, 2017 at 01:00:38PM +0200, Toke Høiland-Jørgensen wrote: > Christian Tacke writes: > > > Hi, > > > > just out of curiosity: > > > > On Mon, Jun 05, 2017 at 23:49:52 +0200, Toke Høiland-Jørgensen wrote: > > [...] > >> +int > >>

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 <santi...@crfreenet.org> 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

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 >

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 > >

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:

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 <santi...@crfreenet.org> 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 unt

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 > --->

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 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

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 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 <santi...@crfreenet.org> writes: > > >> And routes from other protocols with normal IPv6 channels should be > >> transformed to SADR routes with a ::/0 source? > > &g

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

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 Kern

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; > +

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

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

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" >

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: 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,

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).

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-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

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 >

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, , 0); > if (x <

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

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: > >

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

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

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 remo

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 <santi...@crfreenet.org> > wrote: > > On Sat, Mar 04, 2017 at 06:13:16PM +0100, Ruben Kerkhof wrote: > > Thanks for the cleanup patches, our configure sc

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: 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 Ondrej

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: [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 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 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

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

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

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

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

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

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)

<    7   8   9   10   11   12   13   14   >