Automatically add packet header size when constructing packets