So, length refers to the number of bytes which follow the header. In this case, there's nothing past the header so 0 is the right value...anyone using this function to build more complex messages (only getStunMessageWithAttributesBytes right now) can update the field (I haven't come across a better way to design this sort of test code).