RecordFlux icon indicating copy to clipboard operation
RecordFlux copied to clipboard

References/pointers in messages

Open treiher opened this issue 5 years ago • 0 comments

References or pointers can be used to refer to other parts of the message. The message compression mechanism of DNS is using pointers to prevent the repetition of domain names.

The OFFSET field specifies an offset from the start of the message (i.e., the first octet of the ID field in the domain header). A zero offset specifies the first byte of the ID field, etc.

It should be ensured that pointers can only point to valid positions of the message. In case of DNS a pointer should be only accepted, if it points to a beginning of a label.

treiher avatar Mar 28 '19 13:03 treiher