Signed-off-by: Vikas Chaudhary <vikas.chaudhary@xxxxxxxxxx> Signed-off-by: Ravi Anand <ravi.anand@xxxxxxxxxx> --- include/scsi/scsi_bsg_iscsi.h | 11 +++++++++++ 1 files changed, 11 insertions(+), 0 deletions(-) diff --git a/include/scsi/scsi_bsg_iscsi.h b/include/scsi/scsi_bsg_iscsi.h index f454eca..93a80a3 100644 --- a/include/scsi/scsi_bsg_iscsi.h +++ b/include/scsi/scsi_bsg_iscsi.h @@ -46,6 +46,7 @@ /* iscsi host Message Codes */ #define ISCSI_BSG_HST_NET_CONFIG (ISCSI_BSG_HST_MASK | 0x00000001) +#define ISCSI_BSG_HST_PING (ISCSI_BSG_HST_MASK | 0x00000002) #define ISCSI_BSG_HST_VENDOR (ISCSI_BSG_HST_MASK | 0x000000FF) #define ISCSI_SET_IP_ADDR 1 @@ -61,6 +62,15 @@ * iSCSI Host Messages */ +struct iscsi_bsg_host_ping { + uint32_t ip_type; /* IPv4 or IPv6 */ +#define ISCSI_PING_IPV4 0x00000000 +#define ISCSI_PING_IPV6 0x00000001 + uint32_t ip_address[4]; + uint32_t payload_size; + uint8_t payload[0]; +}; + struct ip_address_subnet_format { u16 sizeofstructure; u8 iptype; @@ -220,6 +230,7 @@ struct iscsi_bsg_request { uint32_t msgcode; union { struct iscsi_bsg_host_net_config h_netconfig; + struct iscsi_bsg_host_ping h_ping; struct iscsi_bsg_host_vendor h_vendor; } rqst_data; } __attribute__((packed)); -- 1.7.0.5 -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html