Parcourir la source

Improve tcpdump legibility.

tags/v0.9.3
Michael Brown il y a 19 ans
Parent
révision
d78581297b
2 fichiers modifiés avec 3 ajouts et 0 suppressions
  1. 2
    0
      src/include/gpxe/aoe.h
  2. 1
    0
      src/net/aoe.c

+ 2
- 0
src/include/gpxe/aoe.h Voir le fichier

71
 #define AOE_CMD_ATA	0x00	/**< Issue ATA command */
71
 #define AOE_CMD_ATA	0x00	/**< Issue ATA command */
72
 #define AOE_CMD_CONFIG	0x01	/**< Query Config Information */
72
 #define AOE_CMD_CONFIG	0x01	/**< Query Config Information */
73
 
73
 
74
+#define AOE_TAG_MAGIC	0xebeb0000
75
+
74
 #define AOE_ERR_BAD_COMMAND	1 /**< Unrecognised command code */
76
 #define AOE_ERR_BAD_COMMAND	1 /**< Unrecognised command code */
75
 #define AOE_ERR_BAD_PARAMETER	2 /**< Bad argument parameter */
77
 #define AOE_ERR_BAD_PARAMETER	2 /**< Bad argument parameter */
76
 #define AOE_ERR_UNAVAILABLE	3 /**< Device unavailable */
78
 #define AOE_ERR_UNAVAILABLE	3 /**< Device unavailable */

+ 1
- 0
src/net/aoe.c Voir le fichier

294
  */
294
  */
295
 void aoe_open ( struct aoe_session *aoe ) {
295
 void aoe_open ( struct aoe_session *aoe ) {
296
 	memset ( aoe->target, 0xff, sizeof ( aoe->target ) );
296
 	memset ( aoe->target, 0xff, sizeof ( aoe->target ) );
297
+	aoe->tag = AOE_TAG_MAGIC;
297
 	aoe->timer.expired = aoe_timer_expired;
298
 	aoe->timer.expired = aoe_timer_expired;
298
 	list_add ( &aoe->list, &aoe_sessions );
299
 	list_add ( &aoe->list, &aoe_sessions );
299
 }
300
 }

Chargement…
Annuler
Enregistrer