Any sufficiently advanced technology is indistinguishable from magic

— Clarke's Third Law
DgramSize = size(Dgram),
case Dgram of
TTL:8, Proto:8, HdrChkSum:16,
SrcIP:32,
DestIP:32, RestDgram/binary» when HLen >= 5, 4*HLen =
OptsLen = 4*(HLen - ?IP_MIN_HDR_LEN),
= RestDgram,
— The coolness of erlang, or how to parse an ipv4 packet
Comments (View)
blog comments powered by Disqus