diff options
author | Nick Sayer <nsayer@FreeBSD.org> | 1999-05-09 17:34:14 +0000 |
---|---|---|
committer | Nick Sayer <nsayer@FreeBSD.org> | 1999-05-09 17:34:14 +0000 |
commit | cd113167fa57594ac25d83a8a3a834ba246e4ee5 (patch) | |
tree | a9b70d17b1d514de4cc0160f457ca438a771355b /audio/raproxy/files | |
parent | Cut-n-paste the right comment this time. (diff) |
Adding port for real audio proxy (raproxy) for pnm: streams
Diffstat (limited to 'audio/raproxy/files')
-rw-r--r-- | audio/raproxy/files/patch-aa | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/audio/raproxy/files/patch-aa b/audio/raproxy/files/patch-aa new file mode 100644 index 000000000000..bd644fe15627 --- /dev/null +++ b/audio/raproxy/files/patch-aa @@ -0,0 +1,50 @@ +--- raproxy.c.dist Thu Dec 19 15:53:23 1996 ++++ raproxy.c Mon Jul 27 11:09:01 1998 +@@ -668,6 +668,7 @@ + { + int size; + struct sockaddr_in addr, info; ++ int port; + + /* setup bind/listen etc for udp backchannel from server */ + if ( (serveraudiofd = socket (AF_INET, SOCK_DGRAM, IPPROTO_UDP)) < 0 ) { +@@ -675,6 +676,15 @@ + syslog(LOG_LVL, "raproxy: can't setup socket: %m"); + return(-1); /* Probably out of sockets */ + } ++#ifdef IP_PORTRANGE ++ port = IP_PORTRANGE_HIGH; ++ if ( setsockopt(serveraudiofd, IPPROTO_IP, IP_PORTRANGE, (char *) &port, ++ sizeof(port)) < 0 ) { ++ syslog(LOG_LVL, "raproxy: can't setsockopt(): %m"); ++ /* syslog error ? */ ++ return(-1); ++ } ++#endif + (void) bzero (&addr, sizeof (addr)); + addr.sin_family = AF_INET; + /* +@@ -1145,6 +1155,7 @@ + { + struct sockaddr_in addr, info; + int size; ++ int port; + + /* + * allocate/setup socket/fd/port FROM which we'll +@@ -1155,6 +1166,15 @@ + syslog(LOG_LVL, "raproxy: can't setup socket: %m"); + return(-1); /* Probably out of sockets */ + } ++#ifdef IP_PORTRANGE ++ port = IP_PORTRANGE_HIGH; ++ if ( setsockopt(serveraudiofd, IPPROTO_IP, IP_PORTRANGE, (char *) &port, ++ sizeof(port)) < 0 ) { ++ syslog(LOG_LVL, "raproxy: can't setsockopt(): %m"); ++ /* syslog error ? */ ++ return(-1); ++ } ++#endif + (void) bzero (&addr, sizeof (addr)); + addr.sin_family = AF_INET; + addr.sin_port = htons(0); |