Skip to content

Commit

Permalink
Fucking egotistical bastard. adds expandtab to vimrc
Browse files Browse the repository at this point in the history
  • Loading branch information
shuwens committed Feb 1, 2022
1 parent 61f1dd4 commit af22e86
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
12 changes: 6 additions & 6 deletions test/co-tlsv-rdr-p2p-xcdr/src/nf.rs
Original file line number Diff line number Diff line change
Expand Up @@ -178,12 +178,12 @@ pub fn tlsv_rdr_p2p_xcdr_test<T: 'static + Batch<Header = NullHeader>, S: Schedu
// XCDR packet: group 3,
// rest: group 0
if f.proto == 6 {
if (f.src_ip == match_ip || f.dst_ip == match_ip)
&& (p2p_match_port.contains(&f.src_port) || p2p_match_port.contains(&f.dst_port))
{
matched = 2
} else {
matched = 1
if (f.src_ip == match_ip || f.dst_ip == match_ip) {
if (p2p_match_port.contains(&f.src_port) || p2p_match_port.contains(&f.dst_port)) {
matched = 2
} else {
matched = 1
}
}
} else if f.proto == 17
&& ((f.src_ip == xcdr_match_src_ip
Expand Down
12 changes: 6 additions & 6 deletions test/co-tlsv-rdr-p2p/src/nf.rs
Original file line number Diff line number Diff line change
Expand Up @@ -144,12 +144,12 @@ pub fn tlsv_rdr_p2p_test<T: 'static + Batch<Header = NullHeader>, S: Scheduler +
// P2P packets: group 2,
// rest to group 0
if f.proto == 6 {
if (f.src_ip == match_ip || f.dst_ip == match_ip)
&& (p2p_match_port.contains(&f.src_port) || p2p_match_port.contains(&f.dst_port))
{
matched = 2
} else {
matched = 1
if (f.src_ip == match_ip || f.dst_ip == match_ip) {
if (p2p_match_port.contains(&f.src_port) || p2p_match_port.contains(&f.dst_port)) {
matched = 2
} else {
matched = 1
}
}
}

Expand Down
2 changes: 1 addition & 1 deletion test/co-tlsv-rdr-xcdr/src/nf.rs
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ pub fn tlsv_rdr_xcdr_test<T: 'static + Batch<Header = NullHeader>, S: Scheduler

// Match:
// TLSV/RDR packets: group 1
// P2P packets: group 2
// XCDR packets: group 2
// rest: group 0
if f.proto == 6 {
if f.src_ip == match_ip || f.dst_ip == match_ip {
Expand Down

0 comments on commit af22e86

Please sign in to comment.