o Add the FreeBSD way of telling a socket to not fragment packets

o Bump PORTREVISION
This commit is contained in:
Mario Sergio Fujikawa Ferreira 2006-05-06 02:06:17 +00:00
parent 44f372b64c
commit 1edc834671
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=161459
2 changed files with 15 additions and 1 deletions

View file

@ -7,7 +7,7 @@
PORTNAME= libjingle
PORTVERSION= 0.3.0
PORTREVISION= 2
PORTREVISION= 3
CATEGORIES= net-im
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}

View file

@ -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;