Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle packing of empty RDATA correctly for EDNS0_EXPIRE (Resolves #1292
) (#1293) * Change EDNS_EXPIRE field to support zero length option data (Resolves #1292) As per [RFC7134](https://datatracker.ietf.org/doc/html/rfc7314#section-2) the Expire Option in queries should be zero-length. In the current implementation the field is uint32 which always instatiates 4bytes for that field when packing to wire format. For that reason we change the field to []uint8 so it can support 0-length and 4-byte length option data. * addressed comments * addressed comments * make change backwards compatible * add comment for Empty field
- Loading branch information