2 * Broadcom security module ipc ports file
4 * Copyright (C) 2010, Broadcom Corporation. All Rights Reserved.
6 * Permission to use, copy, modify, and/or distribute this software for any
7 * purpose with or without fee is hereby granted, provided that the above
8 * copyright notice and this permission notice appear in all copies.
10 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
11 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
12 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
13 * SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
14 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
15 * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
16 * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
18 * $Id: security_ipc.h 241398 2011-02-18 03:46:33Z stakita $
21 #ifndef __SECURITY_IPC_H__
22 #define __SECURITY_IPC_H__
27 #define WAI_UI_ADDR "127.0.0.1"
28 #define WAP_UI_PORT 9002
33 #define AS_UI_ADDR "127.0.0.1"
34 #define AS_UI_PORT 9001
35 #define AS_WAI_PORT 3810
40 #define EAPD_WKSP_UDP_ADDR "127.0.0.1"
42 /* get_ifname_unit() index is << 4 */
43 #define EAPD_WKSP_PORT_INDEX_SHIFT 4
44 #define EAPD_WKSP_SPORT_OFFSET (1 << 5)
45 #define EAPD_WKSP_MPORT_OFFSET (1 << 6)
46 #define EAPD_WKSP_VX_PORT_OFFSET (1 << 7)
48 #define EAPD_WKSP_WPS_UDP_PORT 37000
49 #define EAPD_WKSP_WPS_UDP_RPORT EAPD_WKSP_WPS_UDP_PORT
50 #define EAPD_WKSP_WPS_UDP_SPORT EAPD_WKSP_WPS_UDP_PORT + EAPD_WKSP_SPORT_OFFSET
51 #define EAPD_WKSP_WPS_UDP_MPORT EAPD_WKSP_WPS_UDP_PORT + EAPD_WKSP_MPORT_OFFSET
53 #define EAPD_WKSP_NAS_UDP_PORT 38000
54 #define EAPD_WKSP_NAS_UDP_RPORT EAPD_WKSP_NAS_UDP_PORT
55 #define EAPD_WKSP_NAS_UDP_SPORT EAPD_WKSP_NAS_UDP_PORT + EAPD_WKSP_SPORT_OFFSET
57 #define EAPD_WKSP_SES_UDP_PORT 39000
58 #define EAPD_WKSP_SES_UDP_RPORT EAPD_WKSP_SES_UDP_PORT
59 #define EAPD_WKSP_SES_UDP_SPORT EAPD_WKSP_SES_UDP_PORT + EAPD_WKSP_SPORT_OFFSET
61 #define EAPD_WKSP_WAI_UDP_PORT 41000
62 #define EAPD_WKSP_WAI_UDP_RPORT EAPD_WKSP_WAI_UDP_PORT
63 #define EAPD_WKSP_WAI_UDP_SPORT EAPD_WKSP_WAI_UDP_PORT + EAPD_WKSP_SPORT_OFFSET
65 #define EAPD_WKSP_DCS_UDP_PORT 42000
66 #define EAPD_WKSP_DCS_UDP_RPORT EAPD_WKSP_DCS_UDP_PORT
67 #define EAPD_WKSP_DCS_UDP_SPORT EAPD_WKSP_DCS_UDP_PORT + EAPD_WKSP_SPORT_OFFSET
72 #define UPNP_IPC_ADDR "127.0.0.1"
73 #define UPNP_WFA_ADDR "127.0.0.1"
75 #define UPNP_IPC_PORT 40100
76 #define UPNP_WFA_PORT 40040 /* WFA wlan receive port */
78 /* WPS UPNP definitions */
79 #define UPNP_WPS_TYPE_SSR 1 /* Set Selected Registrar */
80 #define UPNP_WPS_TYPE_PMR 2 /* Wait For Put Message Resp */
81 #define UPNP_WPS_TYPE_GDIR 3 /* Wait For Get DevInfo Resp */
82 #define UPNP_WPS_TYPE_PWR 4 /* Put WLAN Response */
83 #define UPNP_WPS_TYPE_WE 5 /* WLAN Event */
84 #define UPNP_WPS_TYPE_QWFAS 6 /* Query WFAWLANConfig Subscribers */
85 #define UPNP_WPS_TYPE_DISCONNECT 7 /* Subscriber unreachable */
86 #define UPNP_WPS_TYPE_MAX 8
90 unsigned char dst_addr
[16];
92 unsigned char data
[1];
95 #define UPNP_WPS_CMD_SIZE 24
100 #define WPS_EAP_ADDR "127.0.0.1"
101 #define WPS_UPNPDEV_ADDR "127.0.0.1"
102 #define WPS_UI_ADDR "127.0.0.1"
104 #define WPS_UPNPDEV_PORT 40000
105 #define WPS_UI_PORT 40500
107 /* WPS_UI definitions */
108 #define WPS_UI_CMD_NONE 0
109 #define WPS_UI_CMD_START 1
110 #define WPS_UI_CMD_STOP 2
112 #define WPS_UI_METHOD_NONE 0
113 #define WPS_UI_METHOD_PIN 1
114 #define WPS_UI_METHOD_PBC 2
116 #define WPS_UI_ACT_NONE 0
117 #define WPS_UI_ACT_ENROLL 1
118 #define WPS_UI_ACT_CONFIGAP 2
119 #define WPS_UI_ACT_ADDENROLLEE 3
121 #define WPS_UI_PBC_NONE 0
122 #define WPS_UI_PBC_HW 1
123 #define WPS_UI_PBC_SW 2
126 #endif /* __SECURITY_IPC_H__ */