Re: bgpd mrt bad sizeof

2018-12-30 Thread Sebastian Benoit
Claudio Jeker(cje...@diehard.n-r-g.com) on 2018.12.29 23:46:18 +0100: > On Sat, Dec 29, 2018 at 08:24:50PM +0100, Sebastian Benoit wrote: > > Hi, > > > > we allocate the wrong size here i think. > > > > ok? > > No, this diff is wrong. Check out the parse.y code. It uses MRT2MC to > access fields

Re: bgpd mrt bad sizeof

2018-12-29 Thread Claudio Jeker
On Sat, Dec 29, 2018 at 08:24:50PM +0100, Sebastian Benoit wrote: > Hi, > > we allocate the wrong size here i think. > > ok? No, this diff is wrong. Check out the parse.y code. It uses MRT2MC to access fields in struct mrt_config. I know this is not the best style but it is currently correct.

bgpd mrt bad sizeof

2018-12-29 Thread Sebastian Benoit
Hi, we allocate the wrong size here i think. ok? (benno_bgpd_mrt.diff) diff --git usr.sbin/bgpd/mrt.c usr.sbin/bgpd/mrt.c index 7c7f2193db3..2502c792c55 100644 --- usr.sbin/bgpd/mrt.c +++ usr.sbin/bgpd/mrt.c @@ -976,43 +976,43 @@ mrt_get(struct mrt_head *c, struct mrt *m) if (t-