and log an error if it fails.
Signed-off-by: Andy Grover <[email protected]>
---
iscsiuio/src/unix/nic.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/iscsiuio/src/unix/nic.c b/iscsiuio/src/unix/nic.c
index 758eba5..38a5776 100644
--- a/iscsiuio/src/unix/nic.c
+++ b/iscsiuio/src/unix/nic.c
@@ -823,7 +823,11 @@ static void prepare_ipv4_packet(nic_t *nic,
break;
case NOT_IN_ARP_TABLE:
queue_rc = nic_queue_tx_packet(nic, nic_iface, pkt);
- uip_build_arp_request(ustack, ipaddr);
+ if (queue_rc) {
+ LOG_ERR("could not queue TX packet: %d", queue_rc);
+ } else {
+ uip_build_arp_request(ustack, ipaddr);
+ }
break;
default:
LOG_ERR("Unknown arp state");
--
1.9.3
--
You received this message because you are subscribed to the Google Groups
"open-iscsi" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/open-iscsi.
For more options, visit https://groups.google.com/d/optout.