1 #ifndef _IPXE_PEERDISC_H 2 #define _IPXE_PEERDISC_H 36 #define PEERDISC_SOCKETS __table ( struct peerdisc_socket, "peerdisc_sockets" ) 39 #define __peerdisc_socket __table_entry ( PEERDISC_SOCKETS, 01 ) 114 #define peerdisc_stat_TYPE( object_type ) \ 115 typeof ( void ( object_type, struct peerdisc_peer *peer, \ 116 struct list_head *peers ) )
struct list_head peers
List of discovered peers.
PeerDist discovery client operations.
void peerdisc_stat(struct interface *intf, struct peerdisc_peer *peer, struct list_head *peers)
Report peer discovery statistics.
const char * id
Segment identifier string.
A PeerDist discovery socket.
A PeerDist discovery segment.
static void peerdisc_init(struct peerdisc_client *peerdisc, struct peerdisc_client_operations *op)
Initialise PeerDist discovery.
void peerdisc_close(struct peerdisc_client *peerdisc)
Close PeerDist discovery client.
struct list_head list
List of clients.
A doubly-linked list entry (or list head)
const char * uuid
Message UUID string.
struct interface xfer
Data transfer interface.
void(* discovered)(struct peerdisc_client *peerdisc)
New peers have been discovered.
A PeerDist discovery client.
Peer Content Caching and Retrieval: Content Identification [MS-PCCRC].
Generalized socket address structure.
char location[0]
Peer location.
union peerdisc_socket::@643 address
Socket address.
struct peerdisc_segment * segment
Discovery segment.
struct list_head clients
List of active clients.
static uint16_t struct vmbus_xfer_pages_operations * op
struct list_head list
List of segments.
unsigned int peerdisc_timeout_secs
Recommended discovery timeout (in seconds)
int peerdisc_open(struct peerdisc_client *peerdisc, const void *id, size_t len)
Open PeerDist discovery client.
struct peerdisc_client_operations * op
Operations.
struct mschapv2_challenge peer
Peer challenge.
struct list_head list
List of peers.
FILE_LICENCE(GPL2_OR_LATER_OR_UBDL)
A PeerDist discovery peer.