mbed-os/test/coap-service/unittest/stub/nd_proxy_stub.c

57 lines
1.1 KiB
C

/*
* Copyright (c) 2015 ARM. All rights reserved.
*/
#include "config.h"
#ifdef HAVE_ND_PROXY
#include "ns_types.h"
#include "common_functions.h"
#include "ns_trace.h"
#include "string.h"
#include "nsdynmemLIB.h"
#include "ns_list.h"
#include "Service_Libs/nd_proxy/nd_proxy.h"
int nd_proxy_downstream_interface_register(int8_t interface_id, nd_proxy_req_cb *nd_proxy_req, bridge_state_update_cb * bridge_state_update)
{
return 0;
}
int nd_proxy_downstream_interface_unregister(int8_t interface_id)
{
return 0;
}
int nd_proxy_upstream_interface_register(int8_t interface_id, nd_proxy_req_cb *route_validation_req)
{
return 0;
}
int nd_proxy_upstream_interface_unregister(int8_t interface_id)
{
return 0;
}
bool nd_proxy_enabled_for_downstream(int8_t interface_id)
{
return false;
}
bool nd_proxy_enabled_for_upstream(int8_t interface_id)
{
return false;
}
bool nd_proxy_target_address_validation(int8_t upstream_id, uint8_t *address, int8_t *downstream_id_ptr)
{
return false;
}
bool nd_proxy_upstream_route_onlink(int8_t downstream_id, uint8_t *address)
{
return false;
}
#endif /* HAVE_ND_PROXY */