projects
/
swifty.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
59c5b17a26ecfc40b7c76da3bd13ab6746c9a3d5
[swifty.git]
/
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 256
8
9
#ifndef __KERNEL__
10
#include <inttypes.h>
11
#endif
12
13
struct mptp_dest {
14
uint32_t addr;
15
uint8_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
uint8_t src;
26
uint8_t dst;
27
__be16 len;
28
};
29
#endif
30
31
#endif