memcmp is not a valid way to compare structs with padding in them.