summaryrefslogtreecommitdiffstats
path: root/lib/libalias/alias.c
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>1998-06-24 06:58:00 +0000
committerbrian <brian@FreeBSD.org>1998-06-24 06:58:00 +0000
commit5ed7f2c4ee2d5354eb7844c995ea1967ef819b77 (patch)
tree552283990bcc9a2c0d5bd5f9e834336a3433d8d4 /lib/libalias/alias.c
parentdb662b91fdd2f690025e4eeb7b578c512eb57a8a (diff)
downloadFreeBSD-src-5ed7f2c4ee2d5354eb7844c995ea1967ef819b77.zip
FreeBSD-src-5ed7f2c4ee2d5354eb7844c995ea1967ef819b77.tar.gz
Add CUSEEME support. This has *not* been tested, nor
could I find anyone to test it, so please report any problems to me.
Diffstat (limited to 'lib/libalias/alias.c')
-rw-r--r--lib/libalias/alias.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/libalias/alias.c b/lib/libalias/alias.c
index f0c0804..48a852a 100644
--- a/lib/libalias/alias.c
+++ b/lib/libalias/alias.c
@@ -99,6 +99,7 @@
#define FTP_CONTROL_PORT_NUMBER 21
#define IRC_CONTROL_PORT_NUMBER_1 6667
#define IRC_CONTROL_PORT_NUMBER_2 6668
+#define CUSEEME_PORT_NUMBER 7648
/*
The following macro is used to update an
@@ -623,6 +624,9 @@ UdpAliasIn(struct ip *pip)
&ud->uh_dport );
}
+ if (ntohs(ud->uh_dport) == CUSEEME_PORT_NUMBER)
+ AliasHandleCUSeeMeIn(pip, original_address);
+
/* If UDP checksum is not zero, then adjust since destination port */
/* is being unaliased and destination port is being altered. */
if (ud->uh_sum != 0)
@@ -668,6 +672,9 @@ UdpAliasOut(struct ip *pip)
alias_address = GetAliasAddress(link);
alias_port = GetAliasPort(link);
+ if (ntohs(ud->uh_dport) == CUSEEME_PORT_NUMBER)
+ AliasHandleCUSeeMeOut(pip, link);
+
/* If NETBIOS Datagram, It should be alias address in UDP Data, too */
if (ntohs(ud->uh_dport) == NETBIOS_DGM_PORT_NUMBER
|| ntohs(ud->uh_sport) == NETBIOS_DGM_PORT_NUMBER )
OpenPOWER on IntegriCloud