blob: 507c9ce9c45a48eb6ba83c46da49fbac0c644199 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
/* From net/if.h */
#define IFF_MULTICAST 0x800 /* supports multicast */
/* From netinet/in.h */
#define INADDR_ALLHOSTS_GROUP (u_long)0xe0000001 /* 224.0.0.1 */
#define IP_MULTICAST_IF 0x10 /* set/get IP multicast interface */
#define IP_ADD_MEMBERSHIP 0x13 /* add an IP group membership */
#define IP_MULTICAST_TTL 0x11 /* set/get IP multicast timetolive */
/*
* Argument structure for IP_ADD_MEMBERSHIP and IP_DROP_MEMBERSHIP.
*/
struct ip_mreq {
struct in_addr imr_multiaddr; /* IP multicast address of group */
struct in_addr imr_interface; /* local IP address of interface */
};
|