Blame


1 cdbe1d7d 2022-08-06 thomas /*
2 cdbe1d7d 2022-08-06 thomas * Copyright (c) 2022 Stefan Sperling <stsp@openbsd.org>
3 cdbe1d7d 2022-08-06 thomas *
4 cdbe1d7d 2022-08-06 thomas * Permission to use, copy, modify, and distribute this software for any
5 cdbe1d7d 2022-08-06 thomas * purpose with or without fee is hereby granted, provided that the above
6 cdbe1d7d 2022-08-06 thomas * copyright notice and this permission notice appear in all copies.
7 cdbe1d7d 2022-08-06 thomas *
8 cdbe1d7d 2022-08-06 thomas * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
9 cdbe1d7d 2022-08-06 thomas * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
10 cdbe1d7d 2022-08-06 thomas * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
11 cdbe1d7d 2022-08-06 thomas * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
12 cdbe1d7d 2022-08-06 thomas * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
13 cdbe1d7d 2022-08-06 thomas * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
14 cdbe1d7d 2022-08-06 thomas * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
15 cdbe1d7d 2022-08-06 thomas */
16 cdbe1d7d 2022-08-06 thomas
17 cdbe1d7d 2022-08-06 thomas void got_sockaddr_inet_init(struct sockaddr_in *in, struct in_addr *ina);
18 cdbe1d7d 2022-08-06 thomas void got_sockaddr_inet6_init(struct sockaddr_in6 *in6, struct in6_addr *in6a,
19 cdbe1d7d 2022-08-06 thomas uint32_t sin6_scope_id);