Use Linux-like indentation in mptp.c
[swifty.git] / src / kernel / mptp.h
index 59c5b17..b837617 100644 (file)
@@ -4,26 +4,27 @@
 #define IPPROTO_MPTP 137
 
 #define MIN_MPTP_PORT 1
-#define MAX_MPTP_PORT 256
+#define MAX_MPTP_PORT 65536
 
 #ifndef __KERNEL__
 #include <inttypes.h>
 #endif
 
 struct mptp_dest {
-    uint32_t addr;
-    uint8_t port;
+       uint32_t addr;
+       uint16_t port;
+       uint16_t bytes;
 };
 
 struct sockaddr_mptp {
-    int count;
-    struct mptp_dest dests[0];
+       int count;
+       struct mptp_dest dests[0];
 };
 
 #ifdef __KERNEL__
 struct mptphdr {
-       uint8_t src;
-       uint8_t dst;
+       uint16_t src;
+       uint16_t dst;
        __be16 len;
 };
 #endif