summaryrefslogtreecommitdiffstats
path: root/src/vnet/dhcp
diff options
context:
space:
mode:
authorjackiechen1985 <xiaobo.chen@tieto.com>2019-05-07 18:59:13 +0800
committerjackiechen1985 <xiaobo.chen@tieto.com>2019-05-07 19:00:16 +0800
commit7fa4160c471105b5738b46600ce335462d5d75aa (patch)
tree90bb31277ef7177386e90095aa3d1333dd0f0c3a /src/vnet/dhcp
parent0b81915af417ca568aa3c8d976e0ecfd3fdffe39 (diff)
Fix af_packet issues:
1. Fix af_packet memory leak; 2. Fix close socket twice; 3. Adjust debug log for syscall; 4. Adjust dhcp client output log; Change-Id: I96bfaef16c4fad80c5da0d9ac602f911fee1670d Signed-off-by: jackiechen1985 <xiaobo.chen@tieto.com>
Diffstat (limited to 'src/vnet/dhcp')
-rw-r--r--src/vnet/dhcp/client.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/vnet/dhcp/client.c b/src/vnet/dhcp/client.c
index 1d5352194ba..b89b8f28acc 100644
--- a/src/vnet/dhcp/client.c
+++ b/src/vnet/dhcp/client.c
@@ -830,13 +830,14 @@ format_dhcp_client (u8 * s, va_list * va)
if (c->leased_address.as_u32)
{
- s = format (s, "addr %U/%d gw %U\n",
+ s = format (s, "addr %U/%d gw %U",
format_ip4_address, &c->leased_address,
c->subnet_mask_width, format_ip4_address,
&c->router_address);
vec_foreach (addr, c->domain_server_address)
- s = format (s, "dns %U ", format_ip4_address, addr);
+ s = format (s, " dns %U", format_ip4_address, addr);
+ vec_add1 (s, '\n');
}
else
{