From 074af91700644c1470d55e3d527e1b8e1c205427 Mon Sep 17 00:00:00 2001 From: Bruce Beare Date: Fri, 3 Dec 2010 16:14:59 -0800 Subject: [PATCH] Add defines for CAIF support Orig-Change-Id: I32d2e02814f1965ebdcecb804e947ff303dbe230 Author: Mark Gross Signed-off-by: Bruce Beare --- libc/kernel/common/linux/if_ether.h | 1 + libc/kernel/common/linux/socket.h | 4 +++- libc/kernel/common/linux/tty.h | 2 ++ 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/libc/kernel/common/linux/if_ether.h b/libc/kernel/common/linux/if_ether.h index 1ba7a9928..7e235a54d 100644 --- a/libc/kernel/common/linux/if_ether.h +++ b/libc/kernel/common/linux/if_ether.h @@ -84,6 +84,7 @@ #define ETH_P_TRAILER 0x001C #define ETH_P_PHONET 0x00F5 #define ETH_P_IEEE802154 0x00F6 +#define ETH_P_CAIF 0x00F7 struct ethhdr { unsigned char h_dest[ETH_ALEN]; diff --git a/libc/kernel/common/linux/socket.h b/libc/kernel/common/linux/socket.h index b578df943..c30dae0d4 100644 --- a/libc/kernel/common/linux/socket.h +++ b/libc/kernel/common/linux/socket.h @@ -138,7 +138,8 @@ struct ucred { #define AF_LLC 26 #define AF_TIPC 30 #define AF_BLUETOOTH 31 -#define AF_MAX 32 +#define AF_CAIF 38 +#define AF_MAX 39 #define PF_UNSPEC AF_UNSPEC #define PF_UNIX AF_UNIX @@ -170,6 +171,7 @@ struct ucred { #define PF_LLC AF_LLC #define PF_TIPC AF_TIPC #define PF_BLUETOOTH AF_BLUETOOTH +#define PF_CAIF AF_CAIF #define PF_MAX AF_MAX #define SOMAXCONN 128 diff --git a/libc/kernel/common/linux/tty.h b/libc/kernel/common/linux/tty.h index b28791c76..b1f2eab83 100644 --- a/libc/kernel/common/linux/tty.h +++ b/libc/kernel/common/linux/tty.h @@ -12,4 +12,6 @@ #ifndef _LINUX_TTY_H #define _LINUX_TTY_H +#define N_CAIF 20 + #endif