Skip to content

Commit 69f6204

Browse files
committed
MODIFIED: UNCOMMENTED IPv4 Implementation Codespace
1 parent b1ab329 commit 69f6204

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/entry.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ int run_entry() {
4949
// Step 3: Parse Ethernet frame (which dispatches to IPv4, etc.)
5050
parsers::EthernetHeader eth = parsers::parse_ethernet_header(buffer, len);
5151

52-
/*if (eth.eth_proto == "IPv4") {
52+
if (eth.eth_proto == "IPv4") {
5353
parsers::IPv4Header ipv4 = parsers::parse_ipv4_header(eth.payload, eth.payload_len);
5454

5555

@@ -86,7 +86,7 @@ int run_entry() {
8686
}
8787
}
8888
// ARP Protocol Implementation
89-
else */if (eth.eth_proto == "ARP") {
89+
else if (eth.eth_proto == "ARP") {
9090
parsers::ARPHeader arp = parsers::parse_arp_header(eth.payload, eth.payload_len);
9191

9292
std::cout << "[+] Packet #" << packet_number << " - ARP Packet\n";

0 commit comments

Comments
 (0)