Support non-default TRP and TID ports
authorJennifer Richards <jennifer@painless-security.com>
Thu, 24 May 2018 22:30:11 +0000 (18:30 -0400)
committerJennifer Richards <jennifer@painless-security.com>
Thu, 24 May 2018 22:30:11 +0000 (18:30 -0400)
commit7d902566f139ab6603c2b4a534c12f465526790d
tree512adac58c5e7e43f87fc75656a269f92f983b74
parentb9776b2a5e8fa45749148e34c3f2df6ec4249ead
Support non-default TRP and TID ports

  * Include trust_router and next_hop ports in inforecs, routes, and
    update msgs
    - affects encoders and decoders
    - use next_hop from the inforec instead of assuming it is the
      peer's server address
    - default next_hop to the trust_router for backward compatibility
    - default both ports to the standard well-known ports if not given
  * fill in local routes with our hostname/port
    - no longer permit empty next_hop fields
  * Update filter handlers
    - handle next_hop field
    - use hostname:port format (or just hostname with default port)
    - handle next_hop field
  * Keep track of AAA server ports
  * Be more careful with tr_msg JSON helper return values
  * Use tr_name_strdup() to avoid ad hoc conversion from name to string
  * Use signed int as port to allow -1 as an invalid port indicator
  * Remove now-obsolete tr_aaa_server_from_name() function
14 files changed:
common/tr_filter.c
common/tr_msg.c
common/tr_util.c
include/tr_aaa_server.h
include/tr_util.h
include/trp_internal.h
include/trp_route.h
include/trust_router/trp.h
tr/tr_tid.c
tr/tr_trp.c
trp/trp_route.c
trp/trp_route_encoders.c
trp/trp_upd.c
trp/trps.c