Improve tcpdump legibility.
This commit is contained in:
parent
6ab4b99f41
commit
d78581297b
|
@ -71,6 +71,8 @@ struct aoehdr {
|
||||||
#define AOE_CMD_ATA 0x00 /**< Issue ATA command */
|
#define AOE_CMD_ATA 0x00 /**< Issue ATA command */
|
||||||
#define AOE_CMD_CONFIG 0x01 /**< Query Config Information */
|
#define AOE_CMD_CONFIG 0x01 /**< Query Config Information */
|
||||||
|
|
||||||
|
#define AOE_TAG_MAGIC 0xebeb0000
|
||||||
|
|
||||||
#define AOE_ERR_BAD_COMMAND 1 /**< Unrecognised command code */
|
#define AOE_ERR_BAD_COMMAND 1 /**< Unrecognised command code */
|
||||||
#define AOE_ERR_BAD_PARAMETER 2 /**< Bad argument parameter */
|
#define AOE_ERR_BAD_PARAMETER 2 /**< Bad argument parameter */
|
||||||
#define AOE_ERR_UNAVAILABLE 3 /**< Device unavailable */
|
#define AOE_ERR_UNAVAILABLE 3 /**< Device unavailable */
|
||||||
|
|
|
@ -294,6 +294,7 @@ NET_PROTOCOL ( aoe_protocol );
|
||||||
*/
|
*/
|
||||||
void aoe_open ( struct aoe_session *aoe ) {
|
void aoe_open ( struct aoe_session *aoe ) {
|
||||||
memset ( aoe->target, 0xff, sizeof ( aoe->target ) );
|
memset ( aoe->target, 0xff, sizeof ( aoe->target ) );
|
||||||
|
aoe->tag = AOE_TAG_MAGIC;
|
||||||
aoe->timer.expired = aoe_timer_expired;
|
aoe->timer.expired = aoe_timer_expired;
|
||||||
list_add ( &aoe->list, &aoe_sessions );
|
list_add ( &aoe->list, &aoe_sessions );
|
||||||
}
|
}
|
||||||
|
|
Reference in New Issue