X-Git-Url: http://p2p-next.cs.pub.ro/gitweb/?a=blobdiff_plain;f=src%2Fkernel%2Fswift.h;fp=src%2Fkernel%2Fswift.h;h=59c5b17a26ecfc40b7c76da3bd13ab6746c9a3d5;hb=3e1c31e64137706907b3d6c7de86d69d15d00042;hp=ab974c941b3013304ee850dc86638de48edd565d;hpb=5471da3c1fb5db47bc4f4291aafe188b0a11f1d4;p=swifty.git diff --git a/src/kernel/swift.h b/src/kernel/swift.h index ab974c9..59c5b17 100644 --- a/src/kernel/swift.h +++ b/src/kernel/swift.h @@ -1,27 +1,27 @@ -#ifndef _SWIFT_H -#define _SWIFT_H +#ifndef _MPTP_H +#define _MPTP_H -#define IPPROTO_SWIFT 137 +#define IPPROTO_MPTP 137 -#define MIN_SWIFT_PORT 1 -#define MAX_SWIFT_PORT 256 +#define MIN_MPTP_PORT 1 +#define MAX_MPTP_PORT 256 #ifndef __KERNEL__ #include #endif -struct swift_dest { +struct mptp_dest { uint32_t addr; uint8_t port; }; -struct sockaddr_swift { +struct sockaddr_mptp { int count; - struct swift_dest dests[0]; + struct mptp_dest dests[0]; }; #ifdef __KERNEL__ -struct swifthdr { +struct mptphdr { uint8_t src; uint8_t dst; __be16 len;