aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/linux/Kbuild2
-rw-r--r--include/linux/if_phonet.h11
2 files changed, 8 insertions, 5 deletions
diff --git a/include/linux/Kbuild b/include/linux/Kbuild
index b68ec09399b..f431e40725d 100644
--- a/include/linux/Kbuild
+++ b/include/linux/Kbuild
@@ -126,6 +126,7 @@ header-y += pci_regs.h
header-y += pfkeyv2.h
header-y += pg.h
header-y += phantom.h
+header-y += phonet.h
header-y += pkt_cls.h
header-y += pkt_sched.h
header-y += posix_types.h
@@ -232,6 +233,7 @@ unifdef-y += if_fddi.h
unifdef-y += if_frad.h
unifdef-y += if_ltalk.h
unifdef-y += if_link.h
+unifdef-y += if_phonet.h
unifdef-y += if_pppol2tp.h
unifdef-y += if_pppox.h
unifdef-y += if_tr.h
diff --git a/include/linux/if_phonet.h b/include/linux/if_phonet.h
index 7e989216ec1..d70034bcec0 100644
--- a/include/linux/if_phonet.h
+++ b/include/linux/if_phonet.h
@@ -5,14 +5,15 @@
*
* Copyright (C) 2008 Nokia Corporation. All rights reserved.
*/
+#ifndef LINUX_IF_PHONET_H
+#define LINUX_IF_PHONET_H
-#define PHONET_HEADER_LEN 8 /* Phonet header length */
-
-#define PHONET_MIN_MTU 6
-/* 6 bytes header + 65535 bytes payload */
-#define PHONET_MAX_MTU 65541
+#define PHONET_MIN_MTU 6 /* pn_length = 0 */
+#define PHONET_MAX_MTU 65541 /* pn_length = 0xffff */
#define PHONET_DEV_MTU PHONET_MAX_MTU
#ifdef __KERNEL__
extern struct header_ops phonet_header_ops;
#endif
+
+#endif