-/* $OpenBSD: interface.c,v 1.16 2021/01/19 10:09:59 claudio Exp $ */
+/* $OpenBSD: interface.c,v 1.17 2024/08/21 14:58:14 florian Exp $ */
/*
* Copyright (c) 2006 Michele Marchetto <mydecay@openbeer.it>
switch (iface->type) {
case IF_TYPE_POINTOPOINT:
case IF_TYPE_BROADCAST:
- inet_aton(ALL_RIP_ROUTERS, &addr);
+ inet_pton(AF_INET, ALL_RIP_ROUTERS, &addr);
if (if_join_group(iface, &addr)) {
log_warn("if_act_start: error joining group %s, "
"interface %s", inet_ntoa(addr), iface->name);
switch (iface->type) {
case IF_TYPE_POINTOPOINT:
case IF_TYPE_BROADCAST:
- inet_aton(ALL_RIP_ROUTERS, &addr);
+ inet_pton(AF_INET, ALL_RIP_ROUTERS, &addr);
if (if_leave_group(iface, &addr)) {
log_warn("if_act_reset: error leaving group %s, "
"interface %s", inet_ntoa(addr), iface->name);
-/* $OpenBSD: message.c,v 1.17 2023/07/03 10:34:08 claudio Exp $ */
+/* $OpenBSD: message.c,v 1.18 2024/08/21 14:58:14 florian Exp $ */
/*
* Copyright (c) 2006 Michele Marchetto <mydecay@openbeer.it>
if (iface->passive)
return (0);
- inet_aton(ALL_RIP_ROUTERS, &dst.sin_addr);
+ inet_pton(AF_INET, ALL_RIP_ROUTERS, &dst.sin_addr);
dst.sin_port = htons(RIP_PORT);
dst.sin_family = AF_INET;
} else {
/* multicast on interface */
iface = i;
- inet_aton(ALL_RIP_ROUTERS, &dst.sin_addr);
+ inet_pton(AF_INET, ALL_RIP_ROUTERS, &dst.sin_addr);
port = htons(RIP_PORT);
}
} else {
/* multicast on interface */
iface = i;
- inet_aton(ALL_RIP_ROUTERS, &dst.sin_addr);
+ inet_pton(AF_INET, ALL_RIP_ROUTERS, &dst.sin_addr);
port = htons(RIP_PORT);
}