]> granicus.if.org Git - transmission/commitdiff
#5889: Sync with libutp before its API changed
authorMike Gelfand <mikedld@mikedld.com>
Fri, 16 Oct 2015 20:27:52 +0000 (20:27 +0000)
committerMike Gelfand <mikedld@mikedld.com>
Fri, 16 Oct 2015 20:27:52 +0000 (20:27 +0000)
third-party/libutp/utp_utils.cpp

index 04758db104274868bf61db1181eed8c969bd3332..5515e62a1a643afea2ac24964c3b672ee6eba722 100644 (file)
@@ -184,7 +184,7 @@ uint32 UTP_GetMilliseconds()
 \r
 #define UDP_IPV4_MTU (ETHERNET_MTU - IPV4_HEADER_SIZE - UDP_HEADER_SIZE - GRE_HEADER_SIZE - PPPOE_HEADER_SIZE - MPPE_HEADER_SIZE - FUDGE_HEADER_SIZE)\r
 #define UDP_IPV6_MTU (ETHERNET_MTU - IPV6_HEADER_SIZE - UDP_HEADER_SIZE - GRE_HEADER_SIZE - PPPOE_HEADER_SIZE - MPPE_HEADER_SIZE - FUDGE_HEADER_SIZE)\r
-#define UDP_TEREDO_MTU (TEREDO_MTU - UDP_HEADER_SIZE)\r
+#define UDP_TEREDO_MTU (TEREDO_MTU - IPV6_HEADER_SIZE - UDP_HEADER_SIZE)\r
 \r
 uint16 UTP_GetUDPMTU(const struct sockaddr *remote, socklen_t remotelen)\r
 {\r