Permalink
Browse files

Clarify types for protocols

  • Loading branch information...
msantos committed Dec 27, 2010
1 parent 94fce13 commit df855d2d08dae7a464d5addd20b6185628edb643
Showing with 4 additions and 0 deletions.
  1. +4 −0 README
View
4 README
@@ -32,6 +32,10 @@ sctp(Packet) -> {#sctp{}, Payload} | binary()
udp(Packet) -> {#udp{}, Payload} | binary()
icmp(Packet) -> {#icmp{}, Payload} | binary()
+ Types Packet = Header | binary()
+ Header = #ether{} | #arp{} | #ipv4{} | #ipv6{} |
+ #tcp{} | #sctp{} | #upd{} | #icmp{}
+
makesum(Packet) -> integer()
Types Packet = IPv4_header | [IPv4_header, Header, Payload]

0 comments on commit df855d2

Please sign in to comment.