-/* $OpenBSD: igmp.c,v 1.5 2023/06/26 10:08:56 claudio Exp $ */
+/* $OpenBSD: igmp.c,v 1.6 2024/08/21 09:18:47 florian Exp $ */
/*
* Copyright (c) 2005, 2006 Esben Norby <norby@openbsd.org>
/* set destination address */
dst.sin_family = AF_INET;
dst.sin_len = sizeof(struct sockaddr_in);
- inet_aton(AllSystems, &dst.sin_addr);
+ inet_pton(AF_INET, AllSystems, &dst.sin_addr);
ret = send_packet(iface, buf, &dst);
ibuf_free(buf);
-/* $OpenBSD: interface.c,v 1.12 2019/06/28 13:32:47 deraadt Exp $ */
+/* $OpenBSD: interface.c,v 1.13 2024/08/21 09:18:47 florian Exp $ */
/*
* Copyright (c) 2005 Claudio Jeker <claudio@openbsd.org>
switch (iface->type) {
case IF_TYPE_POINTOPOINT:
case IF_TYPE_BROADCAST:
- inet_aton(AllSystems, &addr);
+ inet_pton(AF_INET, AllSystems, &addr);
if (if_join_group(iface, &addr)) {
log_warnx("if_act_start: error joining group %s, "
"interface %s", inet_ntoa(addr), iface->name);
return (-1);
}
- inet_aton(AllRouters, &addr);
+ inet_pton(AF_INET, AllRouters, &addr);
if (if_join_group(iface, &addr)) {
log_warnx("if_act_start: error joining group %s, "
"interface %s", inet_ntoa(addr), iface->name);
return (-1);
}
- inet_aton(AllDVMRPRouters, &addr);
+ inet_pton(AF_INET, AllDVMRPRouters, &addr);
if (if_join_group(iface, &addr)) {
log_warnx("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(AllSystems, &addr);
+ inet_pton(AF_INET, AllSystems, &addr);
if (if_leave_group(iface, &addr)) {
log_warnx("if_act_reset: error leaving group %s, "
"interface %s", inet_ntoa(addr), iface->name);
return (-1);
}
- inet_aton(AllRouters, &addr);
+ inet_pton(AF_INET, AllRouters, &addr);
if (if_leave_group(iface, &addr)) {
log_warnx("if_act_reset: error leaving group %s, "
"interface %s", inet_ntoa(addr), iface->name);
return (-1);
}
- inet_aton(AllDVMRPRouters, &addr);
+ inet_pton(AF_INET, AllDVMRPRouters, &addr);
if (if_leave_group(iface, &addr)) {
log_warnx("if_act_reset: error leaving group %s, "
"interface %s", inet_ntoa(addr), iface->name);
-/* $OpenBSD: packet.c,v 1.8 2023/06/26 10:08:56 claudio Exp $ */
+/* $OpenBSD: packet.c,v 1.9 2024/08/21 09:18:47 florian Exp $ */
/*
* Copyright (c) 2004, 2005, 2006 Esben Norby <norby@openbsd.org>
buf += sizeof(*dvmrp_hdr);
len = l - sizeof(*dvmrp_hdr);
- inet_aton(AllDVMRPRouters, &addr);
+ inet_pton(AF_INET, AllDVMRPRouters, &addr);
if ((ip_hdr.ip_dst.s_addr != addr.s_addr) &&
(ip_hdr.ip_dst.s_addr != iface->addr.s_addr)) {
log_debug("recv_packet: interface %s, invalid"
-/* $OpenBSD: probe.c,v 1.6 2024/04/23 13:34:51 jsg Exp $ */
+/* $OpenBSD: probe.c,v 1.7 2024/08/21 09:18:47 florian Exp $ */
/*
* Copyright (c) 2005, 2006 Esben Norby <norby@openbsd.org>
/* set destination address */
dst.sin_family = AF_INET;
dst.sin_len = sizeof(struct sockaddr_in);
- inet_aton(AllDVMRPRouters, &dst.sin_addr);
+ inet_pton(AF_INET, AllDVMRPRouters, &dst.sin_addr);
ret = send_packet(iface, buf, &dst);
ibuf_free(buf);