Permalink
Browse files

Add check for unspecified address

  • Loading branch information...
1 parent 10f0769 commit a192a89676ba0952ae27b8559f0fba3c85f26cf2 @msantos committed Apr 1, 2012
Showing with 7 additions and 0 deletions.
  1. +7 −0 src/sut.erl
View
@@ -197,6 +197,13 @@ valid(<<6:4, _Class:8, _Flow:20,
0:16, 0:16, 0:16, 0:16, 0:16, 0:16, 0:16, 1:16,
_Payload/binary>>, _State) ->
false;
+% unspecified address
+valid(<<6:4, _Class:8, _Flow:20,
+ _Len:16, _Next:8, _Hop:8,
+ _SA1:16, _SA2:16, _SA3:16, _SA4:16, _SA5:16, _SA6:16, _SA7:16, _SA8:16,
+ 0:16, 0:16, 0:16, 0:16, 0:16, 0:16, 0:16, 0:16,
+ _Payload/binary>>, _State) ->
+ false;
% Multicast
valid(<<6:4, _Class:8, _Flow:20,
_Len:16, _Next:8, _Hop:8,

0 comments on commit a192a89

Please sign in to comment.