summaryrefslogtreecommitdiff
path: root/net-im/libjingle/files/patch-talk__base__physicalsocketserver.cc
diff options
context:
space:
mode:
authorMario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>2006-05-06 02:06:17 +0000
committerMario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>2006-05-06 02:06:17 +0000
commit1edc8346711d9f75b3bfd73b9e889c02b8d52d2b (patch)
tree4f0e5b2ba08b4cf23a51d1f18de53f5e9dba99fa /net-im/libjingle/files/patch-talk__base__physicalsocketserver.cc
parent- Update to 1.61 (diff)
o Add the FreeBSD way of telling a socket to not fragment packets
o Bump PORTREVISION
Notes
Notes: svn path=/head/; revision=161459
Diffstat (limited to 'net-im/libjingle/files/patch-talk__base__physicalsocketserver.cc')
-rw-r--r--net-im/libjingle/files/patch-talk__base__physicalsocketserver.cc14
1 files changed, 14 insertions, 0 deletions
diff --git a/net-im/libjingle/files/patch-talk__base__physicalsocketserver.cc b/net-im/libjingle/files/patch-talk__base__physicalsocketserver.cc
new file mode 100644
index 000000000000..1cdbd0805d28
--- /dev/null
+++ b/net-im/libjingle/files/patch-talk__base__physicalsocketserver.cc
@@ -0,0 +1,14 @@
+--- talk/base/physicalsocketserver.cc.orig Thu May 4 10:51:48 2006
++++ talk/base/physicalsocketserver.cc Fri May 5 16:16:16 2006
+@@ -222,6 +222,11 @@
+ return ::setsockopt(
+ s_, IPPROTO_IP, IP_MTU_DISCOVER, &value, sizeof(value));
+ #endif
++#ifdef __FreeBSD__
++ value = (value == 0) ? 0 : 1;
++ return ::setsockopt(
++ s_, IPPROTO_IP, IP_DONTFRAG, &value, sizeof(value));
++#endif
+ #ifdef OSX
+ // This is not possible on OSX.
+ return -1;