Use Linux-like indentation in mptp.h
[swifty.git] / src / kernel / mptp.h
1 #ifndef _MPTP_H
2 #define _MPTP_H
3
4 #define IPPROTO_MPTP 137
5
6 #define MIN_MPTP_PORT 1
7 #define MAX_MPTP_PORT 65536
8
9 #ifndef __KERNEL__
10 #include <inttypes.h>
11 #endif
12
13 struct mptp_dest {
14         uint32_t addr;
15         uint16_t port;
16         uint16_t bytes;
17 };
18
19 struct sockaddr_mptp {
20         int count;
21         struct mptp_dest dests[0];
22 };
23
24 #ifdef __KERNEL__
25 struct mptphdr {
26         uint16_t src;
27         uint16_t dst;
28         __be16 len;
29 };
30 #endif
31
32 #endif