Skip to content

Commit

Permalink
phonet: Protect if_phonet.h against multiple inclusions.
Browse files Browse the repository at this point in the history
From: Remi Denis-Courmont <remi.denis-courmont@nokia.com>

Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Remi Denis-Courmont authored and David S. Miller committed Oct 1, 2008
1 parent a57334e commit 6e50e8a
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions include/linux/if_phonet.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 6e50e8a

Please sign in to comment.