GRE class previously unpacked its optional headers with network byte order, but then repacked them with an unspecified order (Line 117). In this case, struct uses the native byte order.
This would result in a byte order swapping for anyone on a little-endian machine who unpacks and repacks a GRE class with optional headers.
Corrected previous test which assumed implementation was correct, and extended testing too.
GRE class previously unpacked its optional headers with network byte order, but then repacked them with an unspecified order (Line 117). In this case, struct uses the native byte order.
This would result in a byte order swapping for anyone on a little-endian machine who unpacks and repacks a GRE class with optional headers.
Corrected previous test which assumed implementation was correct, and extended testing too.