commit | a5f3eda7514a49a3580e7d7f5eadd81b78985d21 | [log] [tgz] |
---|---|---|
author | Brenden Blanco <bblanco@plumgrid.com> | Tue Jun 16 17:26:46 2015 -0700 |
committer | Brenden Blanco <bblanco@plumgrid.com> | Tue Jun 16 17:26:46 2015 -0700 |
tree | 77ef2dd1d197cfd93ef51ac4e03249fb50d9c9cf | |
parent | c630f6256e48fc734e2d1d11c8aad9b4646d1c80 [diff] [blame] |
Use update() instead of init() in neighbor example Signed-off-by: Brenden Blanco <bblanco@plumgrid.com>
diff --git a/examples/tc_neighbor_sharing.c b/examples/tc_neighbor_sharing.c index 6ba7d35..87ea0ea 100644 --- a/examples/tc_neighbor_sharing.c +++ b/examples/tc_neighbor_sharing.c
@@ -53,7 +53,7 @@ u32 sip = ip->src; struct ipkey key = {.client_ip=sip}; int val = 1; - learned_ips.lookup_or_init(&key, &val); + learned_ips.update(&key, &val); goto EOP; } EOP: