aboutsummaryrefslogtreecommitdiff
path: root/lib/libnet
diff options
context:
space:
mode:
authorNikunj A Dadhania <nikunj@linux.vnet.ibm.com>2017-09-15 10:04:36 +0530
committerAlexey Kardashevskiy <aik@ozlabs.ru>2017-09-26 12:42:05 +1000
commit6f4ed1c01c5b2c0f347870ccefba514eac10234c (patch)
tree2a06477577b257b37e645b47b36590f02a9c6553 /lib/libnet
parent2e01fb1142cab15c2b05802c166cf48a01897a8e (diff)
downloadSLOF-6f4ed1c01c5b2c0f347870ccefba514eac10234c.zip
SLOF-6f4ed1c01c5b2c0f347870ccefba514eac10234c.tar.gz
SLOF-6f4ed1c01c5b2c0f347870ccefba514eac10234c.tar.bz2
libnet/ipv6: assign times_asked value directly
times_asked value remains same as the structure is zeroed, but it makes more sense to do that directly instead of adding with previous value. Signed-off-by: Nikunj A Dadhania <nikunj@linux.vnet.ibm.com> Reviewed-by: Thomas Huth <thuth@redhat.com> Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Diffstat (limited to 'lib/libnet')
-rw-r--r--lib/libnet/ipv6.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libnet/ipv6.c b/lib/libnet/ipv6.c
index 62a444e..6c6fb54 100644
--- a/lib/libnet/ipv6.c
+++ b/lib/libnet/ipv6.c
@@ -543,7 +543,7 @@ int send_ipv6(int fd, void* buffer, int len)
memset(n, 0, sizeof(struct neighbor));
memcpy(&(n->ip.addr[0]), &ip_dst, 16);
n->status = NB_PROBE;
- n->times_asked += 1;
+ n->times_asked = 1;
neighbor_add(n);
}