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 3f5119a..4b3821f 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 @@ -57,6 +58,15 @@ #define ISCSI_GET_IF_INFO 7 #define ISCSI_GET_DEFAULT_GATEWAY 8 +struct iscsi_bsg_host_ping { + int32_t ip_type; /* IPv4 or IPv6 */ +#define ISCSI_PING_IPV4 0x00000000 +#define ISCSI_PING_IPV6 0x00000001 + int32_t ip_address[4]; + int32_t payload_size; + int8_t payload[0]; +}; + /* * iSCSI Host Messages */ @@ -222,6 +232,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