Rfc6810 bis

pull request for reviewing code
why 100? Could we replace the magic number with sizeof() or a define?