Commit 02299d4a authored by Adrian Knoth's avatar Adrian Knoth Committed by GitHub
Browse files

Merge pull request #141 from jmendeth/patch-1

Account for IP+UDP header in MTU
parents d1df7524 821dfa06
...@@ -49,8 +49,7 @@ using namespace std; ...@@ -49,8 +49,7 @@ using namespace std;
#define UDP_HEADER_SIZE 64 // 40 bytes for IP header in IPV6, 20 in IPV4, 8 for UDP, so take 64 #define UDP_HEADER_SIZE 64 // 40 bytes for IP header in IPV6, 20 in IPV4, 8 for UDP, so take 64
#define HEADER_SIZE (sizeof(packet_header_t)) #define HEADER_SIZE (sizeof(packet_header_t))
// TODO : change PACKET_AVAILABLE_SIZE definition ==> #define PACKET_AVAILABLE_SIZE(params) ((params)->fMtu - UDP_HEADER_SIZE - sizeof(packet_header_t)) #define PACKET_AVAILABLE_SIZE(params) ((params)->fMtu - UDP_HEADER_SIZE - HEADER_SIZE)
#define PACKET_AVAILABLE_SIZE(params) ((params)->fMtu - HEADER_SIZE)
namespace Jack namespace Jack
{ {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment