summaryrefslogtreecommitdiffstats
path: root/src/net/fcp.c
diff options
context:
space:
mode:
authorMichael Brown2010-11-04 03:49:07 +0100
committerMichael Brown2010-11-08 04:35:36 +0100
commit90930be8fe7d9991a6d31cd63c6c2da09e1d5f55 (patch)
tree9a313db32bce9c7f08685b8f16a73393bf59293c /src/net/fcp.c
parent[fcp] Use EINVAL for URI parsing errors and EPROTO for protocol errors (diff)
downloadipxe-90930be8fe7d9991a6d31cd63c6c2da09e1d5f55.tar.gz
ipxe-90930be8fe7d9991a6d31cd63c6c2da09e1d5f55.tar.xz
ipxe-90930be8fe7d9991a6d31cd63c6c2da09e1d5f55.zip
[fc] Support Fibre Channel ECHO
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/net/fcp.c')
-rw-r--r--src/net/fcp.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/net/fcp.c b/src/net/fcp.c
index 0da57cfc..40cd057e 100644
--- a/src/net/fcp.c
+++ b/src/net/fcp.c
@@ -103,7 +103,7 @@ static int fcp_prli_tx ( struct fc_els *els ) {
* @v len Length of ELS frame
* @ret rc Return status code
*/
-static int fcp_prli_rx ( struct fc_els *els, const void *data, size_t len ) {
+static int fcp_prli_rx ( struct fc_els *els, void *data, size_t len ) {
return fc_els_prli_rx ( els, &fcp_prli_descriptor, data, len );
}
@@ -123,10 +123,8 @@ static int fcp_prli_detect ( struct fc_els *els, const void *data,
/** FCP PRLI ELS handler */
struct fc_els_handler fcp_prli_handler __fc_els_handler = {
.name = "PRLI-FCP",
- .tx_request = fcp_prli_tx,
- .tx_response = fcp_prli_tx,
- .rx_request = fcp_prli_rx,
- .rx_response = fcp_prli_rx,
+ .tx = fcp_prli_tx,
+ .rx = fcp_prli_rx,
.detect = fcp_prli_detect,
};