diff options
author | zi <zi@FreeBSD.org> | 2012-10-24 06:20:15 +0800 |
---|---|---|
committer | zi <zi@FreeBSD.org> | 2012-10-24 06:20:15 +0800 |
commit | e32ac3f4ee5abf870124347bb8b89982e39d7dd5 (patch) | |
tree | 61a1bbcd1f4ef5b3cf1ba4ba49111006cd35338b /net | |
parent | 36d692d4c5c0bbead529feb791ad7ad6b6458e08 (diff) | |
download | freebsd-ports-gnome-e32ac3f4ee5abf870124347bb8b89982e39d7dd5.tar.gz freebsd-ports-gnome-e32ac3f4ee5abf870124347bb8b89982e39d7dd5.tar.zst freebsd-ports-gnome-e32ac3f4ee5abf870124347bb8b89982e39d7dd5.zip |
- Fix calls to setsockopt.
- Bump PORTREVISION
Submitted by: Jimmy Olgeni <olgeni@FreeBSD.org>, Bryan Drewery <bdrewery@freebsd.org>
Obtained from: Upstream github repo
Feature safe: yes
Diffstat (limited to 'net')
-rw-r--r-- | net/mosh/Makefile | 1 | ||||
-rw-r--r-- | net/mosh/files/patch-src__network__network.cc | 18 |
2 files changed, 19 insertions, 0 deletions
diff --git a/net/mosh/Makefile b/net/mosh/Makefile index a9de4ce5868e..8094aa614791 100644 --- a/net/mosh/Makefile +++ b/net/mosh/Makefile @@ -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/ diff --git a/net/mosh/files/patch-src__network__network.cc b/net/mosh/files/patch-src__network__network.cc new file mode 100644 index 000000000000..374e0d557ab1 --- /dev/null +++ b/net/mosh/files/patch-src__network__network.cc @@ -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 )" ); |