aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ssl/src/dtls_connection.erl
diff options
context:
space:
mode:
authorAndreas Schultz <[email protected]>2016-01-07 14:14:47 +0100
committerIngela Anderton Andin <[email protected]>2016-06-13 22:24:42 +0200
commit4c4bec1b8ba8bb8f9af0e8bb28725ade5e24adfe (patch)
tree7d365f4ce6f728417f8cdce03da1e7d2f33f860d /lib/ssl/src/dtls_connection.erl
parent0c38557bbee3f5cb288e8e1df9a77f2fbf1765d1 (diff)
downloadotp-4c4bec1b8ba8bb8f9af0e8bb28725ade5e24adfe.tar.gz
otp-4c4bec1b8ba8bb8f9af0e8bb28725ade5e24adfe.tar.bz2
otp-4c4bec1b8ba8bb8f9af0e8bb28725ade5e24adfe.zip
dtls: add implementation for msg sequence
Conflicts: lib/ssl/src/dtls_connection.erl lib/ssl/src/ssl_record.erl
Diffstat (limited to 'lib/ssl/src/dtls_connection.erl')
-rw-r--r--lib/ssl/src/dtls_connection.erl7
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/ssl/src/dtls_connection.erl b/lib/ssl/src/dtls_connection.erl
index e4486d5b56..c5687ef58b 100644
--- a/lib/ssl/src/dtls_connection.erl
+++ b/lib/ssl/src/dtls_connection.erl
@@ -585,11 +585,6 @@ handle_own_alert(_,_,_, State) -> %% Place holder
handle_normal_shutdown(_, _, _State) -> %% Place holder
ok.
-
-sequence(_) ->
- %%TODO real imp
- 1.
-
handle_packet(Address, Port, Packet) ->
try dtls_record:get_dtls_records(Packet, <<>>) of
%% expect client hello
@@ -637,3 +632,5 @@ address_to_bin({A,B,C,D}, Port) ->
address_to_bin({A,B,C,D,E,F,G,H}, Port) ->
<<A:16,B:16,C:16,D:16,E:16,F:16,G:16,H:16,Port:16>>.
+sequence(#connection_states{dtls_write_msg_seq = Seq} = CS) ->
+ {Seq, CS#connection_states{dtls_write_msg_seq = Seq + 1}}.