diff options
author | Christian Grothoff <christian@grothoff.org> | 2012-01-10 21:52:42 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2012-01-10 21:52:42 +0000 |
commit | 894248a687a4c5e63de96a58026bf275a10339a0 (patch) | |
tree | 0c9d612c27d69617891fd2e5dc62f83ef780c1ed /src/exit/exit.h | |
parent | 909622d667a3ee923ff0ea03f5184a4eaa20880f (diff) | |
download | gnunet-894248a687a4c5e63de96a58026bf275a10339a0.tar.gz gnunet-894248a687a4c5e63de96a58026bf275a10339a0.zip |
-dealing with new UDP message formats
Diffstat (limited to 'src/exit/exit.h')
-rw-r--r-- | src/exit/exit.h | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/src/exit/exit.h b/src/exit/exit.h index 37ae7e8a4..2047ca113 100644 --- a/src/exit/exit.h +++ b/src/exit/exit.h | |||
@@ -128,9 +128,14 @@ struct GNUNET_EXIT_UdpServiceMessage | |||
128 | struct GNUNET_MessageHeader header; | 128 | struct GNUNET_MessageHeader header; |
129 | 129 | ||
130 | /** | 130 | /** |
131 | * Always 0. | 131 | * Source port to use for the UDP request (0 to use a random port). In NBO. |
132 | */ | 132 | */ |
133 | uint32_t reserved; | 133 | uint16_t source_port; |
134 | |||
135 | /** | ||
136 | * Destination port to use for the UDP request. In NBO. | ||
137 | */ | ||
138 | uint16_t destination_port; | ||
134 | 139 | ||
135 | /** | 140 | /** |
136 | * Identification for the desired service. | 141 | * Identification for the desired service. |
@@ -157,6 +162,15 @@ struct GNUNET_EXIT_UdpInternetMessage | |||
157 | */ | 162 | */ |
158 | int32_t af; | 163 | int32_t af; |
159 | 164 | ||
165 | /** | ||
166 | * Source port to use for the UDP request (0 to use a random port). In NBO. | ||
167 | */ | ||
168 | uint16_t source_port; | ||
169 | |||
170 | /** | ||
171 | * Destination port to use for the UDP request. In NBO. | ||
172 | */ | ||
173 | uint16_t destination_port; | ||
160 | 174 | ||
161 | /* followed by IP address of the destination; either | 175 | /* followed by IP address of the destination; either |
162 | 'struct in_addr' or 'struct in6_addr', depending on af */ | 176 | 'struct in_addr' or 'struct in6_addr', depending on af */ |