svn commit: r306333 - in head/net/mosh: . files
Ryan Steinmetz
zi at FreeBSD.org
Tue Oct 23 22:20:16 UTC 2012
Author: zi
Date: Tue Oct 23 22:20:15 2012
New Revision: 306333
URL: http://svn.freebsd.org/changeset/ports/306333
Log:
- Fix calls to setsockopt.
- Bump PORTREVISION
Submitted by: Jimmy Olgeni <olgeni at FreeBSD.org>, Bryan Drewery <bdrewery at freebsd.org>
Obtained from: Upstream github repo
Feature safe: yes
Added:
head/net/mosh/files/
head/net/mosh/files/patch-src__network__network.cc (contents, props changed)
Modified:
head/net/mosh/Makefile
Modified: head/net/mosh/Makefile
==============================================================================
--- head/net/mosh/Makefile Tue Oct 23 21:16:56 2012 (r306332)
+++ head/net/mosh/Makefile Tue Oct 23 22:20:15 2012 (r306333)
@@ -3,6 +3,7 @@
PORTNAME= mosh
PORTVERSION= 1.2.3
+PORTREVISION= 1
CATEGORIES= net
MASTER_SITES= http://cloud.github.com/downloads/keithw/${PORTNAME}/ \
http://mirrors.rit.edu/zi/
Added: head/net/mosh/files/patch-src__network__network.cc
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/net/mosh/files/patch-src__network__network.cc Tue Oct 23 22:20:15 2012 (r306333)
@@ -0,0 +1,18 @@
+--- ./src/network/network.cc.orig 2012-10-19 15:45:18.000000000 -0400
++++ ./src/network/network.cc 2012-10-23 18:15:42.000000000 -0400
+@@ -158,13 +158,13 @@
+
+ /* set diffserv values to AF42 + ECT */
+ uint8_t dscp = 0x92;
+- if ( setsockopt( _fd, IPPROTO_IP, IP_TOS, &dscp, 1) < 0 ) {
++ if ( setsockopt( _fd, IPPROTO_IP, IP_TOS, &dscp, sizeof (dscp)) < 0 ) {
+ // perror( "setsockopt( IP_TOS )" );
+ }
+
+ /* request explicit congestion notification on received datagrams */
+ #ifdef HAVE_IP_RECVTOS
+- char tosflag = true;
++ int tosflag = true;
+ socklen_t tosoptlen = sizeof( tosflag );
+ if ( setsockopt( _fd, IPPROTO_IP, IP_RECVTOS, &tosflag, tosoptlen ) < 0 ) {
+ perror( "setsockopt( IP_RECVTOS )" );
More information about the svn-ports-all
mailing list