Commit a5f3eda7 authored by Brenden Blanco's avatar Brenden Blanco

Use update() instead of init() in neighbor example

Signed-off-by: default avatarBrenden Blanco <bblanco@plumgrid.com>
parent c630f625
......@@ -53,7 +53,7 @@ int classify_neighbor(struct __sk_buff *skb) {
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:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment