Skip to content

Commit

Permalink
Skip payload action if we already applied a packet action
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanNardi committed Jan 14, 2024
1 parent 264209e commit 9fc153f
Show file tree
Hide file tree
Showing 49 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pl7m.c
Original file line number Diff line number Diff line change
Expand Up @@ -907,6 +907,8 @@ static void do_pkt_actions(struct pl7m_handle *h)
ddbg("Action dup\n");
d = __dup_pkt(p);
__add_pkt(h, d, prev, p);
p->skip_payload_actions = 1;
d->skip_payload_actions = 1;
prev = p;
break;
case 3: /* Swap */
Expand All @@ -915,11 +917,13 @@ static void do_pkt_actions(struct pl7m_handle *h)
prev = tmp_prev;
else
prev = p;
p->skip_payload_actions = 1;
break;
case 4: /* Swap direction */
ddbg("Swap direction\n");
swap_direction(p);
prev = p;
p->skip_payload_actions = 1;
break;
}
if (prev)
Expand Down
Binary file modified tests/results/ah.pcapng.fuzzed
Binary file not shown.
Binary file modified tests/results/avast_securedns.pcapng.fuzzed
Binary file not shown.
Binary file modified tests/results/bittorrent.pcap.fuzzed
Binary file not shown.
Binary file modified tests/results/bittorrent_2.pcap.fuzzed
Binary file not shown.
Binary file modified tests/results/bittorrent_utp.pcap.fuzzed
Binary file not shown.
Binary file modified tests/results/dlt_ppi.pcap.fuzzed
Binary file not shown.
Binary file modified tests/results/dlt_raw_ip.pcap.fuzzed
Binary file not shown.
Binary file modified tests/results/dlt_sll2.pcap.fuzzed
Binary file not shown.
Binary file modified tests/results/dns_example.pcap.fuzzed
Binary file not shown.
Binary file modified tests/results/dns_fragmented.pcap.fuzzed
Binary file not shown.
Binary file modified tests/results/dns_invert_query.pcapng.fuzzed
Binary file not shown.
Binary file modified tests/results/dtls_certificate_fragments.pcap.fuzzed
Binary file not shown.
Binary file modified tests/results/dtls_certificate_fragments_2.pcap.fuzzed
Binary file not shown.
Binary file modified tests/results/esp.pcap.fuzzed
Binary file not shown.
Binary file modified tests/results/gre.pcap.fuzzed
Binary file not shown.
Binary file modified tests/results/http-connect.pcap.fuzzed
Binary file not shown.
Binary file modified tests/results/http-connect_2.pcap.fuzzed
Binary file not shown.
Binary file modified tests/results/http.pcapng.fuzzed
Binary file not shown.
Binary file modified tests/results/http_ocsp.pcap.fuzzed
Binary file not shown.
Binary file modified tests/results/http_windowsupdate.pcap.fuzzed
Binary file not shown.
Binary file modified tests/results/imap-starttls.pcap.fuzzed
Binary file not shown.
Binary file modified tests/results/imap.pcap.fuzzed
Binary file not shown.
Binary file modified tests/results/ipv6_ext_destination-opt.pcap.fuzzed
Binary file not shown.
Binary file modified tests/results/ipv6_ext_hop-by-hop.pcap.fuzzed
Binary file not shown.
Binary file not shown.
Binary file modified tests/results/line.pcap.fuzzed
Binary file not shown.
Binary file modified tests/results/line_2.pcap.fuzzed
Binary file not shown.
Binary file modified tests/results/ospf.pcap.fuzzed
Binary file not shown.
Binary file modified tests/results/pgm.pcap.fuzzed
Binary file not shown.
Binary file modified tests/results/pim.pcap.fuzzed
Binary file not shown.
Binary file modified tests/results/pop3.pcapng.fuzzed
Binary file not shown.
Binary file modified tests/results/pop3_2.pcapng.fuzzed
Binary file not shown.
Binary file modified tests/results/pop3_3.pcapng.fuzzed
Binary file not shown.
Binary file modified tests/results/pop3_4.pcapng.fuzzed
Binary file not shown.
Binary file modified tests/results/pop3_5.pcapng.fuzzed
Binary file not shown.
Binary file modified tests/results/pop3_6.pcapng.fuzzed
Binary file not shown.
Binary file modified tests/results/pop_stls.pcapng.fuzzed
Binary file not shown.
Binary file modified tests/results/pops.pcapng.fuzzed
Binary file not shown.
Binary file modified tests/results/quic_ch_fragments.pcapng.fuzzed
Binary file not shown.
Binary file modified tests/results/quic_frags_initial.pcapng.fuzzed
Binary file not shown.
Binary file modified tests/results/sctp.pcap.fuzzed
Binary file not shown.
Binary file modified tests/results/sip.pcap.fuzzed
Binary file not shown.
Binary file modified tests/results/snapchat_call.pcapng.fuzzed
Binary file not shown.
Binary file modified tests/results/stun.pcap.fuzzed
Binary file not shown.
Binary file modified tests/results/stun_dtls.pcap.fuzzed
Binary file not shown.
Binary file modified tests/results/tls3_client_hello_frags.pcapng.fuzzed
Binary file not shown.
Binary file modified tests/results/wireguard.pcapng.fuzzed
Binary file not shown.
1 change: 1 addition & 0 deletions tests/run-utests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ for f in $PCAPS; do
echo "$f Diff Error"
RC=$(( RC + 1 ))
#diff <(xxd ./results/$f.fuzzed) <(xxd $OUTPUT)
#cp $OUTPUT ./results/$f.fuzzed
fi
else
echo "%f Error!"
Expand Down

0 comments on commit 9fc153f

Please sign in to comment.