index f97dfa25c80e815ca1c64e2005cec4daa27fc952..cd4bb2d9142228348aef0dc27645afacb5116991 100755 (executable)
nwalRouteType_t routeType; /**< Optional: Routing priority,
* @see nwal.h for nwalRouteType_t
*/
- nwal_enetPort_t tx_emac_port; /**< Optional: TX Enet Port 1 based.Eg:
- * For transmitting through
- * first port configure as 1
- * @see nwal_enetPort_t in nwal.h.
- * Configuring to NWAL_ENET_PORT_UNKNOWN
- * will let CPSW decide on outgoing port.
- */
} NETCP_CFG_ROUTE_T;
nwalIpOpt_t* ip_qualifiers,
NETCP_CFG_ROUTE_HANDLE_T route,
void* user_data,
- //nwalIpAddr_t* ip_addr_remote,
int* err);
/**
* address is present by transmitting a packet with destination mac = this interface mac address.
* @param[in] h NETAPI instance handle, @ref NETAPI_T
* @param[in] p_mac pointer to 6 byte MAC address for local interface
+ * @param[in] p_mac_remote pointer to 6 byte MAC address for remote interface
* @param[in] iface_no interface number (0,1,..)
* @param[in] switch_port (0 don't care, 1 switch port 1, 1 switch port 2) [only 0 supported currenly]
* @param[in] route handle of a created route or NULL to use internal default route, @ref NETCP_CFG_ROUTE_HANDLE_T
* @param[in] vlan [future[ vlan configuration . Set to NULL, @ref NETCP_CFG_VLAN_T
* @param[in] state [future] interface state (0=down, 1= up)
- * @param[in] p_mac_remote pointer to 6 byte MAC address for remote interface
* @param[out] err pointer to error return
* @retval returns AppID for interface (this is returned in meta data for received packets matching this rule an no others, @ref NETCP_CFG_MACIF_T
* @pre @ref netapi_init
*/
NETCP_CFG_MACIF_T netapi_netcpCfgCreateMacInterface(NETAPI_T h,
- uint8_t* p_mac,
+ uint8_t* p_mac,
+ uint8_t* p_mac_remote,
int iface_no,
int switch_port,
NETCP_CFG_ROUTE_HANDLE_T route,
NETCP_CFG_VLAN_T vlan,
int state,
- //uint8_t* p_mac_remote,
int * err);
/**
{
int iface; /**< Indicates which MAC interface packet should be received on*/
NETCP_CFG_IP_T ip; /**< IP rule to match: see @ref NETCP_CFG_IP_T */
- nwal_appProtoType_t proto; /**< L4 proto (-1 for don't care)*/
+ nwal_appProtoType_t proto; /**< L4 proto (-1 for don't care)*/
nwalAppProto_t appProto; /**< L4 Ports or equivalent */
} NETCP_CFG_CLASS_L4_T;
typedef struct NETCP_CFG_CLASS_L4_IPSEC_Tag
{
int iface; /**< Indicates which MAC interface packet should be received from */
- NETCP_CFG_IPSEC_POLICY_T ip_policy; /**< IPSEC policy configuration. see @ref NETCP_CFG_IPSEC_POLICY_T */
- nwal_appProtoType_t proto; /**< L4 proto (-1 for don't care)*/
+ NETCP_CFG_IPSEC_POLICY_T ip_policy; /**< IPSEC policy configuration. see @ref NETCP_CFG_IPSEC_POLICY_T */
+ nwal_appProtoType_t proto; /**< L4 proto (-1 for don't care)*/
nwalAppProto_t appProto; /**< L4 Ports or equivalent */
} NETCP_CFG_CLASS_L4_IPSEC_T;