tor  0.4.1.0-alpha-dev
proto_ext_or.h
1 /* Copyright (c) 2001 Matej Pfajfar.
2  * Copyright (c) 2001-2004, Roger Dingledine.
3  * Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson.
4  * Copyright (c) 2007-2019, The Tor Project, Inc. */
5 /* See LICENSE for licensing information */
6 
7 #ifndef TOR_PROTO_EXT_OR_H
8 #define TOR_PROTO_EXT_OR_H
9 
10 struct buf_t;
11 
13 struct ext_or_cmd_t {
14  uint16_t cmd;
15  uint16_t len;
16  char body[FLEXIBLE_ARRAY_MEMBER];
17 };
18 
19 int fetch_ext_or_command_from_buf(struct buf_t *buf,
20  struct ext_or_cmd_t **out);
21 
22 #endif /* !defined(TOR_PROTO_EXT_OR_H) */
uint16_t len
Definition: proto_ext_or.h:15
char body[FLEXIBLE_ARRAY_MEMBER]
Definition: proto_ext_or.h:16