PelionIoT / mbed-trace

mbed trace library
Apache License 2.0
18 stars 15 forks source link

Ipv6 helpers update #44

Closed tommikas closed 8 years ago

tommikas commented 8 years ago

In a recent update to libService the ip6tos function was slightly updated and ip6_prefix_tos was added. Update mbed-trace to make use of the updated functions, simplifying code and getting rid of some temporary variables.

Also updated unittests.

Added libservice as a dependency for bitcopy and removed its stub. It should be as reliable as std library functions so no need for stubbing. Added a stub for ip6_prefix_tos function. Made the ip6tos stub control structures clearer. Added tests for trace_ipv6_prefix error cases. The previous formatting tests now make little sense as no actual formatting is done by trace_ipv6_prefix.

tommikas commented 8 years ago

@jupe