bugfix in mod app, didn't copy all the tcp header correctly if this have more than 20 bytes. I guess this could happen in UDP too.
bugfix in user app, add some cast, didn't pass the correct min and max values.