]> git.puffer.fish Git - matthieu/frr.git/commit
ldpd: During code inspection we are mixing data sizes
authorDonald Sharp <sharpd@cumulusnetworks.com>
Wed, 11 Mar 2020 13:03:17 +0000 (09:03 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Wed, 11 Mar 2020 13:03:17 +0000 (09:03 -0400)
commit6cd8093d3207e86d318953c3ebd4b9120078a742
tree724e51495400799b28dfa2f08780fe11b03ec803
parent7b26b14467f0767909c6489f5ad9aac44fb949c8
ldpd: During code inspection we are mixing data sizes

As I understand it ldpd was originally developed as a standalone
daemon for *BSD land.  Then ported to FRR.  FRR uses ifindex_t
as the base type for the ifindex.  Mixing `unsigned short` and
`int` and `unsigned int` is going to lead to fun somewhere
along the way.  Especially when we get to run on a system
with ifindex churn( I'm looking at you docker ).

Attempt to convert all of ldpd to think of the ifindex as a
`ifindex_t`.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
ldpd/hello.c
ldpd/interface.c
ldpd/ldpd.h
ldpd/ldpe.c
ldpd/ldpe.h
ldpd/logmsg.c
ldpd/socket.c