"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/bgpctl/util.c" 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.

util.c  (openbgpd-6.7p0):util.c  (openbgpd-6.8p0)
/* $OpenBSD: util.c,v 1.53 2020/04/23 16:13:11 claudio Exp $ */ /* $OpenBSD: util.c,v 1.54 2020/05/10 13:38:46 deraadt Exp $ */
/* /*
* Copyright (c) 2006 Claudio Jeker <claudio@openbsd.org> * Copyright (c) 2006 Claudio Jeker <claudio@openbsd.org>
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org> * Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
* *
* Permission to use, copy, modify, and distribute this software for any * Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above * purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies. * copyright notice and this permission notice appear in all copies.
* *
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
skipping to change at line 166 skipping to change at line 166
for (cp = iana_ext_comms; cp->subname != NULL; cp++) { for (cp = iana_ext_comms; cp->subname != NULL; cp++) {
if ((type == cp->type || type == -1) && subtype == cp->subtype) if ((type == cp->type || type == -1) && subtype == cp->subtype)
return (cp->subname); return (cp->subname);
} }
snprintf(etype, sizeof(etype), "[%u]", subtype); snprintf(etype, sizeof(etype), "[%u]", subtype);
return (etype); return (etype);
} }
const char * const char *
log_shutcomm(const char *communication) { log_reason(const char *communication) {
static char buf[(SHUT_COMM_LEN - 1) * 4 + 1]; static char buf[(REASON_LEN - 1) * 4 + 1];
strnvis(buf, communication, sizeof(buf), VIS_NL | VIS_OCTAL); strnvis(buf, communication, sizeof(buf), VIS_NL | VIS_OCTAL);
return buf; return buf;
} }
const char * const char *
aspath_delim(u_int8_t seg_type, int closing) aspath_delim(u_int8_t seg_type, int closing)
{ {
static char db[8]; static char db[8];
 End of changes. 2 change blocks. 
3 lines changed or deleted 3 lines changed or added

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