upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/tests/unit/stubs/lwip/prot/ip.h
blob: 077076028aeb5a7f2ac6e30593636f9b370ceea2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#ifndef STUBS_LWIP_PROT_IP_H
#define STUBS_LWIP_PROT_IP_H

#include <stdint.h>

#define IP_PROTO_TCP 6
#define IP_PROTO_UDP 17
#define IP_HLEN 20

struct ip_hdr {
    uint8_t _proto;
    union {
        uint32_t addr;
    } src;
    union {
        uint32_t addr;
    } dest;
};

#endif