diff options
author | Ulrich Drepper <drepper@redhat.com> | 2004-07-20 07:39:10 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2004-07-20 07:39:10 +0000 |
commit | 706827351281dd853b52f8f108a6d94154cbd383 (patch) | |
tree | dfffc05cb89e2e9ba8ed0f4b09424343bc8a68ee /inet/netinet/in.h | |
parent | 3a9537a1bccc74ca3c81582ad586984296056c9d (diff) | |
download | glibc-706827351281dd853b52f8f108a6d94154cbd383.zip glibc-706827351281dd853b52f8f108a6d94154cbd383.tar.gz glibc-706827351281dd853b52f8f108a6d94154cbd383.tar.bz2 |
Update.
* inet/netinet/in.h: Define struct ip_mreq and struct
ip_mreq_source.
* sysdeps/unix/sysv/linux/bits/in.h: Define IP_UNBLOCK_SOURCE,
IP_BLOCK_SOURCE, IP_ADD_SOURCE_MEMBERSHIP,
IP_DROP_SOURCE_MEMBERSHIP, IP_MSFILTER, MCAST_JOIN_GROUP,
MCAST_BLOCK_SOURCE, MCAST_UNBLOCK_SOURCE, MCAST_LEAVE_GROUP,
MCAST_JOIN_SOURCE_GROUP, MCAST_LEAVE_SOURCE_GROUP, and
MCAST_MSFILTER.
Diffstat (limited to 'inet/netinet/in.h')
-rw-r--r-- | inet/netinet/in.h | 28 |
1 files changed, 26 insertions, 2 deletions
diff --git a/inet/netinet/in.h b/inet/netinet/in.h index 9f969cc..7ec6741 100644 --- a/inet/netinet/in.h +++ b/inet/netinet/in.h @@ -1,4 +1,4 @@ -/* Copyright (C) 1991-1999, 2000, 2001, 2003 Free Software Foundation, Inc. +/* Copyright (C) 1991-2001, 2003, 2004 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -239,7 +239,30 @@ struct sockaddr_in6 uint32_t sin6_scope_id; /* IPv6 scope-id */ }; -/* IPv6 multicast request. */ + +/* IPv4 multicast request. */ +struct ip_mreq + { + /* IP multicast address of group. */ + struct in_addr imr_multiaddr; + + /* Local IP address of interface. */ + struct in_addr imr_interface; + }; + +struct ip_mreq_source + { + /* IP multicast address of group. */ + struct in_addr imr_multiaddr; + + /* IP address of source. */ + struct in_addr imr_interface; + + /* IP address of interface. */ + struct in_addr imr_sourceaddr; + }; + +/* Likewise, for IPv6. */ struct ipv6_mreq { /* IPv6 multicast address of group */ @@ -249,6 +272,7 @@ struct ipv6_mreq unsigned int ipv6mr_interface; }; + /* Get system-specific definitions. */ #include <bits/in.h> |