summaryrefslogtreecommitdiff
path: root/usr.sbin/ospf6d
diff options
context:
space:
mode:
authorMartin Pieuchot <mpi@cvs.openbsd.org>2014-03-24 11:01:48 +0000
committerMartin Pieuchot <mpi@cvs.openbsd.org>2014-03-24 11:01:48 +0000
commit1ee43ea77ac3382db1272caf0a458ad1bab6a6cf (patch)
treee6716adf1035ec1e9778712c84a62d8689d7a607 /usr.sbin/ospf6d
parent0fa7511695bb7eb471711cab91b0c6627c835d1c (diff)
Passing MSG_DONTROUTE to sendto() here has no effect since SO_DONTROUTE
is only implemented for IPv4. Just remove it. Tested by and ok florian@
Diffstat (limited to 'usr.sbin/ospf6d')
-rw-r--r--usr.sbin/ospf6d/packet.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/ospf6d/packet.c b/usr.sbin/ospf6d/packet.c
index 0f0e533e53f..3828fa4f04a 100644
--- a/usr.sbin/ospf6d/packet.c
+++ b/usr.sbin/ospf6d/packet.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: packet.c,v 1.11 2010/12/31 21:22:42 guenther Exp $ */
+/* $OpenBSD: packet.c,v 1.12 2014/03/24 11:01:47 mpi Exp $ */
/*
* Copyright (c) 2004, 2005 Esben Norby <norby@openbsd.org>
@@ -104,7 +104,7 @@ send_packet(struct iface *iface, void *pkt, size_t len,
return (-1);
}
- if (sendto(iface->fd, pkt, len, MSG_DONTROUTE, (struct sockaddr *)&sa6,
+ if (sendto(iface->fd, pkt, len, 0, (struct sockaddr *)&sa6,
sizeof(sa6)) == -1) {
log_warn("send_packet: error sending packet on interface %s",
iface->name);