6 * Peer Content Caching and Retrieval: Discovery Protocol [MS-PCCRD]
10 FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
12 /** PeerDist discovery port */
13 #define PEERDIST_DISCOVERY_PORT 3702
15 /** PeerDist discovery IPv4 address (239.255.255.250) */
16 #define PEERDIST_DISCOVERY_IPV4 \
17 ( ( 239 << 24 ) | ( 255 << 16 ) | ( 255 << 8 ) | ( 250 << 0 ) )
19 /** PeerDist discovery IPv6 address (ff02::c) */
20 #define PEERDIST_DISCOVERY_IPV6 \
21 { 0xff, 0x02, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0xc }
23 /** A PeerDist discovery reply block count */
24 struct peerdist_discovery_block_count {
25 /** Count (as an eight-digit hex value) */
27 } __attribute__ (( packed ));
29 /** A PeerDist discovery reply */
30 struct peerdist_discovery_reply {
31 /** List of segment ID strings
33 * The list is terminated with a zero-length string.
36 /** List of peer locations
38 * The list is terminated with a zero-length string.
43 extern char * peerdist_discovery_request ( const char *uuid, const char *id );
44 extern int peerdist_discovery_reply ( char *data, size_t len,
45 struct peerdist_discovery_reply *reply );
47 #endif /* _IPXE_PCCRD_H */