Skip to content

Commit

Permalink
removed unused struct in icmp code
Browse files Browse the repository at this point in the history
  • Loading branch information
theverygaming committed Feb 9, 2025
1 parent 11e9451 commit ee9d2fd
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions kernel/net/stack/icmp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,6 @@ struct __attribute__((packed)) icmp_header {
uint16_t checksum;
};

struct __attribute__((packed)) icmp_echo {
uint16_t id;
uint16_t seq;
};

void net::icmp::receive(net::networkstack *netstack, struct net::ipv4_packet_processed *processed_packet, void *data, size_t size) {
struct icmp_header *header = (struct icmp_header *)data;
kprintf(KP_INFO, " -> ICMP type: 0x%p\n", (uint32_t)header->type);
Expand Down

0 comments on commit ee9d2fd

Please sign in to comment.