projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix column sorting, make all lists sortable.
[tinc]
/
src
/
net_packet.c
diff --git
a/src/net_packet.c
b/src/net_packet.c
index
ac63f62
..
abfb55c
100644
(file)
--- a/
src/net_packet.c
+++ b/
src/net_packet.c
@@
-773,7
+773,7
@@
void broadcast_packet(const node_t *from, vpn_packet_t *packet) {
if(from != myself)
break;
if(from != myself)
break;
- for(node = node_
udp_
tree->head; node; node = node->next) {
+ for(node = node_tree->head; node; node = node->next) {
n = node->data;
if(n->status.reachable && ((n->via == myself && n->nexthop == n) || n->via == n))
n = node->data;
if(n->status.reachable && ((n->via == myself && n->nexthop == n) || n->via == n))
@@
-797,7
+797,7
@@
static node_t *try_harder(const sockaddr_t *from, const vpn_packet_t *pkt) {
for(node = edge_weight_tree->head; node; node = node->next) {
e = node->data;
for(node = edge_weight_tree->head; node; node = node->next) {
e = node->data;
- if(e->to == myself)
+ if(
!e->to->status.reachable ||
e->to == myself)
continue;
if(sockaddrcmp_noport(from, &e->address)) {
continue;
if(sockaddrcmp_noport(from, &e->address)) {
@@
-823,7
+823,7
@@
static node_t *try_harder(const sockaddr_t *from, const vpn_packet_t *pkt) {
void handle_incoming_vpn_data(int sock, short events, void *data) {
vpn_packet_t pkt;
char *hostname;
void handle_incoming_vpn_data(int sock, short events, void *data) {
vpn_packet_t pkt;
char *hostname;
- sockaddr_t from;
+ sockaddr_t from
= {{0}}
;
socklen_t fromlen = sizeof from;
node_t *n;
int len;
socklen_t fromlen = sizeof from;
node_t *n;
int len;