Skip to content

Commit

Permalink
Fix dump_ipv4 example
Browse files Browse the repository at this point in the history
  • Loading branch information
sanxiyn authored and JohnTitor committed Jan 7, 2025
1 parent f523993 commit f5f4ad7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/dump_ipv4.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,13 @@ fn main() {
println!("<<< {rx_packet:?}");

match rx_packet.payload {
NetlinkPayload::Noop | NetlinkPayload::Ack(_) => {}
NetlinkPayload::Noop => {}
NetlinkPayload::InnerMessage(
SockDiagMessage::InetResponse(response),
) => {
println!("{response:#?}");
}
NetlinkPayload::Done => {
NetlinkPayload::Done(_) => {
println!("Done!");
return;
}
Expand Down

0 comments on commit f5f4ad7

Please sign in to comment.