"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/bgpd/parse.y" between
openbgpd-6.7p0.tar.gz and openbgpd-6.8p0.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.7p0):parse.y  (openbgpd-6.8p0)
/* $OpenBSD: parse.y,v 1.406 2020/04/23 16:13:11 claudio Exp $ */ /* $OpenBSD: parse.y,v 1.408 2020/05/10 13:38:46 deraadt 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 1300 skipping to change at line 1300
curpeer->conf.distance = $2; curpeer->conf.distance = $2;
} }
| PASSIVE { | PASSIVE {
curpeer->conf.passive = 1; curpeer->conf.passive = 1;
} }
| DOWN { | DOWN {
curpeer->conf.down = 1; curpeer->conf.down = 1;
} }
| DOWN STRING { | DOWN STRING {
curpeer->conf.down = 1; curpeer->conf.down = 1;
if (strlcpy(curpeer->conf.shutcomm, $2, if (strlcpy(curpeer->conf.reason, $2,
sizeof(curpeer->conf.shutcomm)) >= sizeof(curpeer->conf.reason)) >=
sizeof(curpeer->conf.shutcomm)) { sizeof(curpeer->conf.reason)) {
yyerror("shutdown reason too long"); yyerror("shutdown reason too long");
free($2); free($2);
YYERROR; YYERROR;
} }
free($2); free($2);
} }
| RIB STRING { | RIB STRING {
if (!find_rib($2)) { if (!find_rib($2)) {
yyerror("rib \"%s\" does not exist.", $2); yyerror("rib \"%s\" does not exist.", $2);
free($2); free($2);
 End of changes. 2 change blocks. 
4 lines changed or deleted 4 lines changed or added

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