diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/phonet.h | 5 | ||||
-rw-r--r-- | include/net/phonet/pep.h | 21 |
2 files changed, 26 insertions, 0 deletions
diff --git a/include/linux/phonet.h b/include/linux/phonet.h index 85e14a83283b..96f5625d62fa 100644 --- a/include/linux/phonet.h +++ b/include/linux/phonet.h | |||
@@ -36,6 +36,11 @@ | |||
36 | /* Socket options for SOL_PNPIPE level */ | 36 | /* Socket options for SOL_PNPIPE level */ |
37 | #define PNPIPE_ENCAP 1 | 37 | #define PNPIPE_ENCAP 1 |
38 | #define PNPIPE_IFINDEX 2 | 38 | #define PNPIPE_IFINDEX 2 |
39 | #define PNPIPE_CREATE 3 | ||
40 | #define PNPIPE_ENABLE 4 | ||
41 | #define PNPIPE_DISABLE 5 | ||
42 | #define PNPIPE_DESTROY 6 | ||
43 | #define PNPIPE_INQ 7 | ||
39 | 44 | ||
40 | #define PNADDR_ANY 0 | 45 | #define PNADDR_ANY 0 |
41 | #define PNADDR_BROADCAST 0xFC | 46 | #define PNADDR_BROADCAST 0xFC |
diff --git a/include/net/phonet/pep.h b/include/net/phonet/pep.h index 37f23dc05de8..def6cfa3f451 100644 --- a/include/net/phonet/pep.h +++ b/include/net/phonet/pep.h | |||
@@ -45,6 +45,10 @@ struct pep_sock { | |||
45 | u8 tx_fc; /* TX flow control */ | 45 | u8 tx_fc; /* TX flow control */ |
46 | u8 init_enable; /* auto-enable at creation */ | 46 | u8 init_enable; /* auto-enable at creation */ |
47 | u8 aligned; | 47 | u8 aligned; |
48 | #ifdef CONFIG_PHONET_PIPECTRLR | ||
49 | u16 remote_pep; | ||
50 | u8 pipe_state; | ||
51 | #endif | ||
48 | }; | 52 | }; |
49 | 53 | ||
50 | static inline struct pep_sock *pep_sk(struct sock *sk) | 54 | static inline struct pep_sock *pep_sk(struct sock *sk) |
@@ -165,4 +169,21 @@ enum { | |||
165 | PEP_IND_READY, | 169 | PEP_IND_READY, |
166 | }; | 170 | }; |
167 | 171 | ||
172 | #ifdef CONFIG_PHONET_PIPECTRLR | ||
173 | #define PNS_PEP_CONNECT_UTID 0x02 | ||
174 | #define PNS_PIPE_CREATED_IND_UTID 0x04 | ||
175 | #define PNS_PIPE_ENABLE_UTID 0x0A | ||
176 | #define PNS_PIPE_ENABLED_IND_UTID 0x0C | ||
177 | #define PNS_PIPE_DISABLE_UTID 0x0F | ||
178 | #define PNS_PIPE_DISABLED_IND_UTID 0x11 | ||
179 | #define PNS_PEP_DISCONNECT_UTID 0x06 | ||
180 | |||
181 | /* Used for tracking state of a pipe */ | ||
182 | enum { | ||
183 | PIPE_IDLE, | ||
184 | PIPE_DISABLED, | ||
185 | PIPE_ENABLED, | ||
186 | }; | ||
187 | #endif /* CONFIG_PHONET_PIPECTRLR */ | ||
188 | |||
168 | #endif | 189 | #endif |