Go to file
Vincent JARDIN b42d80dd9a bgpd: fix aspath parsing
clang provides a notice about it that this p++ is useless,
because ++ would be done after the return.

From code review, I understand that p shall be incremented
for each token that is parsed from the buf. So let's keep
this intent.

Note that this commit is changing the behaviour of the source
code since from now p++ will be returned instead of p.
However, it does not hurt since the only consumer
just free() the aspath if it is parsed as as_token_unknown.
Let's be safe with a proper execution flow from now.

PS:
C reminders:

int f7(void) {
  int j = 7;

  return ++j; // return 8
}

int f8(void) {
  int j = 7;

  return j++; // return 7
}

Signed-off-by: Vincent Jardin <vincent.jardin@6wind.com>
2017-10-09 09:48:53 +02:00
babeld scan-build: fix warning 2017-10-02 09:14:03 +02:00
bgpd bgpd: fix aspath parsing 2017-10-09 09:48:53 +02:00
debian debian: Add iproute2 as dependency alternative in Debian package 2017-10-04 22:18:01 +02:00
doc doc: Added python-ipaddr dependancy 2017-10-04 14:58:35 -04:00
eigrpd eigrpd: fix clang warning 2017-10-09 00:12:01 +02:00
fpm build: clean up BUILT_SOURCES 2017-08-04 11:13:55 +02:00
gdb gdb: Add a directory of files with gdb macros 2016-05-26 15:33:30 +00:00
init build: delete .cvsignore files 2011-12-13 14:27:01 +04:00
isisd isisd: fix clang warning 2017-10-08 23:39:21 +02:00
ldpd ldpd: fix clang warning 2017-10-08 23:39:34 +02:00
lib lib: fix clang warning 2017-10-08 23:46:24 +02:00
m4 build: non-recursive auxiliary directories 2017-07-31 23:03:30 +02:00
nhrpd nhrpd: Add hash table names 2017-09-05 14:33:06 -04:00
ospf6d ospf6d: fix clang warning 2017-10-08 23:19:34 +02:00
ospfclient Merge pull request #911 from opensourcerouting/non-recursive-2 2017-08-09 14:38:07 -04:00
ospfd ospfd: fix clang warning 2017-10-08 23:39:34 +02:00
pimd Merge pull request #1264 from donaldsharp/linklist 2017-10-05 14:57:05 -04:00
pkgsrc build: non-recursive auxiliary directories 2017-07-31 23:03:30 +02:00
ports pimd: merge pimd as of 2015-01-19 2016-05-25 20:38:32 -04:00
python clippy: disable unneeded autogenerated code 2017-08-25 18:54:13 +02:00
qpb build: clean up BUILT_SOURCES 2017-08-04 11:13:55 +02:00
redhat redhat: Set permissions on systemd service file 2017-08-30 14:02:37 -05:00
ripd *: use argv[]->text instead of argv[]->arg when appropriate 2017-10-05 22:54:42 -03:00
ripngd ripngd: fix clang warning 2017-10-08 23:40:36 +02:00
snapcraft build: non-recursive auxiliary directories 2017-07-31 23:03:30 +02:00
solaris gitignore: update references to FRR 2017-07-12 11:55:04 -05:00
tests *: Convert list_delete(struct list *) to ** to allow nulling 2017-10-05 10:53:13 -04:00
tools *: Add some documentation about how to handle new daemons 2017-10-05 08:54:03 -04:00
vtysh vtysh: fix clang warning 2017-10-08 23:48:55 +02:00
watchfrr watchfrr: Add a empty 'show debug..' command 2017-09-26 16:29:31 -04:00
zebra zebra: fix clang warning 2017-10-08 23:47:43 +02:00
.clang-format *: use clang's 'ForEachMacros' format style option 2017-09-15 14:53:46 -03:00
.dir-locals.el Initial take on project emacs variables file and settings. Sets tabs for c-mode. 2017-08-10 14:07:28 -04:00
.gitignore *: ignore .dirstamp 2017-08-09 13:48:31 -04:00
AUTHORS Initial revision 2002-12-13 20:15:29 +00:00
bootstrap.sh autoreconf -i 2007-02-06 19:28:28 +00:00
buildtest.sh config: switch a few references to say FRR 2017-07-12 11:25:33 -05:00
ChangeLog Rename: freerangerouting --> frrouting 2017-03-30 14:24:05 -04:00
common.am python/clippy: make output file writing less weird 2017-08-24 00:18:53 +02:00
COMMUNITY.md COMMUNITY.md: rewrap paragraphs, update PR section 2017-07-25 15:53:05 -04:00
configure.ac Merge pull request #1069 from donaldsharp/rfc_plist 2017-09-26 17:33:29 +02:00
COPYING *: make consistent & update GPLv2 file headers 2017-05-15 16:37:41 +02:00
COPYING-LGPLv2.1 build: remove LGPL v2.0, add LGPL v2.1 2016-11-15 17:19:38 +09:00
defaults.h *: reindent 2017-07-17 14:04:07 +02:00
git-reindent-branch.py *: update git-reindent-branch.py 2017-08-22 18:51:31 +02:00
indent.py *: add indent control files 2017-07-17 14:00:23 +02:00
Makefile.am build: non-recursive pimd 2017-09-07 16:20:42 +02:00
NEWS release: 0.99.24 2016-06-03 15:56:44 -04:00
README README: add references to EIGRP and NHRP. 2017-05-12 22:51:45 +02:00
README.NetBSD config: switch a few references to say FRR 2017-07-12 11:25:33 -05:00
render_md.py build: number sections in COMMUNITY.md HTML 2016-12-05 19:08:00 +01:00
REPORTING-BUGS config: switch a few references to say FRR 2017-07-12 11:25:33 -05:00
SERVICES babeld/eigrpd: flip VTY ports & fix rpm 2017-06-13 14:36:55 +02:00
stamp-h.in Initial revision 2002-12-13 20:15:29 +00:00
update-autotools * README.NetBSD: use update-autotools instead of autoreconf 2007-02-02 16:52:38 +00:00

FRRouting is free software that manages various IPv4 and IPv6 routing
protocols.

Currently FRRouting supports BGP4, BGP4+, OSPFv2, OSPFv3, RIPv1,
RIPv2, RIPng, PIM-SM/MSDP and LDP as well as very early support for IS-IS,
EIGRP and NHRP.

See the file REPORTING-BUGS to report bugs.

Free RRRouting is free software. See the file COPYING for copying conditions.

Public email discussion can be found at https://lists.frrouting.org/listinfo

Our public slack channel is at https://frrouting.slack.com