diff options
Diffstat (limited to 'sbin/isakmpd/udp_encap.c')
-rw-r--r-- | sbin/isakmpd/udp_encap.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/sbin/isakmpd/udp_encap.c b/sbin/isakmpd/udp_encap.c index fa81d7e2f8d..9836eceb727 100644 --- a/sbin/isakmpd/udp_encap.c +++ b/sbin/isakmpd/udp_encap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: udp_encap.c,v 1.14 2005/04/08 16:07:22 cloder Exp $ */ +/* $OpenBSD: udp_encap.c,v 1.15 2005/04/08 23:15:26 hshoexer Exp $ */ /* * Copyright (c) 1998, 1999, 2001 Niklas Hallqvist. All rights reserved. @@ -49,7 +49,6 @@ #include "log.h" #include "message.h" #include "monitor.h" -#include "sysdep.h" #include "transport.h" #include "udp.h" #include "udp_encap.h" @@ -164,7 +163,7 @@ udp_encap_make(struct sockaddr *laddr) } t->transport.vtbl = &udp_encap_transport_vtbl; - if (monitor_bind(s, t->src, sysdep_sa_len (t->src))) { + if (monitor_bind(s, t->src, SA_LEN(t->src))) { if (sockaddr2text(t->src, &tstr, 0)) log_error("udp_encap_make: bind (%d, %p, %lu)", s, &t->src, (unsigned long)sizeof t->src); @@ -213,11 +212,11 @@ udp_encap_bind(const struct sockaddr *addr) { struct sockaddr *src; - src = malloc(sysdep_sa_len((struct sockaddr *)addr)); + src = malloc(SA_LEN(addr)); if (!src) return 0; - memcpy(src, addr, sysdep_sa_len((struct sockaddr *)addr)); + memcpy(src, addr, SA_LEN(addr)); return udp_encap_make(src); } @@ -435,7 +434,7 @@ udp_encap_send_message(struct message *msg, struct transport *t) * given, or else EISCONN will occur. */ m.msg_name = (caddr_t)u->dst; - m.msg_namelen = sysdep_sa_len (u->dst); + m.msg_namelen = SA_LEN(u->dst); m.msg_iov = msg ? new_iov : &keepalive; m.msg_iovlen = msg ? msg->iovlen + 1 : 1; m.msg_control = 0; |