Skip to Content.
Sympa Menu

wg-multicast - can you see my SSM?

Subject: All things related to multicast

List archive

can you see my SSM?


Chronological Thread 
  • From: Alan Crosswell <>
  • To: wg-multicast <>
  • Subject: can you see my SSM?
  • Date: Thu, 01 Jul 2004 16:13:30 -0400

Folks,

I have an SSM source using openmash.org's vic at (128.59.39.150,232.1.2.3/1234). I'd appreciate hearing if anyone can receive this.

Attached is a short patch to the latest openmash source code to get it to properly enable SSM on Fedora Core 2. This works around the hosed-up include file conflicts caused by 2.4 glibc vs. the 2.6 kernel. It's a really ugly way to do it but it allowed me to get a SSM client and server working in an hour instead of spending a day or two fixing broken include files.

After building with this patch, use "vic
/1234".

/a
diff -c -r mash-code-2004-04-16/mash/net/net-ip.cc mash-code-2004-04-16.alan/mash/net/net-ip.cc
*** mash-code-2004-04-16/mash/net/net-ip.cc	2003-04-23 19:57:35.000000000 -0400
--- mash-code-2004-04-16.alan/mash/net/net-ip.cc	2004-06-30 16:15:45.000000000 -0400
***************
*** 45,50 ****
--- 45,51 ----
  #include "net.h"
  #include "udp.h"
  #include "tclcl.h"
+ #include "ssmhack.h"
  
  class IPNetwork : public Network {
      public:
diff -c -r mash-code-2004-04-16/mash/net/udp.cc mash-code-2004-04-16.alan/mash/net/udp.cc
*** mash-code-2004-04-16/mash/net/udp.cc	2004-03-30 18:20:44.000000000 -0500
--- mash-code-2004-04-16.alan/mash/net/udp.cc	2004-06-30 16:19:19.000000000 -0400
***************
*** 50,55 ****
--- 50,56 ----
  #include "iohandler.h"
  #include "udp.h"
  #include "udp-if.h"
+ #include "ssmhack.h"
  
  #ifndef MAX_BUFSIZE
  #ifdef FreeBSD
*** /dev/null	2004-02-23 16:02:56.000000000 -0500
--- mash-code-2004-04-16.alan/mash/net/ssmhack.h	2004-06-30 16:26:26.000000000 -0400
***************
*** 0 ****
--- 1,15 ----
+ /* SSM hack to get this code to build on Fedora Core 2
+  *  Just sticking these defines here was easier than trying to unbreak the
+  *  total mess of glibc kernel includes vs. what's actually in the kernel.
+  */
+ 
+ 
+ #define IP_ADD_SOURCE_MEMBERSHIP	39
+ #define IP_DROP_SOURCE_MEMBERSHIP	40
+ #define	IN_CLASSD_SSM(a)		((((long int) (a)) & 0xff000000) == 0xe8000000)
+ 
+ struct ip_mreq_source {
+ 	struct in_addr	imr_multiaddr;
+ 	struct in_addr	imr_interface;
+ 	struct in_addr	imr_sourceaddr;
+ };


  • can you see my SSM?, Alan Crosswell, 07/01/2004

Archive powered by MHonArc 2.6.16.

Top of Page