diff options
Diffstat (limited to 'src/vpn')
-rw-r--r-- | src/vpn/gnunet-helper-vpn-windows.c | 2 | ||||
-rw-r--r-- | src/vpn/gnunet-helper-vpn.c | 2 | ||||
-rw-r--r-- | src/vpn/gnunet-service-vpn.c | 14 |
3 files changed, 9 insertions, 9 deletions
diff --git a/src/vpn/gnunet-helper-vpn-windows.c b/src/vpn/gnunet-helper-vpn-windows.c index a9596752a..e74a0aa2f 100644 --- a/src/vpn/gnunet-helper-vpn-windows.c +++ b/src/vpn/gnunet-helper-vpn-windows.c | |||
@@ -77,7 +77,7 @@ | |||
77 | static boolean privilege_testing = FALSE; | 77 | static boolean privilege_testing = FALSE; |
78 | 78 | ||
79 | /** | 79 | /** |
80 | * Maximum size of a GNUnet message (GNUNET_SERVER_MAX_MESSAGE_SIZE) | 80 | * Maximum size of a GNUnet message (GNUNET_MAX_MESSAGE_SIZE) |
81 | */ | 81 | */ |
82 | #define MAX_SIZE 65536 | 82 | #define MAX_SIZE 65536 |
83 | 83 | ||
diff --git a/src/vpn/gnunet-helper-vpn.c b/src/vpn/gnunet-helper-vpn.c index 02889d65b..4ed4e079e 100644 --- a/src/vpn/gnunet-helper-vpn.c +++ b/src/vpn/gnunet-helper-vpn.c | |||
@@ -53,7 +53,7 @@ | |||
53 | #define DEBUG GNUNET_NO | 53 | #define DEBUG GNUNET_NO |
54 | 54 | ||
55 | /** | 55 | /** |
56 | * Maximum size of a GNUnet message (GNUNET_SERVER_MAX_MESSAGE_SIZE) | 56 | * Maximum size of a GNUnet message (GNUNET_MAX_MESSAGE_SIZE) |
57 | */ | 57 | */ |
58 | #define MAX_SIZE 65536 | 58 | #define MAX_SIZE 65536 |
59 | 59 | ||
diff --git a/src/vpn/gnunet-service-vpn.c b/src/vpn/gnunet-service-vpn.c index 4759f3746..d9daaa7e2 100644 --- a/src/vpn/gnunet-service-vpn.c +++ b/src/vpn/gnunet-service-vpn.c | |||
@@ -1839,7 +1839,7 @@ route_packet (struct DestinationEntry *destination, | |||
1839 | 1839 | ||
1840 | mlen = sizeof (struct GNUNET_EXIT_UdpServiceMessage) + | 1840 | mlen = sizeof (struct GNUNET_EXIT_UdpServiceMessage) + |
1841 | payload_length - sizeof (struct GNUNET_TUN_UdpHeader); | 1841 | payload_length - sizeof (struct GNUNET_TUN_UdpHeader); |
1842 | if (mlen >= GNUNET_SERVER_MAX_MESSAGE_SIZE) | 1842 | if (mlen >= GNUNET_MAX_MESSAGE_SIZE) |
1843 | { | 1843 | { |
1844 | GNUNET_break (0); | 1844 | GNUNET_break (0); |
1845 | return; | 1845 | return; |
@@ -1864,7 +1864,7 @@ route_packet (struct DestinationEntry *destination, | |||
1864 | 1864 | ||
1865 | mlen = sizeof (struct GNUNET_EXIT_UdpInternetMessage) + | 1865 | mlen = sizeof (struct GNUNET_EXIT_UdpInternetMessage) + |
1866 | alen + payload_length - sizeof (struct GNUNET_TUN_UdpHeader); | 1866 | alen + payload_length - sizeof (struct GNUNET_TUN_UdpHeader); |
1867 | if (mlen >= GNUNET_SERVER_MAX_MESSAGE_SIZE) | 1867 | if (mlen >= GNUNET_MAX_MESSAGE_SIZE) |
1868 | { | 1868 | { |
1869 | GNUNET_break (0); | 1869 | GNUNET_break (0); |
1870 | return; | 1870 | return; |
@@ -1904,7 +1904,7 @@ route_packet (struct DestinationEntry *destination, | |||
1904 | 1904 | ||
1905 | mlen = sizeof (struct GNUNET_EXIT_TcpServiceStartMessage) + | 1905 | mlen = sizeof (struct GNUNET_EXIT_TcpServiceStartMessage) + |
1906 | payload_length - sizeof (struct GNUNET_TUN_TcpHeader); | 1906 | payload_length - sizeof (struct GNUNET_TUN_TcpHeader); |
1907 | if (mlen >= GNUNET_SERVER_MAX_MESSAGE_SIZE) | 1907 | if (mlen >= GNUNET_MAX_MESSAGE_SIZE) |
1908 | { | 1908 | { |
1909 | GNUNET_break (0); | 1909 | GNUNET_break (0); |
1910 | return; | 1910 | return; |
@@ -1927,7 +1927,7 @@ route_packet (struct DestinationEntry *destination, | |||
1927 | 1927 | ||
1928 | mlen = sizeof (struct GNUNET_EXIT_TcpInternetStartMessage) + | 1928 | mlen = sizeof (struct GNUNET_EXIT_TcpInternetStartMessage) + |
1929 | alen + payload_length - sizeof (struct GNUNET_TUN_TcpHeader); | 1929 | alen + payload_length - sizeof (struct GNUNET_TUN_TcpHeader); |
1930 | if (mlen >= GNUNET_SERVER_MAX_MESSAGE_SIZE) | 1930 | if (mlen >= GNUNET_MAX_MESSAGE_SIZE) |
1931 | { | 1931 | { |
1932 | GNUNET_break (0); | 1932 | GNUNET_break (0); |
1933 | return; | 1933 | return; |
@@ -1963,7 +1963,7 @@ route_packet (struct DestinationEntry *destination, | |||
1963 | 1963 | ||
1964 | mlen = sizeof (struct GNUNET_EXIT_TcpDataMessage) + | 1964 | mlen = sizeof (struct GNUNET_EXIT_TcpDataMessage) + |
1965 | payload_length - sizeof (struct GNUNET_TUN_TcpHeader); | 1965 | payload_length - sizeof (struct GNUNET_TUN_TcpHeader); |
1966 | if (mlen >= GNUNET_SERVER_MAX_MESSAGE_SIZE) | 1966 | if (mlen >= GNUNET_MAX_MESSAGE_SIZE) |
1967 | { | 1967 | { |
1968 | GNUNET_break (0); | 1968 | GNUNET_break (0); |
1969 | return; | 1969 | return; |
@@ -2038,7 +2038,7 @@ route_packet (struct DestinationEntry *destination, | |||
2038 | /* update length calculations, as payload_length may have changed */ | 2038 | /* update length calculations, as payload_length may have changed */ |
2039 | mlen = sizeof (struct GNUNET_EXIT_IcmpServiceMessage) + | 2039 | mlen = sizeof (struct GNUNET_EXIT_IcmpServiceMessage) + |
2040 | alen + payload_length - sizeof (struct GNUNET_TUN_IcmpHeader); | 2040 | alen + payload_length - sizeof (struct GNUNET_TUN_IcmpHeader); |
2041 | if (mlen >= GNUNET_SERVER_MAX_MESSAGE_SIZE) | 2041 | if (mlen >= GNUNET_MAX_MESSAGE_SIZE) |
2042 | { | 2042 | { |
2043 | GNUNET_break (0); | 2043 | GNUNET_break (0); |
2044 | return; | 2044 | return; |
@@ -2168,7 +2168,7 @@ route_packet (struct DestinationEntry *destination, | |||
2168 | /* update length calculations, as payload_length may have changed */ | 2168 | /* update length calculations, as payload_length may have changed */ |
2169 | mlen = sizeof (struct GNUNET_EXIT_IcmpInternetMessage) + | 2169 | mlen = sizeof (struct GNUNET_EXIT_IcmpInternetMessage) + |
2170 | alen + payload_length - sizeof (struct GNUNET_TUN_IcmpHeader); | 2170 | alen + payload_length - sizeof (struct GNUNET_TUN_IcmpHeader); |
2171 | if (mlen >= GNUNET_SERVER_MAX_MESSAGE_SIZE) | 2171 | if (mlen >= GNUNET_MAX_MESSAGE_SIZE) |
2172 | { | 2172 | { |
2173 | GNUNET_break (0); | 2173 | GNUNET_break (0); |
2174 | return; | 2174 | return; |