Skip to content

Commit

Permalink
fix retruning typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Ubuntu authored and yonghong-song committed Sep 2, 2020
1 parent 0e7304e commit 892475f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion examples/networking/http_filter/http-parse-complete.c
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ int http_filter(struct __sk_buff *skb) {
}
goto DROP;

//keep the packet and send it to userspace retruning -1
//keep the packet and send it to userspace returning -1
HTTP_MATCH:
//if not already present, insert into map <Key, Leaf>
sessions.lookup_or_try_init(&key,&zero);
Expand Down
2 changes: 1 addition & 1 deletion examples/networking/http_filter/http-parse-simple.c
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ int http_filter(struct __sk_buff *skb) {
//no HTTP match
goto DROP;

//keep the packet and send it to userspace retruning -1
//keep the packet and send it to userspace returning -1
KEEP:
return -1;

Expand Down
4 changes: 2 additions & 2 deletions examples/networking/vlan_filter/data-plane-tracing.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,11 @@ int vlan_filter(struct __sk_buff *skb) {
default: goto DROP;
}

//keep the packet and send it to userspace retruning -1
//keep the packet and send it to userspace returning -1
KEEP:
return -1;

//drop the packet returning 0
DROP:
return 0;
}
}

0 comments on commit 892475f

Please sign in to comment.