Skip to content

Commit 55e4835

Browse files
Alexander Chernikovcathay4t
Alexander Chernikov
authored andcommitted
Add tc-flower support.
1 parent f5535f3 commit 55e4835

File tree

11 files changed

+2689
-8
lines changed

11 files changed

+2689
-8
lines changed

src/tc/actions/action.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,8 @@ pub enum TcActionOption {
290290
Nat(TcActionNatOption),
291291
/// Tunnel key options.
292292
///
293-
/// These options type can be used to assign encapsulation properties to the packet.
293+
/// These options type can be used to assign encapsulation properties to
294+
/// the packet.
294295
TunnelKey(TcActionTunnelKeyOption),
295296
/// Other action types not yet supported by this library.
296297
Other(DefaultNla),

src/tc/actions/tests/tunnel_key.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ use crate::tc::{
1010
};
1111
use std::net::{Ipv4Addr, Ipv6Addr};
1212

13-
// > tc actions add action tunnel_key set id 33 src_ip 1.2.3.4 dst_ip 2.3.4.5 dst_port 4789 tos 1 ttl 2
13+
// > tc actions add action tunnel_key set id 33 src_ip 1.2.3.4 dst_ip
14+
// > 2.3.4.5 dst_port 4789 tos 1 ttl 2
1415
// > tools/nl_dump.py dump_actions tunnel_key
1516
// Note: 5.15 and 6.8 kernels do NOT set NLA_F_NESTED for TCA_ACT_OPTIONS
1617
#[test]
@@ -106,7 +107,8 @@ fn get_tunnel_key_vxlan_action_ipv4() {
106107
assert_eq!(buf, raw);
107108
}
108109

109-
// > tc actions add action tunnel_key set id 33 src_ip 2a00:1:: dst_ip 2a01:2:: dst_port 4789 tos 1 ttl 2
110+
// > tc actions add action tunnel_key set id 33 src_ip 2a00:1:: dst_ip
111+
// > 2a01:2:: dst_port 4789 tos 1 ttl 2
110112
// > tools/nl_dump.py dump_actions tunnel_key
111113
// Note: 5.15 and 6.8 kernels do NOT set NLA_F_NESTED for TCA_ACT_OPTIONS
112114
#[test]

0 commit comments

Comments
 (0)