]> git.puffer.fish Git - mirror/frr.git/commit
lib: Add hash and use const a bit more intelligently
authorQuentin Young <qlyoung@cumulusnetworks.com>
Mon, 19 Mar 2018 13:01:52 +0000 (09:01 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Fri, 6 Apr 2018 17:22:43 +0000 (13:22 -0400)
commitd36d0d57711ec79bb7ff4360b62d80b1a9809f6f
tree7e9f9c3fc7865e2bb9129a546389d857fff6d641
parent6568993b1b624637db7999b7f00cc62b7501bd4f
lib: Add hash and use const a bit more intelligently

This commit adds code to notify the compiler that we
will not be changing the arguments to nexthop2str
and we expect thre return to be treated the same.

Additionally we add some code to allow nexthops to
be hashed to be used in a hash.

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
lib/nexthop.c
lib/nexthop.h