mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-01-06 05:49:30 +01:00
1430036684
We need several notleak() annotations here: 1. The temporary structure which is handed to retry_peer_connected(). It's waiting for the master to respond to our connect_reconnected message. 2. We don't keep a pointer to the io_conn for a peer, so we need to mark those as not being a leak. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2.4 KiB
2.4 KiB
1 | #include <common/cryptomsg.h> |
---|---|
2 | #include <common/wireaddr.h> |
3 | #include <lightningd/gossip_msg.h> |
4 | connectctl_init,2000 |
5 | connectctl_init,,id,struct pubkey |
6 | connectctl_init,,gflen,u16 |
7 | connectctl_init,,globalfeatures,gflen*u8 |
8 | connectctl_init,,lflen,u16 |
9 | connectctl_init,,localfeatures,lflen*u8 |
10 | connectctl_init,,num_wireaddrs,u16 |
11 | connectctl_init,,wireaddrs,num_wireaddrs*struct wireaddr_internal |
12 | connectctl_init,,listen_announce,num_wireaddrs*enum addr_listen_announce |
13 | connectctl_init,,tor_proxyaddr,?struct wireaddr |
14 | connectctl_init,,use_tor_proxy_always,bool |
15 | connectctl_init,,dev_allow_localhost,bool |
16 | connectctl_init,,use_dns,bool |
17 | connectctl_init,,tor_password,wirestring |
18 | # Connectd->master, here are the addresses I bound, can announce. |
19 | connectctl_init_reply,2100 |
20 | connectctl_init_reply,,num_bindings,u16 |
21 | connectctl_init_reply,,bindings,num_bindings*struct wireaddr_internal |
22 | connectctl_init_reply,,num_announcable,u16 |
23 | connectctl_init_reply,,announcable,num_announcable*struct wireaddr |
24 | # Activate the connect daemon, so others can connect. |
25 | connectctl_activate,2025 |
26 | # Do we listen? |
27 | connectctl_activate,,listen,bool |
28 | # Connectd->master, I am ready. |
29 | connectctl_activate_reply,2125 |
30 | # connectd->master: disconnect this peer please (due to reconnect). |
31 | connect_reconnected,2112 |
32 | connect_reconnected,,id,struct pubkey |
33 | # Master -> connectd: connect to a peer. |
34 | connectctl_connect_to_peer,2001 |
35 | connectctl_connect_to_peer,,id,struct pubkey |
36 | connectctl_connect_to_peer,,seconds_waited,u32 |
37 | connectctl_connect_to_peer,,addrhint,?struct wireaddr_internal |
38 | # Connectd->master: connect failed. |
39 | connectctl_connect_failed,2020 |
40 | connectctl_connect_failed,,id,struct pubkey |
41 | connectctl_connect_failed,,failreason,wirestring |
42 | connectctl_connect_failed,,seconds_to_delay,u32 |
43 | connectctl_connect_failed,,addrhint,?struct wireaddr_internal |
44 | # Connectd -> master: we got a peer. Two fds: peer and gossip |
45 | connect_peer_connected,2002 |
46 | connect_peer_connected,,id,struct pubkey |
47 | connect_peer_connected,,addr,struct wireaddr_internal |
48 | connect_peer_connected,,crypto_state,struct crypto_state |
49 | connect_peer_connected,,gflen,u16 |
50 | connect_peer_connected,,globalfeatures,gflen*u8 |
51 | connect_peer_connected,,lflen,u16 |
52 | connect_peer_connected,,localfeatures,lflen*u8 |
53 | # master -> connectd: peer has disconnected. |
54 | connectctl_peer_disconnected,2015 |
55 | connectctl_peer_disconnected,,id,struct pubkey |
56 | # master -> connectd: do you have a memleak? |
57 | connect_dev_memleak,2033 |
58 | connect_dev_memleak_reply,2133 |
59 | connect_dev_memleak_reply,,leak,bool |