blob: e22c1ef4b66fef85f62521b850d146d9334dee71 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
//
// ICMPHeader.h
// PacketTunnelCore
//
// Created by pronebird on 24/08/2022.
// Copyright © 2025 Mullvad VPN AB. All rights reserved.
//
#ifndef ICMPHEADER_H
#define ICMPHEADER_H
#include <AssertMacros.h>
struct ICMPHeader {
uint8_t type;
uint8_t code;
uint16_t checksum;
uint16_t identifier;
uint16_t sequenceNumber;
// data...
} __attribute__((packed));
typedef struct ICMPHeader ICMPHeader;
__Check_Compile_Time(sizeof(ICMPHeader) == 8);
#endif /* ICMPHEADER_H */
|