-/* $OpenBSD: parser.c,v 1.135 2024/08/14 19:10:51 claudio Exp $ */
+/* $OpenBSD: parser.c,v 1.136 2024/08/21 09:17:05 florian Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
*v = uval | (uvalh << 16);
break;
case EXT_COMMUNITY_TRANS_IPV4:
- if (inet_aton(s, &ip) == 0)
+ if (inet_pton(AF_INET, s, &ip) == 0)
errx(1, "Bad ext-community %s not parseable", s);
*v = ntohl(ip.s_addr);
break;
-/* $OpenBSD: parse.y,v 1.465 2024/08/14 19:09:51 claudio Exp $ */
+/* $OpenBSD: parse.y,v 1.466 2024/08/21 09:17:05 florian Exp $ */
/*
* Copyright (c) 2002, 2003, 2004 Henning Brauer <henning@openbsd.org>
*v = uval | (uvalh << 16);
break;
case EXT_COMMUNITY_TRANS_IPV4:
- if (inet_aton(s, &ip) == 0) {
+ if (inet_pton(AF_INET, s, &ip) == 0) {
yyerror("Bad ext-community %s not parseable", s);
return (-1);
}