"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/bgpd/parse.y" between
openbgpd-6.8p0.tar.gz and openbgpd-6.8p1.tar.gz

About: OpenBGPD is a Border Gateway Protocol (BGP) daemon which manages the network routing tables. Its main purpose is to exchange information concerning "network reachability" with other BGP systems.

parse.y  (openbgpd-6.8p0):parse.y  (openbgpd-6.8p1)
/* $OpenBSD: parse.y,v 1.408 2020/05/10 13:38:46 deraadt Exp $ */ /* $OpenBSD: parse.y,v 1.408.4.1 2020/10/27 20:38:00 bluhm Exp $ */
/* /*
* Copyright (c) 2002, 2003, 2004 Henning Brauer <henning@openbsd.org> * Copyright (c) 2002, 2003, 2004 Henning Brauer <henning@openbsd.org>
* Copyright (c) 2001 Markus Friedl. All rights reserved. * Copyright (c) 2001 Markus Friedl. All rights reserved.
* Copyright (c) 2001 Daniel Hartmeier. All rights reserved. * Copyright (c) 2001 Daniel Hartmeier. All rights reserved.
* Copyright (c) 2001 Theo de Raadt. All rights reserved. * Copyright (c) 2001 Theo de Raadt. All rights reserved.
* Copyright (c) 2016, 2017 Job Snijders <job@openbsd.org> * Copyright (c) 2016, 2017 Job Snijders <job@openbsd.org>
* Copyright (c) 2016 Peter Hessler <phessler@openbsd.org> * Copyright (c) 2016 Peter Hessler <phessler@openbsd.org>
* Copyright (c) 2017, 2018 Sebastian Benoit <benno@openbsd.org> * Copyright (c) 2017, 2018 Sebastian Benoit <benno@openbsd.org>
* *
skipping to change at line 4522 skipping to change at line 4522
{ {
struct prefixset_item *psi; struct prefixset_item *psi;
struct roa_set rs, *rsp; struct roa_set rs, *rsp;
/* no prefixlen option in this tree */ /* no prefixlen option in this tree */
npsi->p.op = OP_NONE; npsi->p.op = OP_NONE;
npsi->p.len_max = npsi->p.len_min = npsi->p.len; npsi->p.len_max = npsi->p.len_min = npsi->p.len;
psi = RB_INSERT(prefixset_tree, curpsitree, npsi); psi = RB_INSERT(prefixset_tree, curpsitree, npsi);
if (psi == NULL) if (psi == NULL)
psi = npsi; psi = npsi;
else
free(npsi);
if (psi->set == NULL) if (psi->set == NULL)
if ((psi->set = set_new(1, sizeof(rs))) == NULL) if ((psi->set = set_new(1, sizeof(rs))) == NULL)
fatal("set_new"); fatal("set_new");
/* merge sets with same key, longer maxlen wins */ /* merge sets with same key, longer maxlen wins */
if ((rsp = set_match(psi->set, as)) != NULL) { if ((rsp = set_match(psi->set, as)) != NULL) {
if (rsp->maxlen < max) if (rsp->maxlen < max)
rsp->maxlen = max; rsp->maxlen = max;
} else { } else {
 End of changes. 2 change blocks. 
1 lines changed or deleted 3 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)