aboutsummaryrefslogtreecommitdiff
path: root/src/transport/plugin_transport_sat_constants.h
diff options
context:
space:
mode:
authorChristian Rupp <ruppa@in.tum.de>2011-10-19 08:24:10 +0000
committerChristian Rupp <ruppa@in.tum.de>2011-10-19 08:24:10 +0000
commitb7619facf9cf6889deb181487b5aae133a577a5f (patch)
tree12343cbc02abbf3de0d21a4707d60ec81d94150a /src/transport/plugin_transport_sat_constants.h
parentd4d8251936b25f7bbdf8fd9195eeaef3724a7af4 (diff)
downloadgnunet-b7619facf9cf6889deb181487b5aae133a577a5f.tar.gz
gnunet-b7619facf9cf6889deb181487b5aae133a577a5f.zip
Commit: Christian Rupp
Descripton: File for constants for the new sat protocol A transport/plugin_transport_sat_constants.h
Diffstat (limited to 'src/transport/plugin_transport_sat_constants.h')
-rw-r--r--src/transport/plugin_transport_sat_constants.h53
1 files changed, 53 insertions, 0 deletions
diff --git a/src/transport/plugin_transport_sat_constants.h b/src/transport/plugin_transport_sat_constants.h
new file mode 100644
index 000000000..a9ee9227c
--- /dev/null
+++ b/src/transport/plugin_transport_sat_constants.h
@@ -0,0 +1,53 @@
1/*
2 This file is part of GNUnet
3 (C) 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Christian Grothoff (and other contributing authors)
4
5 GNUnet is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published
7 by the Free Software Foundation; either version 3, or (at your
8 option) any later version.
9
10 GNUnet is distributed in the hope that it will be useful, but
11 WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 General Public License for more details.
14
15 You should have received a copy of the GNU General Public License
16 along with GNUnet; see the file COPYING. If not, write to the
17 Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18 Boston, MA 02111-1307, USA.
19*/
20
21/**
22 * @file transport/plugin_transport_sat_send.h
23 * @brief header for transport plugin for satellite for send operations
24 * @author Christian Rupp
25 */
26
27#ifndef PLUGIN_TRANSPORT_SAT_SEND
28#define PLUGIN_TRANSPORT_SAT_SEND
29
30#include <stdint.h>
31#include "gnunet_common.h"
32
33typedef struct MacAdress
34{
35 uint8_t mac[6];
36}MacAdress;
37
38//praeamble
39static const struct char praeambel[56] =
40{{1,0,1,0,10,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0}};
41
42//start of frame
43static const struct char sof[8]=
44{{1,0,1,0,1,0,1,1}}
45
46// broadcast mac
47static const struct MacAddress bc_all_mac =
48 { { 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF } };
49
50//crc polynom
51static const struct char ploynom[32] =
52 {{1,1,1,0,1,1,0,1,1,0,1,1,1,0,0,0,1,0,0,0,0,0,1,1,0,0,1,0,0,0,0,1}};
53#endif