Normalize the received prefixes.
authorrenato <renato@openbsd.org>
Mon, 8 Aug 2016 16:45:51 +0000 (16:45 +0000)
committerrenato <renato@openbsd.org>
Mon, 8 Aug 2016 16:45:51 +0000 (16:45 +0000)
commit00f5e67face1b66f4db4de03839ed1775951758e
tree5db523b3546e245b7d7ce0db2780a668b3f8de7c
parent3d0d93b573ee19187e028731bb233cae508719df
Normalize the received prefixes.

We need to use ldp_applymask() to normalize the received
prefixes. Example: 10.1.1.0/16 -> 10.1.0.0/16.

Additionally, stop using IANA's AF numbers in map->fec.prefix.af and use
AF_INET/AF_INET6 instead. This makes the code much simpler, use AF_IPV[46]
only when necessary (decoding/encoding prefixes).

ok claudio@
usr.sbin/ldpd/labelmapping.c
usr.sbin/ldpd/lde.c
usr.sbin/ldpd/log.c