mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
Move multicast address identification fallback macros to network.h from udp.c
Originally committed as revision 25386 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
34b9e5bc4f
commit
f63630cdf3
@ -155,4 +155,11 @@ const char *ff_gai_strerror(int ecode);
|
|||||||
#define INET6_ADDRSTRLEN INET_ADDRSTRLEN
|
#define INET6_ADDRSTRLEN INET_ADDRSTRLEN
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef IN_MULTICAST
|
||||||
|
#define IN_MULTICAST(a) ((((uint32_t)(a)) & 0xf0000000) == 0xe0000000)
|
||||||
|
#endif
|
||||||
|
#ifndef IN6_IS_ADDR_MULTICAST
|
||||||
|
#define IN6_IS_ADDR_MULTICAST(a) (((uint8_t *) (a))[0] == 0xff)
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif /* AVFORMAT_NETWORK_H */
|
#endif /* AVFORMAT_NETWORK_H */
|
||||||
|
@ -40,12 +40,6 @@
|
|||||||
#define IPV6_ADD_MEMBERSHIP IPV6_JOIN_GROUP
|
#define IPV6_ADD_MEMBERSHIP IPV6_JOIN_GROUP
|
||||||
#define IPV6_DROP_MEMBERSHIP IPV6_LEAVE_GROUP
|
#define IPV6_DROP_MEMBERSHIP IPV6_LEAVE_GROUP
|
||||||
#endif
|
#endif
|
||||||
#ifndef IN_MULTICAST
|
|
||||||
#define IN_MULTICAST(a) ((((uint32_t)(a)) & 0xf0000000) == 0xe0000000)
|
|
||||||
#endif
|
|
||||||
#ifndef IN6_IS_ADDR_MULTICAST
|
|
||||||
#define IN6_IS_ADDR_MULTICAST(a) (((uint8_t *) (a))[0] == 0xff)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
int udp_fd;
|
int udp_fd;
|
||||||
|
Loading…
Reference in New Issue
Block a user