30
/* SAP socket port and address */
36
char *name; /* Session Name */
37
char *cdata; /* Connection Data RFC2327 */
38
char *mdata; /* Media Announcement Data RFC2327 */
39
char *odata; /* Origin Data RFC2327 */
41
uint32_t addr; /* For the SAP header */
43
struct stream_s *stream;
46
#define SAP_ADDRTYPE_V4 0
47
#define SAP_ADDRTYPE_V6 1
49
#define SAP_MSGTYPE_ANNOUNCE 1
50
#define SAP_MSGTYPE_DELETE 0
52
#define SAP_V4_GLOBAL_ADDRESS "224.2.127.254"
53
#define SAP_V4_ORG_ADDRESS "239.195.255.255" /* Organization-local SAP address */
54
#define SAP_V4_LOCAL_ADDRESS "239.255.255.255" /* Local (smallest non-link-local scope) SAP address */
55
#define SAP_V4_LINK_ADDRESS "224.0.0.255" /* Link-local SAP address */
58
#define SAP_PORT 9875 /* As per RFC 2974 */
59
#define SAP_MAX_SIZE 1024 /* As per RFC 2974 */
61
int sap_init(struct channel_s *channel);