Allow non-ipv6 build (hello world)
This commit is contained in:
parent
3e61990312
commit
72d49c20af
4 changed files with 46 additions and 34 deletions
|
@ -425,8 +425,11 @@ void mac_ethernetToLowpan(uint8_t * ethHeader)
|
|||
mac_translateIPLinkLayer(ll_802154_type);
|
||||
#endif
|
||||
}
|
||||
|
||||
#if UIP_CONF_IPV6 //allow non-ipv6 builds (Hello World)
|
||||
tcpip_output(destAddrPtr);
|
||||
#else
|
||||
tcpip_output();
|
||||
#endif
|
||||
#if !RF230BB
|
||||
usb_eth_stat.txok++;
|
||||
#endif
|
||||
|
@ -664,7 +667,9 @@ int8_t mac_translateIcmpLinkLayer(lltype_t target)
|
|||
|
||||
//We broke ICMP checksum, be sure to fix that
|
||||
UIP_ICMP_BUF->icmpchksum = 0;
|
||||
UIP_ICMP_BUF->icmpchksum = ~uip_icmp6chksum();
|
||||
#if UIP_CONF_IPV6 //allow non ipv6 builds
|
||||
UIP_ICMP_BUF->icmpchksum = ~uip_icmp6chksum();
|
||||
#endif
|
||||
|
||||
//Finally set up next run in while loop
|
||||
len -= 8 * UIP_ICMP_OPTS(icmp_opt_offset)->length;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue