mirror of
https://github.com/oliverschmidt/contiki.git
synced 2025-02-08 03:31:21 +00:00
disabled writing IP addresses from inside COOJA, since the these should rather be determined by Contiki
This commit is contained in:
parent
9b41b02de1
commit
3b3580e439
@ -26,7 +26,7 @@
|
|||||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||||
* SUCH DAMAGE.
|
* SUCH DAMAGE.
|
||||||
*
|
*
|
||||||
* $Id: ip.c,v 1.1 2006/08/21 12:11:18 fros4943 Exp $
|
* $Id: ip.c,v 1.2 2009/04/01 18:11:48 fros4943 Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "dev/ip.h"
|
#include "dev/ip.h"
|
||||||
@ -37,23 +37,44 @@
|
|||||||
const struct simInterface ip_interface;
|
const struct simInterface ip_interface;
|
||||||
|
|
||||||
// COOJA variables
|
// COOJA variables
|
||||||
char simIPa;
|
|
||||||
char simIPb;
|
#if UIP_CONF_IPV6
|
||||||
char simIPc;
|
|
||||||
char simIPd;
|
|
||||||
char simIPChanged;
|
char simIPChanged;
|
||||||
|
char simIP[16];
|
||||||
|
|
||||||
|
#endif /* UIP_CONF_IPV6 */
|
||||||
|
|
||||||
|
#if WITH_UIP
|
||||||
|
|
||||||
|
char simIPChanged;
|
||||||
|
char simIP[4];
|
||||||
|
|
||||||
|
#endif /* WITH_UIP */
|
||||||
|
|
||||||
/*-----------------------------------------------------------------------------------*/
|
/*-----------------------------------------------------------------------------------*/
|
||||||
static void
|
static void
|
||||||
doInterfaceActionsBeforeTick(void)
|
doInterfaceActionsBeforeTick(void)
|
||||||
{
|
{
|
||||||
uip_ipaddr_t hostaddr;
|
#if UIP_CONF_IPV6
|
||||||
if (simIPChanged) {
|
|
||||||
uip_ipaddr(&hostaddr, simIPa, simIPb, simIPc, simIPd);
|
|
||||||
|
|
||||||
|
/* check if IPv6 address should change */
|
||||||
|
|
||||||
|
#endif /* UIP_CONF_IPV6 */
|
||||||
|
|
||||||
|
#if WITH_UIP
|
||||||
|
|
||||||
|
/* check if IPv4 address should change */
|
||||||
|
/*
|
||||||
|
if (simIPChanged) {
|
||||||
|
uip_ipaddr_t hostaddr;
|
||||||
|
uip_ipaddr(&hostaddr, simIP[0], simIP[1], simIP[2], simIP[3]);
|
||||||
uip_sethostaddr(&hostaddr);
|
uip_sethostaddr(&hostaddr);
|
||||||
simIPChanged = 0;
|
simIPChanged = 0;
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
|
#endif /* WITH_UIP */
|
||||||
}
|
}
|
||||||
/*-----------------------------------------------------------------------------------*/
|
/*-----------------------------------------------------------------------------------*/
|
||||||
static void
|
static void
|
||||||
|
Loading…
x
Reference in New Issue
Block a user