Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
ip6tos_stub.c
00001 /* 00002 * Copyright (c) 2016 ARM Limited. All rights reserved. 00003 */ 00004 #include "ip6string.h" 00005 #include <string.h> 00006 #include <stdio.h> 00007 #include "common_functions.h" 00008 00009 #include "ip6tos_stub.h" 00010 00011 ip6tos_stub_def_t ip6tos_stub; // extern variable 00012 00013 uint8_t ip6tos(const void *ip6addr, char *p) 00014 { 00015 memcpy(ip6tos_stub.input_array, ip6addr, 16); 00016 strcpy(p, ip6tos_stub.output_string); 00017 return strlen(p); 00018 } 00019 00020 uint_fast8_t ip6_prefix_tos(const void *prefix, uint_fast8_t prefix_len, char *p) 00021 { 00022 bitcopy(ip6tos_stub.input_array, prefix, prefix_len); 00023 strcpy(p, ip6tos_stub.output_string); 00024 return strlen(p); 00025 }
Generated on Tue Jul 12 2022 14:23:50 by
