aboutgitcodebugslistschat
path: root/ndp.c
diff options
context:
space:
mode:
authorStefano Brivio <sbrivio@redhat.com>2021-03-18 07:49:08 +0100
committerStefano Brivio <sbrivio@redhat.com>2021-03-18 12:58:07 +0100
commit48ca38c6068bd15a94b1ecf2977d3f0160bbe63b (patch)
treeb15899a7dc87d400eabf56dcc67dc6f3b824addf /ndp.c
parent8bfcc9208cf99a653b9235bbe28ad5eb6c2e6bf2 (diff)
downloadpasst-48ca38c6068bd15a94b1ecf2977d3f0160bbe63b.tar
passt-48ca38c6068bd15a94b1ecf2977d3f0160bbe63b.tar.gz
passt-48ca38c6068bd15a94b1ecf2977d3f0160bbe63b.tar.bz2
passt-48ca38c6068bd15a94b1ecf2977d3f0160bbe63b.tar.lz
passt-48ca38c6068bd15a94b1ecf2977d3f0160bbe63b.tar.xz
passt-48ca38c6068bd15a94b1ecf2977d3f0160bbe63b.tar.zst
passt-48ca38c6068bd15a94b1ecf2977d3f0160bbe63b.zip
passt: Run in background, add message logging with severities
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'ndp.c')
-rw-r--r--ndp.c4
1 files changed, 2 insertions, 2 deletions
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);