X-Git-Url: http://p2p-next.cs.pub.ro/gitweb/?a=blobdiff_plain;f=src%2Fkernel%2Fmptp.h;fp=src%2Fkernel%2Fmptp.h;h=b837617d4efe5b8e15633452d6b0e4555b48f95e;hb=5d690fef4ebea52e5bfc1560c945e86c0dbbb946;hp=0000000000000000000000000000000000000000;hpb=5ddb1215a7b43bad32876d89e57108584f3b462b;p=swifty.git diff --git a/src/kernel/mptp.h b/src/kernel/mptp.h new file mode 100644 index 0000000..b837617 --- /dev/null +++ b/src/kernel/mptp.h @@ -0,0 +1,32 @@ +#ifndef _MPTP_H +#define _MPTP_H + +#define IPPROTO_MPTP 137 + +#define MIN_MPTP_PORT 1 +#define MAX_MPTP_PORT 65536 + +#ifndef __KERNEL__ +#include +#endif + +struct mptp_dest { + uint32_t addr; + uint16_t port; + uint16_t bytes; +}; + +struct sockaddr_mptp { + int count; + struct mptp_dest dests[0]; +}; + +#ifdef __KERNEL__ +struct mptphdr { + uint16_t src; + uint16_t dst; + __be16 len; +}; +#endif + +#endif