summaryrefslogtreecommitdiffstats
path: root/usr.sbin/switchd/ofp10.c
diff options
context:
space:
mode:
authorreyk <reyk@openbsd.org>2016-07-21 08:39:23 +0000
committerreyk <reyk@openbsd.org>2016-07-21 08:39:23 +0000
commit61254e479b484bc0410a790688dcc7ac828a8b8f (patch)
treec5c01756d52309125fb357e431ebb00a7f05ef9f /usr.sbin/switchd/ofp10.c
parentMake rtwn(4) and urtwn(4) respect the RTS threshold set by net80211. (diff)
downloadwireguard-openbsd-61254e479b484bc0410a790688dcc7ac828a8b8f.tar.xz
wireguard-openbsd-61254e479b484bc0410a790688dcc7ac828a8b8f.zip
With uint32_t ports, we cannot sneak the port into an int anymore
Diffstat (limited to 'usr.sbin/switchd/ofp10.c')
-rw-r--r--usr.sbin/switchd/ofp10.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/switchd/ofp10.c b/usr.sbin/switchd/ofp10.c
index 5d9657ec8e3..c12a326ec43 100644
--- a/usr.sbin/switchd/ofp10.c
+++ b/usr.sbin/switchd/ofp10.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ofp10.c,v 1.4 2016/07/21 07:58:44 reyk Exp $ */
+/* $OpenBSD: ofp10.c,v 1.5 2016/07/21 08:39:23 reyk Exp $ */
/*
* Copyright (c) 2013-2016 Reyk Floeter <reyk@openbsd.org>
@@ -328,8 +328,8 @@ ofp10_packet_in(struct switchd *sc, struct switch_connection *con,
len = ntohs(pin->pin_total_len);
srcport = ntohs(pin->pin_port);
- if ((dstport = packet_input(sc, con->con_switch,
- srcport, ibuf, len, &pkt)) == -1 ||
+ if (packet_input(sc, con->con_switch,
+ srcport, &dstport, ibuf, len, &pkt) == -1 ||
dstport > OFP10_PORT_MAX) {
/* fallback to flooding */
dstport = OFP10_PORT_FLOOD;