diff options
author | Seiichirou Hiraoka <flathill@FreeBSD.org> | 1999-11-18 23:54:19 +0000 |
---|---|---|
committer | Seiichirou Hiraoka <flathill@FreeBSD.org> | 1999-11-18 23:54:19 +0000 |
commit | abd4920c47d2ed0cbc8ecc64a12b44b937c3fc2b (patch) | |
tree | a08db2ff2040cd24b5bdecd8273426b1de413be2 /net-im/libicq | |
parent | fd10342fed367836cb381ae054203645e4235016 (diff) | |
download | ports-abd4920c47d2ed0cbc8ecc64a12b44b937c3fc2b.tar.gz ports-abd4920c47d2ed0cbc8ecc64a12b44b937c3fc2b.zip |
Notes
Diffstat (limited to 'net-im/libicq')
-rw-r--r-- | net-im/libicq/Makefile | 2 | ||||
-rw-r--r-- | net-im/libicq/files/patch-ad | 50 |
2 files changed, 51 insertions, 1 deletions
diff --git a/net-im/libicq/Makefile b/net-im/libicq/Makefile index 5a91960fe539..669f47168647 100644 --- a/net-im/libicq/Makefile +++ b/net-im/libicq/Makefile @@ -8,7 +8,7 @@ DISTNAME= libicq-0.33 CATEGORIES= net -MASTER_SITES= ftp://ftp.korsoft.com/pub/gicq/ \ +MASTER_SITES= ftp://ftp.korsoft.com/pub/gicq/ \ http://www.nectar.com/distfiles/ MAINTAINER= flathill@FreeBSD.org diff --git a/net-im/libicq/files/patch-ad b/net-im/libicq/files/patch-ad new file mode 100644 index 000000000000..ba3b41a090d2 --- /dev/null +++ b/net-im/libicq/files/patch-ad @@ -0,0 +1,50 @@ +--- src/send.c.orig Thu Nov 11 17:16:26 1999 ++++ src/send.c Thu Nov 11 17:18:50 1999 +@@ -139,6 +139,17 @@ + fprintf(stderr, "\nSocket creation failed."); + exit(1); + } ++ ++#ifdef IP_PORTRANGE ++ { ++ int i=IP_PORTRANGE_HIGH; ++ if (setsockopt(sok, IPPROTO_IP, IP_PORTRANGE, &i, sizeof(i))<0) ++ { ++ fprintf(stderr, "\nSocket range selection failed."); ++ exit(1); ++ } ++ } ++#endif + + if(Verbose & ICQ_VERB_INFO) + printf("\nSocket created. Attempting to connect..." ); +@@ -170,6 +181,12 @@ + bzero(&(sin.sin_zero), 8); + + tcp_sok = socket(AF_INET, SOCK_STREAM, 0); ++#if IP_PORTRANGE ++ { ++ int i=IP_PORTRANGE_HIGH; ++ setsockopt(tcp_sok, IPPROTO_IP, IP_PORTRANGE, &i, sizeof(i)); ++ } ++#endif + setsockopt(tcp_sok, SOL_SOCKET, SO_REUSEADDR, &retval, 4); + set_nonblock(tcp_sok); + retval = bind(tcp_sok, (struct sockaddr*)&sin, sizeof(sin)); +--- src/tcp.c.orig Thu Nov 11 17:20:01 1999 ++++ src/tcp.c Thu Nov 11 17:20:02 1999 +@@ -608,6 +608,14 @@ + sock = socket(AF_INET, SOCK_STREAM, 0); + if(sock == -1) return -1; + ++#ifdef IP_PORTRANGE ++ { ++ int i=IP_PORTRANGE_HIGH; ++ if (setsockopt(sock, IPPROTO_IP, IP_PORTRANGE, &i, sizeof(i))<0) ++ return -1; ++ } ++#endif ++ + set_nonblock(sock); + + if((bind(sock, (struct sockaddr*)&local, sizeof(struct sockaddr))) == -1) |