projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Reduce pointer indirection for global list_t variables
[tinc]
/
src
/
route.c
diff --git
a/src/route.c
b/src/route.c
index
e11a792
..
559cf2f
100644
(file)
--- a/
src/route.c
+++ b/
src/route.c
@@
-504,7
+504,7
@@
static void age_subnets(void *data) {
}
}
}
}
- for list_each(connection_t, c, connection_list)
+ for list_each(connection_t, c,
&
connection_list)
if(c->edge) {
send_del_subnet(c, s);
}
if(c->edge) {
send_del_subnet(c, s);
}
@@
-543,7
+543,7
@@
static void learn_mac(mac_t *address) {
/* And tell all other tinc daemons it's our MAC */
/* And tell all other tinc daemons it's our MAC */
- for list_each(connection_t, c, connection_list)
+ for list_each(connection_t, c,
&
connection_list)
if(c->edge) {
send_add_subnet(c, subnet);
}
if(c->edge) {
send_add_subnet(c, subnet);
}
@@
-1111,7
+1111,7
@@
static void route_mac(node_t *source, vpn_packet_t *packet) {
static void send_pcap(vpn_packet_t *packet) {
pcap = false;
static void send_pcap(vpn_packet_t *packet) {
pcap = false;
- for list_each(connection_t, c, connection_list) {
+ for list_each(connection_t, c,
&
connection_list) {
if(!c->status.pcap) {
continue;
}
if(!c->status.pcap) {
continue;
}