diff options
Diffstat (limited to 'src/transport/gnunet-communicator-unix.c')
-rw-r--r-- | src/transport/gnunet-communicator-unix.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/transport/gnunet-communicator-unix.c b/src/transport/gnunet-communicator-unix.c index 31d2e4ed3..6ea0ea360 100644 --- a/src/transport/gnunet-communicator-unix.c +++ b/src/transport/gnunet-communicator-unix.c | |||
@@ -57,7 +57,11 @@ | |||
57 | /** | 57 | /** |
58 | * Our MTU. | 58 | * Our MTU. |
59 | */ | 59 | */ |
60 | #ifndef DARWIN | ||
60 | #define UNIX_MTU UINT16_MAX | 61 | #define UNIX_MTU UINT16_MAX |
62 | #else | ||
63 | #define UNIX_MTU 2048 | ||
64 | #endif | ||
61 | 65 | ||
62 | GNUNET_NETWORK_STRUCT_BEGIN | 66 | GNUNET_NETWORK_STRUCT_BEGIN |
63 | 67 | ||
@@ -669,7 +673,9 @@ setup_queue (const struct GNUNET_PeerIdentity *target, | |||
669 | queue->qh = GNUNET_TRANSPORT_communicator_mq_add (ch, | 673 | queue->qh = GNUNET_TRANSPORT_communicator_mq_add (ch, |
670 | &queue->target, | 674 | &queue->target, |
671 | foreign_addr, | 675 | foreign_addr, |
672 | UNIX_MTU, | 676 | UNIX_MTU - sizeof (struct UNIXMessage), |
677 | GNUNET_TRANSPORT_QUEUE_LENGTH_UNLIMITED, | ||
678 | 0, | ||
673 | GNUNET_NT_LOOPBACK, | 679 | GNUNET_NT_LOOPBACK, |
674 | cs, | 680 | cs, |
675 | queue->mq); | 681 | queue->mq); |