xref: /illumos-gate/usr/src/cmd/dlutil/dlsend.h (revision 2076885612f784f9ddfc09282d62518d0f9b2c4d)
1*20768856SRobert Mustacchi /*
2*20768856SRobert Mustacchi  * This file and its contents are supplied under the terms of the
3*20768856SRobert Mustacchi  * Common Development and Distribution License ("CDDL"), version 1.0.
4*20768856SRobert Mustacchi  * You may only use this file in accordance with the terms of version
5*20768856SRobert Mustacchi  * 1.0 of the CDDL.
6*20768856SRobert Mustacchi  *
7*20768856SRobert Mustacchi  * A full copy of the text of the CDDL should have accompanied this
8*20768856SRobert Mustacchi  * source.  A copy of the CDDL is also available via the Internet at
9*20768856SRobert Mustacchi  * http://www.illumos.org/license/CDDL.
10*20768856SRobert Mustacchi  */
11*20768856SRobert Mustacchi 
12*20768856SRobert Mustacchi /*
13*20768856SRobert Mustacchi  * Copyright (c) 2017, Joyent, Inc.
14*20768856SRobert Mustacchi  */
15*20768856SRobert Mustacchi 
16*20768856SRobert Mustacchi #ifndef _DLSEND_H
17*20768856SRobert Mustacchi #define	_DLSEND_H
18*20768856SRobert Mustacchi 
19*20768856SRobert Mustacchi /*
20*20768856SRobert Mustacchi  * A common header file for things that dlsend and dlrecv need.
21*20768856SRobert Mustacchi  */
22*20768856SRobert Mustacchi 
23*20768856SRobert Mustacchi #ifdef __cplusplus
24*20768856SRobert Mustacchi extern "C" {
25*20768856SRobert Mustacchi #endif
26*20768856SRobert Mustacchi 
27*20768856SRobert Mustacchi /*
28*20768856SRobert Mustacchi  * We need to pick an arbitrary Ethertype to squat on for the purposes of this
29*20768856SRobert Mustacchi  * testing program. As such we use one with a recongizable string. If someone
30*20768856SRobert Mustacchi  * comes along and uses this, then we should get off of it.
31*20768856SRobert Mustacchi  */
32*20768856SRobert Mustacchi #define	DLSEND_SAP	0xdeed
33*20768856SRobert Mustacchi #define	DLSEND_MSG	"A Elbereth Gilthoniel"
34*20768856SRobert Mustacchi 
35*20768856SRobert Mustacchi typedef struct dlsend_msg {
36*20768856SRobert Mustacchi 	uint64_t	dm_count;
37*20768856SRobert Mustacchi 	char		dm_host[MAXHOSTNAMELEN];
38*20768856SRobert Mustacchi 	char		dm_mesg[32];
39*20768856SRobert Mustacchi } dlsend_msg_t;
40*20768856SRobert Mustacchi 
41*20768856SRobert Mustacchi #ifdef __cplusplus
42*20768856SRobert Mustacchi }
43*20768856SRobert Mustacchi #endif
44*20768856SRobert Mustacchi 
45*20768856SRobert Mustacchi #endif /* _DLSEND_H */
46