summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorReyk Floeter <reyk@cvs.openbsd.org>2006-03-10 18:10:17 +0000
committerReyk Floeter <reyk@cvs.openbsd.org>2006-03-10 18:10:17 +0000
commitf9039b4a9fff339b56ac28e64953a5a0836c2bdf (patch)
treeb595d1d32dd2b08cddd1337b5fee6cdc84b37ef1
parentd0b3cbe24f6dcfcad0843494304ab933084f6c4c (diff)
some IAPP implementations still use the pre-standard port 2313 in broadcast
mode (tested with the HP ProCurve 420wl). add a note to the manual page and the example configuration.
-rw-r--r--etc/hostapd.conf5
-rw-r--r--usr.sbin/hostapd/hostapd.conf.58
-rw-r--r--usr.sbin/hostapd/iapp.h3
3 files changed, 11 insertions, 5 deletions
diff --git a/etc/hostapd.conf b/etc/hostapd.conf
index d1cd798e80b..87ffc60d538 100644
--- a/etc/hostapd.conf
+++ b/etc/hostapd.conf
@@ -1,4 +1,4 @@
-# $OpenBSD: hostapd.conf,v 1.8 2005/11/03 23:06:48 david Exp $
+# $OpenBSD: hostapd.conf,v 1.9 2006/03/10 18:10:16 reyk Exp $
# sample hostapd configuration file
# see hostapd.conf(5)
@@ -41,6 +41,9 @@ set hostap mode radiotap
set iapp interface $wired
set iapp mode multicast
+# The following mode is compatible to some pre-standard IAPP implementations
+#set iapp mode broadcast port 2313
+
#
# Event rules
#
diff --git a/usr.sbin/hostapd/hostapd.conf.5 b/usr.sbin/hostapd/hostapd.conf.5
index 58c8497b157..ba4c557cfc4 100644
--- a/usr.sbin/hostapd/hostapd.conf.5
+++ b/usr.sbin/hostapd/hostapd.conf.5
@@ -1,4 +1,4 @@
-.\" $OpenBSD: hostapd.conf.5,v 1.29 2005/12/29 04:33:58 reyk Exp $
+.\" $OpenBSD: hostapd.conf.5,v 1.30 2006/03/10 18:10:16 reyk Exp $
.\"
.\" Copyright (c) 2004, 2005 Reyk Floeter <reyk@openbsd.org>
.\"
@@ -196,8 +196,10 @@ multicast forwarding, for example for use with
Use broadcast frames.
.El
.Pp
-The default is multicast using the multicast address 224.0.1.178 with a TTL
-limited to 1 hop.
+The default is multicast using the multicast address 224.0.1.178 and
+port 3517 with a TTL limited to 1 hop.
+Some access point vendors still use broadcast with the pre-standard
+IAPP port 2313.
.El
.Sh EVENT RULES
Event rules provide a powerful way to trigger a certain action when
diff --git a/usr.sbin/hostapd/iapp.h b/usr.sbin/hostapd/iapp.h
index b0b56544727..8617d999d39 100644
--- a/usr.sbin/hostapd/iapp.h
+++ b/usr.sbin/hostapd/iapp.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: iapp.h,v 1.2 2005/12/18 17:54:12 reyk Exp $ */
+/* $OpenBSD: iapp.h,v 1.3 2006/03/10 18:10:16 reyk Exp $ */
/*
* Copyright (c) 2005 Reyk Floeter <reyk@openbsd.org>
@@ -71,6 +71,7 @@ struct ieee80211_iapp_add_notify {
} __packed;
#define IAPP_PORT 3517
+#define IAPP_OLD_PORT 2313
#define IAPP_MCASTADDR "224.0.1.178"
#define IAPP_MAXSIZE 512