File s390-tools-sles11sp2-hsnc-warning.patch of Package s390-tools
Description: HiperSockets Network Concentrator: correct warning
Symptom: invalid warnings from xcec-bridge
Problem: xcec-bridge issues a warning if the length of a sent
buffer is different from the specified length to be
send. The condition check is wrong.
Solution: Correct the checking of the sent length.
Problem-ID: 77520
---
ip_watcher/xcec-bridge.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/ip_watcher/xcec-bridge.c
+++ b/ip_watcher/xcec-bridge.c
@@ -568,7 +568,7 @@ void process_packet(struct int_sock *i_s
"%s\n",i_s_item->dev_name,
strerror(errno));
}
- } else if (retval!=buffer_len) {
+ } else if (retval != buffer_len - ETH_HLEN) {
syslog(LOG_WARNING,"sendto sent only %i instead " \
"of %i bytes on %s: %s\n",
retval,buffer_len,i_s->dev_name,