]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
phonet: Protect if_phonet.h against multiple inclusions.
authorRemi Denis-Courmont <remi.denis-courmont@nokia.com>
Wed, 1 Oct 2008 08:30:19 +0000 (01:30 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 1 Oct 2008 08:30:19 +0000 (01:30 -0700)
From: Remi Denis-Courmont <remi.denis-courmont@nokia.com>

Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/if_phonet.h

index 7e989216ec17e334922728f32cbab41ac9f38470..d70034bcec059800d9d972a6d37096b38cb4809c 100644 (file)
@@ -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