projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Return non-zero exit code when encountering configuration errors during startup.
[tinc]
/
src
/
route.c
diff --git
a/src/route.c
b/src/route.c
index
4ae56a5
..
c11267b
100644
(file)
--- a/
src/route.c
+++ b/
src/route.c
@@
-1,7
+1,7
@@
/*
route.c -- routing
Copyright (C) 2000-2005 Ivo Timmermans,
/*
route.c -- routing
Copyright (C) 2000-2005 Ivo Timmermans,
- 2000-201
2
Guus Sliepen <guus@tinc-vpn.org>
+ 2000-201
4
Guus Sliepen <guus@tinc-vpn.org>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@
-197,7
+197,7
@@
static void learn_mac(mac_t *address) {
/* If we don't know this MAC address yet, store it */
if(!subnet) {
/* If we don't know this MAC address yet, store it */
if(!subnet) {
- ifdebug(TRAFFIC) logger(LOG_INFO, "Learned new MAC address %
hx:%hx:%hx:%hx:%hx:%h
x",
+ ifdebug(TRAFFIC) logger(LOG_INFO, "Learned new MAC address %
x:%x:%x:%x:%x:%
x",
address->x[0], address->x[1], address->x[2], address->x[3],
address->x[4], address->x[5]);
address->x[0], address->x[1], address->x[2], address->x[3],
address->x[4], address->x[5]);
@@
-340,7
+340,7
@@
static void fragment_ipv4_packet(node_t *dest, vpn_packet_t *packet, length_t et
todo = ntohs(ip.ip_len) - ip_size;
if(ether_size + ip_size + todo != packet->len) {
todo = ntohs(ip.ip_len) - ip_size;
if(ether_size + ip_size + todo != packet->len) {
- ifdebug(TRAFFIC) logger(LOG_WARNING, "Length of packet (%d) doesn't match length in IPv4 header (%
zd)", packet->len, ether_size + ip_size + todo
);
+ ifdebug(TRAFFIC) logger(LOG_WARNING, "Length of packet (%d) doesn't match length in IPv4 header (%
d)", packet->len, (int)(ether_size + ip_size + todo)
);
return;
}
return;
}