diff options
Diffstat (limited to 'zebra/zapi_msg.c')
| -rw-r--r-- | zebra/zapi_msg.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/zebra/zapi_msg.c b/zebra/zapi_msg.c index e996f6c956..9972d32fb7 100644 --- a/zebra/zapi_msg.c +++ b/zebra/zapi_msg.c @@ -1040,7 +1040,7 @@ int zsend_pw_update(struct zserv *client, struct zebra_pw *pw) struct stream *s = stream_new(ZEBRA_MAX_PACKET_SIZ); zclient_create_header(s, ZEBRA_PW_STATUS_UPDATE, pw->vrf_id); - stream_write(s, pw->ifname, IF_NAMESIZE); + stream_write(s, pw->ifname, INTERFACE_NAMSIZ); stream_putl(s, pw->ifindex); stream_putl(s, pw->status); @@ -2998,7 +2998,7 @@ static void zread_srv6_manager_request(ZAPI_HANDLER_ARGS) static void zread_pseudowire(ZAPI_HANDLER_ARGS) { struct stream *s; - char ifname[IF_NAMESIZE]; + char ifname[INTERFACE_NAMSIZ]; ifindex_t ifindex; int type; int af; @@ -3014,8 +3014,8 @@ static void zread_pseudowire(ZAPI_HANDLER_ARGS) s = msg; /* Get data. */ - STREAM_GET(ifname, s, IF_NAMESIZE); - ifname[IF_NAMESIZE - 1] = '\0'; + STREAM_GET(ifname, s, INTERFACE_NAMSIZ); + ifname[INTERFACE_NAMSIZ - 1] = '\0'; STREAM_GETL(s, ifindex); STREAM_GETL(s, type); STREAM_GETL(s, af); |
