Cosmetic cleanups of comments.
This commit is contained in:
parent
916ddf10e5
commit
f864a0317c
@ -144,6 +144,7 @@ static int send_dhcp_cooked(struct client_state_t *cs, struct dhcpmsg *payload)
|
|||||||
goto out_fd;
|
goto out_fd;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Send packets that are as short as possible.
|
||||||
ssize_t endloc = get_end_option_idx(payload);
|
ssize_t endloc = get_end_option_idx(payload);
|
||||||
if (endloc < 0) {
|
if (endloc < 0) {
|
||||||
log_error("send_dhcp_cooked: No end marker. Not sending.");
|
log_error("send_dhcp_cooked: No end marker. Not sending.");
|
||||||
@ -403,8 +404,7 @@ static int send_dhcp_raw(struct dhcpmsg *payload)
|
|||||||
if (fd == -1)
|
if (fd == -1)
|
||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
// Send packets that are as short as possible, since some servers are buggy
|
// Send packets that are as short as possible.
|
||||||
// and drop packets that are longer than 562 bytes.
|
|
||||||
ssize_t endloc = get_end_option_idx(payload);
|
ssize_t endloc = get_end_option_idx(payload);
|
||||||
if (endloc < 0) {
|
if (endloc < 0) {
|
||||||
log_error("send_dhcp_raw: No end marker. Not sending.");
|
log_error("send_dhcp_raw: No end marker. Not sending.");
|
||||||
|
Loading…
Reference in New Issue
Block a user