From 48ca38c6068bd15a94b1ecf2977d3f0160bbe63b Mon Sep 17 00:00:00 2001 From: Stefano Brivio Date: Thu, 18 Mar 2021 07:49:08 +0100 Subject: passt: Run in background, add message logging with severities Signed-off-by: Stefano Brivio --- ndp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ndp.c') diff --git a/ndp.c b/ndp.c index 952621d..7468134 100644 --- a/ndp.c +++ b/ndp.c @@ -61,7 +61,7 @@ int ndp(struct ctx *c, struct ethhdr *eh, size_t len) ihr = (struct icmp6hdr *)(ip6hr + 1); if (ih->icmp6_type == NS) { - fprintf(stderr, "NDP: received NS, sending NA\n"); + info("NDP: received NS, sending NA"); ihr->icmp6_type = NA; ihr->icmp6_code = 0; ihr->icmp6_router = 1; @@ -76,7 +76,7 @@ int ndp(struct ctx *c, struct ethhdr *eh, size_t len) memcpy(p, c->mac, ETH_ALEN); p += 6; } else if (ih->icmp6_type == RS) { - fprintf(stderr, "NDP: received RS, sending RA\n"); + info("NDP: received RS, sending RA"); ihr->icmp6_type = RA; ihr->icmp6_code = 0; ihr->icmp6_rt_lifetime = htons(3600); -- cgit v1.2.3