This is a fork due to permission issues

Dependencies:   mbed Socket lwip-eth lwip-sys lwip

Fork of 6_songs-from-the-cloud by MakingMusicWorkshop

Committer:
timbeight
Date:
Thu May 19 16:02:10 2016 +0000
Revision:
1:0ddbe2d3319c
Parent:
0:f7c60d3e7b8a
This is my first commit while in the class.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
maclobdell 0:f7c60d3e7b8a 1 /*
maclobdell 0:f7c60d3e7b8a 2 * Copyright (c) 2014-2015 ARM Limited. All rights reserved.
maclobdell 0:f7c60d3e7b8a 3 * SPDX-License-Identifier: Apache-2.0
maclobdell 0:f7c60d3e7b8a 4 * Licensed under the Apache License, Version 2.0 (the License); you may
maclobdell 0:f7c60d3e7b8a 5 * not use this file except in compliance with the License.
maclobdell 0:f7c60d3e7b8a 6 * You may obtain a copy of the License at
maclobdell 0:f7c60d3e7b8a 7 *
maclobdell 0:f7c60d3e7b8a 8 * http://www.apache.org/licenses/LICENSE-2.0
maclobdell 0:f7c60d3e7b8a 9 *
maclobdell 0:f7c60d3e7b8a 10 * Unless required by applicable law or agreed to in writing, software
maclobdell 0:f7c60d3e7b8a 11 * distributed under the License is distributed on an AS IS BASIS, WITHOUT
maclobdell 0:f7c60d3e7b8a 12 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
maclobdell 0:f7c60d3e7b8a 13 * See the License for the specific language governing permissions and
maclobdell 0:f7c60d3e7b8a 14 * limitations under the License.
maclobdell 0:f7c60d3e7b8a 15 */
maclobdell 0:f7c60d3e7b8a 16 #ifndef IP6STRING_H
maclobdell 0:f7c60d3e7b8a 17 #define IP6STRING_H
maclobdell 0:f7c60d3e7b8a 18 #ifdef __cplusplus
maclobdell 0:f7c60d3e7b8a 19 extern "C" {
maclobdell 0:f7c60d3e7b8a 20 #endif
maclobdell 0:f7c60d3e7b8a 21 /**
maclobdell 0:f7c60d3e7b8a 22 * Print binary IPv6 address to a string.
maclobdell 0:f7c60d3e7b8a 23 * String must contain enough room for full address, 40 bytes exact.
maclobdell 0:f7c60d3e7b8a 24 * IPv4 tunneling addresses are not covered.
maclobdell 0:f7c60d3e7b8a 25 * \param ip6addr IPv6 address.
maclobdell 0:f7c60d3e7b8a 26 * \p buffer to write string to.
maclobdell 0:f7c60d3e7b8a 27 */
maclobdell 0:f7c60d3e7b8a 28 void ip6tos(const void *ip6addr, char *p);
maclobdell 0:f7c60d3e7b8a 29
maclobdell 0:f7c60d3e7b8a 30 /**
maclobdell 0:f7c60d3e7b8a 31 * Convert numeric IPv6 address string to a binary.
maclobdell 0:f7c60d3e7b8a 32 * IPv4 tunneling addresses are not covered.
maclobdell 0:f7c60d3e7b8a 33 * \param ip6addr IPv6 address in string format.
maclobdell 0:f7c60d3e7b8a 34 * \param len Lenght of ipv6 string, maximum of 41.
maclobdell 0:f7c60d3e7b8a 35 * \param dest buffer for address. MUST be 16 bytes.
maclobdell 0:f7c60d3e7b8a 36 */
maclobdell 0:f7c60d3e7b8a 37 void stoip6(const char *ip6addr, size_t len, void *dest);
maclobdell 0:f7c60d3e7b8a 38 /**
maclobdell 0:f7c60d3e7b8a 39 * Find out numeric IPv6 address prefix length
maclobdell 0:f7c60d3e7b8a 40 * \param ip6addr IPv6 address in string format
maclobdell 0:f7c60d3e7b8a 41 * \return prefix length or 0 if it not given
maclobdell 0:f7c60d3e7b8a 42 */
maclobdell 0:f7c60d3e7b8a 43 unsigned char sipv6_prefixlength(const char *ip6addr);
maclobdell 0:f7c60d3e7b8a 44
maclobdell 0:f7c60d3e7b8a 45 #ifdef __cplusplus
maclobdell 0:f7c60d3e7b8a 46 }
maclobdell 0:f7c60d3e7b8a 47 #endif
maclobdell 0:f7c60d3e7b8a 48 #endif