We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b1ab329 commit 69f6204Copy full SHA for 69f6204
1 file changed
src/entry.cpp
@@ -49,7 +49,7 @@ int run_entry() {
49
// Step 3: Parse Ethernet frame (which dispatches to IPv4, etc.)
50
parsers::EthernetHeader eth = parsers::parse_ethernet_header(buffer, len);
51
52
- /*if (eth.eth_proto == "IPv4") {
+ if (eth.eth_proto == "IPv4") {
53
parsers::IPv4Header ipv4 = parsers::parse_ipv4_header(eth.payload, eth.payload_len);
54
55
@@ -86,7 +86,7 @@ int run_entry() {
86
}
87
88
// ARP Protocol Implementation
89
- else */if (eth.eth_proto == "ARP") {
+ else if (eth.eth_proto == "ARP") {
90
parsers::ARPHeader arp = parsers::parse_arp_header(eth.payload, eth.payload_len);
91
92
std::cout << "[+] Packet #" << packet_number << " - ARP Packet\n";
0 commit comments