mirror_frr/bfdd
Donald Sharp f91d3ae36c bfdd: Prevent unininited data transmittal
Valgrind reports:

2052866-==2052866==
2052866-==2052866== Syscall param sendmsg(msg.msg_name) points to uninitialised byte(s)
2052866:==2052866==    at 0x49C8E13: sendmsg (sendmsg.c:28)
2052866-==2052866==    by 0x11DC08: bp_udp_send (bfd_packet.c:823)
2052866-==2052866==    by 0x11DD76: ptm_bfd_echo_snd (bfd_packet.c:179)
2052866-==2052866==    by 0x114C2D: ptm_bfd_echo_xmt_TO (bfd.c:469)
2052866-==2052866==    by 0x114C2D: ptm_bfd_echo_start (bfd.c:498)
2052866-==2052866==    by 0x114C2D: bs_echo_timer_handler (bfd.c:1199)
2052866-==2052866==    by 0x11E478: bfd_recv_cb (bfd_packet.c:702)
2052866-==2052866==    by 0x4904846: thread_call (thread.c:1681)
2052866-==2052866==    by 0x48CB4DF: frr_run (libfrr.c:1126)
2052866-==2052866==    by 0x113044: main (bfdd.c:403)
2052866-==2052866==  Address 0x1ffefff3e8 is on thread 1's stack

In ptm_bfd_echo_snd, for the v4 case we were memsetting the v6 memory
then setting the v4 memory.  Just fix it.

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
2021-01-30 14:31:47 -05:00
..
.gitignore *: cleanup .gitignore files 2018-09-08 21:30:42 +02:00
bfd_packet.c bfdd: Prevent unininited data transmittal 2021-01-30 14:31:47 -05:00
bfd.c bfdd: improve some debug messages related to zebra notifications 2021-01-09 13:29:45 +00:00
bfd.h bfdd: support connecting to BFD data plane 2020-11-24 07:55:07 -03:00
bfdctl.h bfdd: implement minimum TTL 2020-08-11 21:22:39 -03:00
bfdd_cli.c bfdd: session specific command type checks 2020-12-01 08:01:37 -03:00
bfdd_nb_config.c bfdd: use * as a placeholder for an empty interface name in northbound 2020-09-24 20:43:38 +03:00
bfdd_nb_state.c *: change the signature of the northbound callbacks to be more flexible 2020-04-23 10:14:32 -03:00
bfdd_nb.c bfdd: implement minimum TTL 2020-08-11 21:22:39 -03:00
bfdd_nb.h bfdd: implement minimum TTL 2020-08-11 21:22:39 -03:00
bfdd_vty.c bfdd: distributed BFD show commands 2020-11-24 07:54:07 -03:00
bfdd.c bfdd: Remove #if 0 2021-01-28 13:58:34 -05:00
bfdd.conf.sample bfdd: imported new daemon source code 2018-08-08 18:24:53 -03:00
bfddp_packet.h bfdd: import data plane protocol header 2020-11-24 07:54:07 -03:00
config.c bfdd: use standard log macros 2020-04-10 11:06:22 -03:00
control.c * : update signature of thread_cancel api 2020-10-23 08:59:34 -04:00
dplane.c bfdd: support connecting to BFD data plane 2020-11-24 07:55:07 -03:00
event.c bfdd: remove time calculation debugs 2020-04-14 09:35:08 -03:00
Makefile bfdd: Add some code so we can compile from w/ in the bfdd dir 2019-02-13 23:23:48 -05:00
ptm_adapter.c bfdd: improve some debug messages related to zebra notifications 2021-01-09 13:29:45 +00:00
subdir.am bfdd: import distributed BFD implementation 2020-11-24 07:54:07 -03:00