projects
/
swifty.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Add client and server for MPTP measurements.
[swifty.git]
/
src
/
kernel
/
swift.h
1
#ifndef _SWIFT_H
2
#define _SWIFT_H
3
4
#define IPPROTO_SWIFT 137
5
6
#define MIN_SWIFT_PORT 1
7
#define MAX_SWIFT_PORT 256
8
9
#ifndef __KERNEL__
10
#include <inttypes.h>
11
#endif
12
13
struct swift_dest {
14
uint32_t addr;
15
uint8_t port;
16
};
17
18
struct sockaddr_swift {
19
int count;
20
struct swift_dest dests[0];
21
};
22
23
#ifdef __KERNEL__
24
struct swifthdr {
25
uint8_t src;
26
uint8_t dst;
27
__be16 len;
28
};
29
#endif
30
31
#endif