added two more test multicast applications: multicat/multisend. sockaddr_in6/in6_addr must be visible through <netinet/in.h>, fixed that as well.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20926 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Hugo Santos
2007-04-30 16:56:58 +00:00
parent 4ce381e26c
commit 75f1f9e04a
5 changed files with 660 additions and 17 deletions
+7
View File
@@ -8,6 +8,9 @@
#include <endian.h>
#include <stdint.h>
/* RFC 2553 states that these must be available through <netinet/in.h> */
#include <netinet6/in6.h>
#ifdef __cplusplus
extern "C" {
#endif
@@ -132,6 +135,10 @@ struct group_source_req {
#define MCAST_JOIN_SOURCE_GROUP 22 /* group_source_req */
#define MCAST_LEAVE_SOURCE_GROUP 23 /* group_source_req */
#define IPV6_MULTICAST_IF 24 /* int */
#define IPV6_MULTICAST_HOPS 25 /* int */
#define IPV6_MULTICAST_LOOP 26 /* int */
#define __IPADDR(x) ((uint32_t)htonl((uint32_t)(x)))
#define INADDR_ANY __IPADDR(0x00000000)