build: don't install internal.h
[platform/upstream/libnetfilter_queue.git] / src / internal.h
1 #ifndef INTERNAL_H
2 #define INTERNAL_H 1
3
4 #include "config.h"
5 #ifdef HAVE_VISIBILITY_HIDDEN
6 #       define __visible        __attribute__((visibility("default")))
7 #       define EXPORT_SYMBOL(x) typeof(x) (x) __visible
8 #else
9 #       define EXPORT_SYMBOL
10 #endif
11
12 struct iphdr;
13 struct ip6_hdr;
14
15 uint16_t checksum(uint32_t sum, uint16_t *buf, int size);
16 uint16_t checksum_tcpudp_ipv4(struct iphdr *iph);
17 uint16_t checksum_tcpudp_ipv6(struct ip6_hdr *ip6h, void *transport_hdr);
18
19 struct pkt_buff {
20         uint8_t *mac_header;
21         uint8_t *network_header;
22         uint8_t *transport_header;
23
24         uint8_t *head;
25         uint8_t *data;
26         uint8_t *tail;
27
28         uint32_t len;
29         uint32_t data_len;
30
31         bool    mangled;
32 };
33
34 #endif