diff options
author | Remi Denis-Courmont <remi.denis-courmont@nokia.com> | 2008-10-01 04:30:19 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-10-01 04:30:19 -0400 |
commit | 6e50e8a2136f1a90de251c653226ded447c5c915 (patch) | |
tree | 48d2f9cd9a17105d1e462607c8df3551bc639329 | |
parent | a57334e95e4fb132acca05bdc0efa2f9dda194af (diff) |
phonet: Protect if_phonet.h against multiple inclusions.
From: Remi Denis-Courmont <remi.denis-courmont@nokia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | include/linux/if_phonet.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/include/linux/if_phonet.h b/include/linux/if_phonet.h index 7e989216ec17..d70034bcec05 100644 --- a/include/linux/if_phonet.h +++ b/include/linux/if_phonet.h | |||
@@ -5,14 +5,15 @@ | |||
5 | * | 5 | * |
6 | * Copyright (C) 2008 Nokia Corporation. All rights reserved. | 6 | * Copyright (C) 2008 Nokia Corporation. All rights reserved. |
7 | */ | 7 | */ |
8 | #ifndef LINUX_IF_PHONET_H | ||
9 | #define LINUX_IF_PHONET_H | ||
8 | 10 | ||
9 | #define PHONET_HEADER_LEN 8 /* Phonet header length */ | 11 | #define PHONET_MIN_MTU 6 /* pn_length = 0 */ |
10 | 12 | #define PHONET_MAX_MTU 65541 /* pn_length = 0xffff */ | |
11 | #define PHONET_MIN_MTU 6 | ||
12 | /* 6 bytes header + 65535 bytes payload */ | ||
13 | #define PHONET_MAX_MTU 65541 | ||
14 | #define PHONET_DEV_MTU PHONET_MAX_MTU | 13 | #define PHONET_DEV_MTU PHONET_MAX_MTU |
15 | 14 | ||
16 | #ifdef __KERNEL__ | 15 | #ifdef __KERNEL__ |
17 | extern struct header_ops phonet_header_ops; | 16 | extern struct header_ops phonet_header_ops; |
18 | #endif | 17 | #endif |
18 | |||
19 | #endif | ||