-
Notifications
You must be signed in to change notification settings - Fork 374
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add ICMP support in ACNP and ANP (#3472)
This PR added ICMP support in Antrea-native policy. User could define a policy only enfored on ICMP traffic or ICMP traffic with specific ICMP type or ICMP code. 1. Added a new field called `protocols` which contains protocols that are not supported by `ports`. Currently, only ICMP protocol is in this field. 2. On the controller side, * Both `ports` and `protocols` will be translate into `Service` of internalNP * Added `ICMPType` and `ICMPCode` to `Service` 3. On the agent side, * Added a new struct `matchPair` which contains one matchKey and one matchValue * Added some new `MatchKey`: `MatchICMPType`, `MatchICMPCode`, `MatchICMPv6Type` and `MatchICMPv6Code` * Change `conjunctiveMatch` from contains only one matchKey-matchValue pair to contains a list of `matchPair`, in order to support flows with multipul match conditions like this: `icmp,icmp_type=8,icmp_code=0,action=conjunction(2,3/3)` Signed-off-by: wgrayson <[email protected]>
- Loading branch information
Showing
42 changed files
with
1,315 additions
and
285 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.