summaryrefslogtreecommitdiff
path: root/accel-pppd
diff options
context:
space:
mode:
authorVladislav Grishenko <themiron@mail.ru>2020-02-16 04:05:43 +0500
committerVladislav Grishenko <themiron@mail.ru>2020-02-16 04:57:15 +0500
commit0d8304da6eca8ab6f2ca36128ee76b56bfcdd617 (patch)
tree4d589901115947305b9745c24e84667b54af32a2 /accel-pppd
parent9d6d9a4b6010226ed9720055d3d1062282807520 (diff)
downloadaccel-ppp-0d8304da6eca8ab6f2ca36128ee76b56bfcdd617.tar.gz
accel-ppp-0d8304da6eca8ab6f2ca36128ee76b56bfcdd617.zip
ipoe: dhcpv4: move relay packet logging after padding
Diffstat (limited to 'accel-pppd')
-rw-r--r--accel-pppd/ctrl/ipoe/dhcpv4.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/accel-pppd/ctrl/ipoe/dhcpv4.c b/accel-pppd/ctrl/ipoe/dhcpv4.c
index 5ad161a..76ad7c2 100644
--- a/accel-pppd/ctrl/ipoe/dhcpv4.c
+++ b/accel-pppd/ctrl/ipoe/dhcpv4.c
@@ -1021,11 +1021,6 @@ int dhcpv4_relay_send(struct dhcpv4_relay *relay, struct dhcpv4_packet *request,
}
}
- if (conf_verbose) {
- log_ppp_info2("send ");
- dhcpv4_print_packet(request, 1, log_ppp_info2);
- }
-
len = request->ptr - request->data;
// pad packet to minimal bootp length
@@ -1034,6 +1029,11 @@ int dhcpv4_relay_send(struct dhcpv4_relay *relay, struct dhcpv4_packet *request,
len = 300;
}
+ if (conf_verbose) {
+ log_ppp_info2("send ");
+ dhcpv4_print_packet(request, 1, log_ppp_info2);
+ }
+
n = write(relay->hnd.fd, request->data, len);
request->hdr->giaddr = giaddr;