Update chapter4.md

This commit is contained in:
0xflotus 2020-06-09 00:08:04 +02:00 committed by GitHub
parent 88d34e88b6
commit 12102673c1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -197,7 +197,7 @@ fn main() {
// the raw bytes are simply returned, and if not it'll abort by restarting the // the raw bytes are simply returned, and if not it'll abort by restarting the
// loop and waiting for the next request. The `recv_from` function will write the // loop and waiting for the next request. The `recv_from` function will write the
// data into the provided buffer, and return the length of the data read as well // data into the provided buffer, and return the length of the data read as well
// as the source adress. We're not interested in the length, but we need to keep // as the source address. We're not interested in the length, but we need to keep
// track of the source in order to send our reply later on. // track of the source in order to send our reply later on.
// Next, `DnsPacket::from_buffer` is used to parse the raw bytes into // Next, `DnsPacket::from_buffer` is used to parse the raw bytes into