From 28646b7dcee8778c0981d0ac664800ab63631b7a Mon Sep 17 00:00:00 2001 From: Richard Alpe Date: Mon, 11 Sep 2023 16:15:29 +0200 Subject: [PATCH] confd: add ip proto when setting static ip There might be more places in confd where this is needed. This works for the most basic use case. The proto set here is picked up by statd and converted into a YANG origin, which is exposed to the user. Signed-off-by: Richard Alpe --- src/confd/src/ietf-interfaces.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/confd/src/ietf-interfaces.c b/src/confd/src/ietf-interfaces.c index 94b46a772..3b26768f3 100644 --- a/src/confd/src/ietf-interfaces.c +++ b/src/confd/src/ietf-interfaces.c @@ -381,7 +381,7 @@ static int netdag_gen_diff_addr(FILE *ip, const char *ifname, is_std_lo_addr(ifname, adrd.new, pfxd.new)) addcmd = "replace"; - fprintf(ip, "address %s %s/%s dev %s\n", addcmd, + fprintf(ip, "address %s %s/%s dev %s proto 4\n", addcmd, adrd.new, pfxd.new, ifname); return 0; }