Set the bytes value in the mptp_dest structure when sending message.
[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 };
17
18 struct sockaddr_mptp {
19     int count;
20     struct mptp_dest dests[0];
21 };
22
23 #ifdef __KERNEL__
24 struct mptphdr {
25         uint16_t src;
26         uint16_t dst;
27         __be16 len;
28 };
29 #endif
30
31 #endif