Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 21 Jun 1998 11:46:45 +0100
From:      Brian Somers <brian@Awfulhak.org>
To:        freebsd-hackers@FreeBSD.ORG, Charles Mott <cmott@srv.net>, Ari Suutari <ari@suutari.iki.fi>
Subject:   CUSEEME
Message-ID:  <199806211046.LAA14433@awfulhak.org>

index | next in thread | raw e-mail

[-- Attachment #1 --]
Hi,

Is anyone in a position to test these patches to libalias ?  I have 
no way of testing them myself, but the job looked so straight forward 
that I thought I'd give it a shot.

I've attached the patches because they're reasonably small (<4k).

The patches are against libalias in -current.  If you're not running 
-current, you can download the latest ppp from 
http://www.Awfulhak.org/ppp/ and use the libalias from there.

The patched libalias *should* provide CUSEEME support for more than 
one host behind a natd/ppp -alias gateway, but I must stress, I've no 
way of testing it here.

Thanks.
-- 
Brian <brian@Awfulhak.org>, <brian@FreeBSD.org>, <brian@OpenBSD.org>
      <http://www.Awfulhak.org>;
Don't _EVER_ lose your sense of humour....


[-- Attachment #2 --]
J{5WmoFWڢlZi+(MQK\(X\ZPJ.,I_8H,jgwy٥9c+^}o
U''ڻӷowoޢp>gV^eO˼ς߁oャ3~
z0;],3)ϏǨ~_к=%%F!%pª	l1p[G?,i:U>EQ$(9i\y.2~W&'!`O O,`r'~Qrf3-EY!xSe+":KxbI7J8ȓ{d֭grR$Za="#V)]@*=zI*xs1^)t	7
bc2v'@pÆ"5`e)LbI;|`I.gj`Fte7.oѩ:Su>͜;q:eï6[r*߂mpqZ1t[cܱ1Rt`f\NsL@+niS^3ù&3&;S-X´e456lm7>wY&by#Br&Cmذt!:'
5Cp3셮#պUo'k
u*͵k‹:pecBax[n`fR0QB7>_!u3nY1yMz,563jdZ)PfEJTF45f⮨ sjf\sM'In[a&7J+V>6JWcAXQՌ9HM+.k#?;x/gc~,,//	b"K_oi嗝1=5/|2?ĆGE  (e9GNzB/W<~sL4OQz0JO`}6k7c9U~
y6~	/fɨi$E1x[ji:lW4xI xzAZ$bD.6/Vw8eEQ
e,KdKcv~˨q(F}:sQDLUoHњi/y	I=Zլq~sR\ggqTaR	Oz5ѭ`5ZHAU<!2cbZc#Ρv%C_{ף[G+rFMUjtAP&rE%jZ4p6"֊e8:w
RT]W
ϫ6,Ä'`MjYc{oQ:^7kD+1=wh5<Ѣ$d^k[sm 합g/$XNni̞Wߑ"2*Ojd/c{΍gϭ=r57iМh҃,V&˒Z\fp+f]0Ӡ1Ayf&^Ӑ&ͫ6ĩ 	MmKt'5ipWݐMKDː]Ӄsuh:k9JϏ&Џ.0=*ļ"|Pã[*()/{9S>ͅM2|zZkZkZkZkZkZkF(
[-- Attachment #3 --]
Index: Makefile
===================================================================
RCS file: /home/ncvs/src/lib/libalias/Makefile,v
retrieving revision 1.6
diff -u -r1.6 Makefile
--- Makefile	1998/05/24 03:03:09	1.6
+++ Makefile	1998/06/12 00:07:27
@@ -2,8 +2,8 @@
 SHLIB_MAJOR= 2
 SHLIB_MINOR= 5
 CFLAGS+=-Wall -I${.CURDIR}
-SRCS=	alias.c alias_db.c alias_ftp.c alias_irc.c alias_util.c alias_old.c \
-		alias_nbt.c
+SRCS=	alias.c alias_cuseeme.c alias_db.c alias_ftp.c alias_irc.c \
+	alias_nbt.c alias_old.c alias_util.c
 
 MAN3=libalias.3 
 
Index: alias.c
===================================================================
RCS file: /home/ncvs/src/lib/libalias/alias.c,v
retrieving revision 1.7
diff -u -r1.7 alias.c
--- alias.c	1998/06/10 00:26:19	1.7
+++ alias.c	1998/06/12 00:34:47
@@ -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 @@
 								&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)
@@ -667,6 +671,9 @@
 
         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
Index: alias_local.h
===================================================================
RCS file: /home/ncvs/src/lib/libalias/alias_local.h,v
retrieving revision 1.5
diff -u -r1.5 alias_local.h
--- alias_local.h	1998/06/06 21:52:37	1.5
+++ alias_local.h	1998/06/12 00:38:41
@@ -92,6 +92,8 @@
 void AliasHandleIrcOut(struct ip *pip, struct alias_link *link, int maxsize );
 void AliasHandleUdpNbt(struct ip *, struct alias_link *, struct in_addr *, u_short);
 void AliasHandleUdpNbtNS(struct ip *, struct alias_link *, struct in_addr *, u_short *, struct in_addr *, u_short *);
+void AliasHandleCUSeeMeOut(struct ip *, struct alias_link *);
+void AliasHandleCUSeeMeIn(struct ip *, struct in_addr);
 
 
 
help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199806211046.LAA14433>