/freebsd/sys/contrib/device-tree/Bindings/hwmon/ |
H A D | lm87.txt | 4 - compatible: Should be 7 - reg: I2C address 10 - has-temp3: This configures pins 18 and 19 to be used as a second 14 - has-in6: When set, pin 5 is configured to be used as voltage input 15 in6 [all...] |
H A D | ti,lm87.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 6 $schema: http://devicetree.org/meta-schemas/core.yaml# 11 - Javier Carrasco <javier.carrasco.cruz@gmail.com> 27 has-temp3: 34 has-in6: 38 in6. Otherwise the pin is set as FAN1 input. 40 has-in7: 46 vcc-supply: 52 - compatible [all …]
|
/freebsd/sys/netinet6/ |
H A D | in6_ifattach.c | 1 /*- 2 * SPDX-License-Identifier: BSD-3-Clause 96 #define EUI64_TO_IFID(in6) do {(in6)->s6_addr[8] ^= EUI64_UBIT; } while (0) argument 97 #define EUI64_GROUP(in6) ((in6)->s6_addr[8] & EUI64_GBIT) argument 98 #define EUI64_INDIVIDUAL(in6) (!EUI64_GROUP(in6)) argument 99 #define EUI64_LOCAL(in6) ((in6)->s6_addr[8] & EUI64_UBIT) argument 100 #define EUI64_UNIVERSAL(in6) (!EUI64_LOCAL(in6)) argument 102 #define IFID_LOCAL(in6) (!EUI64_LOCAL(in6)) argument 103 #define IFID_UNIVERSAL(in6) (!EUI64_UNIVERSAL(in6)) argument 106 * Generate a last-resort interface identifier, when the machine has no [all …]
|
H A D | in6.c | 1 /*- 2 * SPDX-License-Identifier: BSD-3-Clause 31 * $KAME: in6.c,v 1.259 2002/01/21 11:37:50 keiichi Exp $ 34 /*- 132 "Join old IPv6 NI group address in draft-ietf-ipngwg-icmp-name-lookup " 181 #define ia62ifa(ia6) (&((ia6)->ia_ifa)) 194 ifa = &ia->ia_ifa; in in6_newaddrmsg() 201 info.rti_flags = ifa->ifa_flags | RTF_HOST | RTF_STATIC | RTF_PINNED; in in6_newaddrmsg() 202 info.rti_info[RTAX_DST] = ifa->ifa_addr; in in6_newaddrmsg() 204 link_init_sdl(ifa->ifa_ifp, (struct sockaddr *)&gateway, ifa->ifa_ifp->if_type); in in6_newaddrmsg() [all …]
|
/freebsd/contrib/ntp/sntp/m4/ |
H A D | ntp_ipv6.m4 | 152 return ps->sa_len; 162 [struct sockaddr has sa_len?]) 168 [--enable-ipv6], 176 powerpc-ibm-aix4*) 179 AC_DEFINE([WANT_IPV6], [1], [configure --enable-ipv6]) 190 *-*-darwin*) 215 # See whether IPv6 support is provided via a Kame add-on. 222 [--with-kame], 223 [- =/usr/local/v6] 243 if test -f $kame_path/lib/libinet6.a; then [all …]
|
/freebsd/crypto/openssh/openbsd-compat/ |
H A D | bindresvport.c | 1 /* This file has be substantially modified from the original OpenBSD source */ 47 #define ENDPORT (IPPORT_RESERVED - 1) 48 #define NPORTS (ENDPORT - STARTPORT + 1) 59 struct sockaddr_in6 *in6; in bindresvport_sa() local 70 if (getsockname(sd, sa, &salen) == -1) in bindresvport_sa() 71 return -1; /* errno is correctly set */ in bindresvport_sa() 73 af = sa->sa_family; in bindresvport_sa() 76 af = sa->sa_family; in bindresvport_sa() 81 portp = &in->sin_port; in bindresvport_sa() 83 in6 = (struct sockaddr_in6 *)sa; in bindresvport_sa() [all …]
|
/freebsd/sys/netinet/ |
H A D | ip_carp.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 184 * Any carp-capable ifnet may have a list of carp softcs hanging off 185 * its ifp->if_carp pointer. Each softc represents one unique virtual 186 * host id, or vhid. The softc has a back pointer to the ifnet. All 187 * softcs are joined in a global list, which has quite limited use. 189 * Any interface address that takes part in CARP negotiation has a 190 * pointer to the softc of its vhid, ifa->ifa_carp. That could be either 194 * through its ifp->if_addrhead queue to find all interface addresses 201 * Each softc has a lock sc_mtx. It is used to synchronise carp_input_c(), [all …]
|
/freebsd/contrib/ntp/libntp/lib/isc/win32/ |
H A D | interfaceiter.c | 2 * Copyright (C) 2004, 2007-2009 Internet Systems Consortium, Inc. ("ISC") 3 * Copyright (C) 1999-2001 Internet Software Consortium. 43 #define VALID_IFITER(t) ((t) != NULL && (t)->magic == IFITER_MAGIC) 67 struct in6_addr loop__1; /* ::1 node-scope localhost */ 68 struct in6_addr loopfe80__1; /* fe80::1 link-scope localhost */ 109 b = (isc_uint32_t *)&bcastaddr->type.in; in get_broadcastaddr() 110 a = *(isc_uint32_t *)&addr->type.in; in get_broadcastaddr() 111 n = *(isc_uint32_t *)&netmask->type.in; in get_broadcastaddr() 139 iter->mctx = mctx; in isc_interfaceiter_create() 140 iter->ipaa = NULL; in isc_interfaceiter_create() [all …]
|
/freebsd/sys/net/ |
H A D | if_stf.c | 3 /*- 4 * SPDX-License-Identifier: BSD-3-Clause 9 * Copyright (c) 2017-2021 Rubicon Communications, LLC (Netgate) 40 * 6to4 interface is NOT capable of link-layer (I mean, IPv4) multicasting. 44 * Due to the lack of address mapping for link-local addresses, we cannot 45 * throw packets toward link-local addresses (fe80::x). Also, we cannot throw 46 * packets to link-local multicast addresses (ff02::x). 48 * Here are interesting symptoms due to the lack of link-local address: 51 * - RIPng: Impossible. Uses link-local multicast packet toward ff02::9, 52 * and link-local addresses as nexthop. [all …]
|
H A D | if_vxlan.c | 1 /*- 96 #define VXLAN_MAX_MTU (IP_MAXPACKET - \ 97 60 /* Maximum IPv4 header len */ - \ 98 sizeof(struct udphdr) - \ 99 sizeof(struct vxlan_header) - \ 100 ETHER_HDR_LEN - ETHER_VLAN_ENCAP_LEN) 119 #define VXLAN_SO_RLOCK(_vso, _p) rm_rlock(&(_vso)->vxlso_lock, (_p)) 120 #define VXLAN_SO_RUNLOCK(_vso, _p) rm_runlock(&(_vso)->vxlso_lock, (_p)) 121 #define VXLAN_SO_WLOCK(_vso) rm_wlock(&(_vso)->vxlso_lock) 122 #define VXLAN_SO_WUNLOCK(_vso) rm_wunlock(&(_vso)->vxlso_loc 3140 struct sockaddr_in6 in6 = sc->vxl_src_addr.in6; vxlan_set_hwcaps() local 3386 const struct in6_addr *in6 = &satoconstsin6(sa)->sin6_addr; vxlan_sockaddr_in_equal() local 3407 const struct in6_addr *in6 = &satoconstsin6(sa)->sin6_addr; vxlan_sockaddr_in_copy() local 3450 const struct in6_addr *in6 = &satoconstsin6(sa)->sin6_addr; vxlan_sockaddr_in_any() local 3470 const struct in6_addr *in6 = &satoconstsin6(sa)->sin6_addr; vxlan_sockaddr_in_multicast() local [all...] |
/freebsd/sys/netpfil/ipfilter/netinet/ |
H A D | ip_nat6.c | 124 #define NINCLSIDE6(y,x) ATOMIC_INCL(softn->ipf_nat_stats.ns_side6[y].x) 125 #define NBUMPSIDE(y,x) softn->ipf_nat_stats.ns_side[y].x++ 126 #define NBUMPSIDE6(y,x) softn->ipf_nat_stats.ns_side6[y].x++ 129 softn->ipf_nat_stats.ns_side6[y].x++; \ 134 softn->ipf_nat_stats.ns_side6[y].x++; \ 139 /* ------------------------------------------------------------------------ */ 141 /* Returns: int - 0 == success, else failure */ 142 /* Parameters: in(I) - NAT rule that requires address fields to be init'd */ 147 /* ------------------------------------------------------------------------ */ 154 if (n->in_redir == NAT_BIMAP) { in ipf_nat6_ruleaddrinit() [all …]
|
/freebsd/usr.sbin/rpcbind/tests/ |
H A D | addrmerge_test.c | 1 /*- 42 #include <atf-c.h> 90 in->sin_family = AF_INET; in mock_ifaddr4() 91 in->sin_port = 0; in mock_ifaddr4() 92 in->sin_len = sizeof(*in); in mock_ifaddr4() 93 in->sin_addr.s_addr = inet_addr(addr); in mock_ifaddr4() 94 mask_in->sin_family = AF_INET; in mock_ifaddr4() 95 mask_in->sin_port = 0; in mock_ifaddr4() 96 mask_in->sin_len = sizeof(*mask_in); in mock_ifaddr4() 97 mask_in->sin_addr.s_addr = inet_addr(mask); in mock_ifaddr4() [all …]
|
/freebsd/contrib/libpcap/ |
H A D | nametoaddr.c | 40 * https://msdn.microsoft.com/en-us/library/windows/desktop/ms738520(v=vs.85).aspx 133 #include "pcap-int.h" 135 #include "diag-control.h" 141 #include "thread-local.h" 144 #include "os-proto.h" 155 * XXX - not thread-safe; don't use it inside libpcap. 168 * it's not thread-safe, or because it doesn't support IPv6, in pcap_nametoaddr() 172 * it's not thread-safe; we supply it for backwards compatibility, in pcap_nametoaddr() 176 * this thread-safe - we can't change the API to require that in pcap_nametoaddr() 184 hlist[0] = (bpf_u_int32 *)hp->h_addr; in pcap_nametoaddr() [all …]
|
/freebsd/contrib/ntp/libntp/lib/isc/unix/ |
H A D | ifiter_ioctl.c | 2 * Copyright (C) 2004-2009 Internet Systems Consortium, Inc. ("ISC") 3 * Copyright (C) 1999-2003 Internet Software Consortium. 135 iter->bufsize = IFCONF_BUFSIZE_INITIAL; in getbuf4() 138 iter->buf = isc_mem_get(iter->mctx, iter->bufsize); in getbuf4() 139 if (iter->buf == NULL) in getbuf4() 142 memset(&iter->ifc.ifc_len, 0, sizeof(iter->ifc.ifc_len)); in getbuf4() 143 iter->ifc.ifc_len = iter->bufsize; in getbuf4() 144 iter->ifc.ifc_buf = iter->buf; in getbuf4() 150 if (isc_ioctl(iter->socket, SIOCGIFCONF, (char *)&iter->ifc) in getbuf4() 151 == -1) { in getbuf4() [all …]
|
/freebsd/crypto/openssh/ |
H A D | audit-bsm.c | 4 * - deal with overlap between this and sys_auth_allowed_user 9 * Copyright 1988-2002 Sun Microsystems, Inc. All rights reserved. 124 /* Below is the low-level BSM interface code */ 128 * different mechanism in audit_connection_from() for IPv4-only machines. 139 struct sockaddr_in6 *in6; in aug_get_machine() local 145 return -1; in aug_get_machine() 148 switch (ai->ai_family) { in aug_get_machine() 150 in4 = (struct sockaddr_in *)ai->ai_addr; in aug_get_machine() 152 memcpy(addr, &in4->sin_addr, sizeof(struct in_addr)); in aug_get_machine() 156 in6 = (struct sockaddr_in6 *)ai->ai_addr; in aug_get_machine() [all …]
|
/freebsd/sys/netlink/route/ |
H A D | neigh.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 74 int state = lle->ln_state; in lle_state_to_nl_state() 78 if (lle->la_flags & (LLE_STATIC | LLE_IFADDR)) in lle_state_to_nl_state() 113 if (lle->la_flags & LLE_IFADDR) in lle_flags_to_nl_flags() 115 if (lle->la_flags & LLE_PUB) in lle_flags_to_nl_flags() 117 if (lle->la_flags & LLE_STATIC) in lle_flags_to_nl_flags() 119 if (lle->ln_router != 0) in lle_flags_to_nl_flags() 128 if (lle->la_expire == 0) in get_lle_next_ts() 130 return (lle->la_expire + lle->lle_remtime / hz + time_second - time_uptime); in get_lle_next_ts() [all …]
|
/freebsd/crypto/openssl/crypto/aes/asm/ |
H A D | aesp8-ppc.pl | 2 # Copyright 2014-2024 The OpenSSL Project Authors. All Rights Reserved. 19 # The module is endian-agnostic in sense that it supports both big- 20 # and little-endian cases. Data alignment in parallelizable modes is 25 # is aligned programmatically, which in turn guarantees exception- 33 # Add XTS subroutine, 9x on little- and 12x improvement on big-endian 37 # Current large-block performance in cycles per byte processed with 38 # 128-bit key (less is better). 40 # CBC en-/decrypt CTR XTS 46 # $output is the last argument if it looks like a file (it has an extension) 72 ( $xlate="${dir}ppc-xlate.pl" and -f $xlate ) or [all …]
|
/freebsd/crypto/heimdal/lib/roken/ |
H A D | iruserok.c | 41 #include <netinet/in6.h> 44 #include <netinet6/in6.h> 68 && (long)(laddr = inet_addr(lhost)) != -1) in __icheckhost() 76 for (pp = hp->h_addr_list; *pp; ++pp) in __icheckhost() 85 * Returns 0 if ok, -1 if not ok. 111 return (-1); in __ivaliduser() 112 strlcpy(hname, hp->h_name, sizeof(hname)); in __ivaliduser() 142 * Do +/- and +@/-@ checking. This looks really nasty, in __ivaliduser() 157 case '-': /* reject '-' hosts and all their users */ in __ivaliduser() 161 return(-1); in __ivaliduser() [all …]
|
H A D | socket_wrapper.c | 101 (item)->prev = NULL; \ 102 (item)->next = NULL; \ 105 (item)->prev = NULL; \ 106 (item)->next = (list); \ 107 (list)->prev = (item); \ 114 (list) = (item)->next; \ 116 (list)->prev = NULL; \ 119 if ((item)->prev) { \ 120 (item)->prev->next = (item)->next; \ 122 if ((item)->next) { \ [all …]
|
/freebsd/contrib/unbound/services/cache/ |
H A D | infra.c | 2 * services/cache/infra.c - infrastructure cache, server rtt and capabilities 59 * even if another type has completely rtt maxed it, the different type 66 * infra-cache-max-rtt) change it to just above the RTT_BAND. */ 69 USEFUL_SERVER_TOP_TIMEOUT - 1000 <= RTT_BAND \ 71 :USEFUL_SERVER_TOP_TIMEOUT - 1000) 89 return sizeof(*key) + sizeof(struct infra_data) + key->namelen in infra_sizefunc() 90 + lock_get_mem(&key->entry.lock); in infra_sizefunc() 98 int r = sockaddr_cmp(&k1->addr, k1->addrlen, &k2->addr, k2->addrlen); in infra_compfunc() 101 if(k1->namelen != k2->namelen) { in infra_compfunc() 102 if(k1->namelen < k2->namelen) in infra_compfunc() [all …]
|
/freebsd/sys/dev/wg/ |
H A D | if_wg.c | 1 /* SPDX-License-Identifier: ISC 3 * Copyright (C) 2015-2021 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved. 4 * Copyright (C) 2019-2021 Matt Dunwoodie <ncon@noconroy.net> 5 * Copyright (c) 2019-2020 Rubicon Communications, LLC (Netgate) 56 #define DEFAULT_MTU (ETHERMTU - 80) 57 #define MAX_MTU (IF_MAXMTU - 80) 61 #define MAX_QUEUED_PKT_MASK (MAX_QUEUED_PKT - 1) 70 #define DPRINTF(sc, ...) if (if_getflags(sc->sc_ifp) & IFF_DEBUG) if_printf(sc->sc_ifp, ##__VA_ARGS… 137 struct in6_addr in6; member 256 gtaskqueue_drain((gtask)->gt_taskqueue, &(gtask)->gt_task) [all …]
|
/freebsd/contrib/ntp/sntp/libevent/ |
H A D | bufferevent-internal.h | 2 * Copyright (c) 2008-2012 Niels Provos and Nick Mathewson 33 #include "event2/event-config.h" 35 #include "evconfig-private.h" 37 #include "defer-internal.h" 38 #include "evthread-internal.h" 40 #include "ratelim-internal.h" 43 #include "ipv6-internal.h" 51 #include <netinet/in6.h> 62 bufferevent's write buffer has been filled up to its watermark 73 /* On a base bufferevent, for reading: used when a filter has choked this [all …]
|
/freebsd/contrib/libevent/ |
H A D | bufferevent-internal.h | 2 * Copyright (c) 2008-2012 Niels Provos and Nick Mathewson 33 #include "event2/event-config.h" 35 #include "evconfig-private.h" 37 #include "defer-internal.h" 38 #include "evthread-internal.h" 40 #include "ratelim-internal.h" 43 #include "ipv6-internal.h" 51 #include <netinet/in6.h> 62 bufferevent's write buffer has been filled up to its watermark 73 /* On a base bufferevent, for reading: used when a filter has choked this [all …]
|
/freebsd/contrib/libpcap/rpcapd/ |
H A D | rpcapd.c | 2 * Copyright (c) 2002 - 2003 36 #include "diag-control.h" 52 #include "rpcap-protocol.h" 62 #include "win32-svc.h" // for Win32 service stuff 63 #include "getopt.h" // for getopt()-for-Windows 92 static volatile sig_atomic_t reread_config; //!< '1' if the server is to re-read its configuration 124 " " PROGRAM_NAME " [-b <address>] [-p <port>] [-4] [-l <host_list>] [-a <host,port>]\n" in printusage() 125 " [-n] [-v] [-d] " in printusage() 127 "[-i] " in printusage() 129 "[-D] [-s <config_file>] [-f <config_file>]\n\n" in printusage() [all …]
|
/freebsd/sys/sys/ |
H A D | disk.h | 1 /*- 2 * SPDX-License-Identifier: Beerware 4 * ------- 133 struct in6_addr in6; global() member [all...] |