linux_ssm.h

Go to the documentation of this file.
00001 
00036 #ifndef _LINUX_SSM_H_
00037 #define _LINUX_SSM_H_
00038 
00039 #ifdef LINUX
00040 
00041 #include <netinet/in.h>
00042 
00043 #include "defines.h"
00044 
00045 #ifdef __cplusplus
00046 extern "C" {
00047 #endif
00048 
00049 #ifndef IP_ADD_SOURCE_MEMBERSHIP
00050 
00055 struct ip_mreq_source {
00056   struct in_addr imr_multiaddr;  
00057   struct in_addr imr_interface;  
00058   struct in_addr imr_sourceaddr; 
00059 };
00060 
00061 #define IP_ADD_SOURCE_MEMBERSHIP        39
00062 #define IP_DROP_SOURCE_MEMBERSHIP       40
00063 
00064 #endif
00065 
00066 #ifndef MCAST_JOIN_SOURCE_GROUP
00067 
00072 struct group_req {
00073   uint32_t gr_interface;                        
00074   struct sockaddr_storage gr_group;     
00075 };
00076 
00081 struct group_source_req {
00082   uint32_t gsr_interface;                               
00083   struct sockaddr_storage gsr_group;    
00084   struct sockaddr_storage gsr_source;   
00085 };
00086 
00087 #define MCAST_JOIN_SOURCE_GROUP         46
00088 #define MCAST_LEAVE_SOURCE_GROUP        47
00089 
00090 #endif
00091 
00092 #endif
00093 
00094 #ifdef __cplusplus
00095 }; //extern "C"
00096 #endif
00097 
00098 #endif

Generated on Fri Mar 9 19:59:51 2007 for MAD-FCL by  doxygen 1.5.0