/freebsd/contrib/wpa/src/ap/ |
H A D | sta_info.c | 137 if (os_memcmp(s->addr, sta->addr, 6) == 0) { in ap_sta_hash_del() 143 os_memcmp(s->hnext->addr, sta->addr, ETH_ALEN) != 0) in ap_sta_hash_del() 490 MAC2STR(sta->addr)); in ap_handle_timer() 556 MAC2STR(sta->addr)); in ap_handle_timer() 560 hapd, sta->addr, in ap_handle_timer() 755 os_memcpy(sta->addr, addr, ETH_ALEN); in ap_sta_add() 1269 u8 addr[ETH_ALEN]; in ap_sta_set_authorized() local 1285 dev_addr = addr; in ap_sta_set_authorized() 1345 sta->addr); in ap_sta_set_authorized() 1358 else if (addr) in ap_sta_disconnect() [all …]
|
H A D | ap_mlme.c | 56 hostapd_logger(hapd, sta->addr, HOSTAPD_MODULE_MLME, in mlme_authenticate_indication() 85 hostapd_logger(hapd, sta->addr, HOSTAPD_MODULE_MLME, in mlme_deauthenticate_indication() 88 MAC2STR(sta->addr), reason_code); in mlme_deauthenticate_indication() 108 hostapd_logger(hapd, sta->addr, HOSTAPD_MODULE_MLME, in mlme_associate_indication() 111 MAC2STR(sta->addr)); in mlme_associate_indication() 139 MAC2STR(sta->addr)); in mlme_reassociate_indication() 167 MAC2STR(sta->addr), reason_code); in mlme_disassociate_indication() 173 const u8 *addr) in mlme_michaelmicfailure_indication() argument 175 hostapd_logger(hapd, addr, HOSTAPD_MODULE_MLME, in mlme_michaelmicfailure_indication() 178 MAC2STR(addr)); in mlme_michaelmicfailure_indication() [all …]
|
H A D | ndisc_snoop.c | 23 struct in6_addr addr; member 41 static int sta_ip6addr_add(struct sta_info *sta, struct in6_addr *addr) in sta_ip6addr_add() argument 49 os_memcpy(&ip6addr->addr, addr, sizeof(*addr)); in sta_ip6addr_add() 63 hostapd_drv_br_delete_ip_neigh(hapd, 6, (u8 *) &ip6addr->addr); in sta_ip6addr_del() 69 static int sta_has_ip6addr(struct sta_info *sta, struct in6_addr *addr) in sta_has_ip6addr() argument 74 if (ip6addr->addr.s6_addr32[0] == addr->s6_addr32[0] && in sta_has_ip6addr() 75 ip6addr->addr.s6_addr32[1] == addr->s6_addr32[1] && in sta_has_ip6addr() 76 ip6addr->addr.s6_addr32[2] == addr->s6_addr32[2] && in sta_has_ip6addr() 77 ip6addr->addr.s6_addr32[3] == addr->s6_addr32[3]) in sta_has_ip6addr() 137 MACSTR, addrtxt, MAC2STR(sta->addr)); in handle_ndisc() [all …]
|
/freebsd/contrib/llvm-project/compiler-rt/lib/interception/ |
H A D | interception_linux.cpp | 42 void *addr = dlsym(RTLD_NEXT, name); in GetFuncAddr() local 43 if (!addr) { in GetFuncAddr() 49 addr = dlsym(RTLD_DEFAULT, name); in GetFuncAddr() 53 if ((uptr)addr == trampoline) in GetFuncAddr() 54 addr = nullptr; in GetFuncAddr() 56 return addr; in GetFuncAddr() 62 *ptr_to_real = (uptr)addr; in InterceptFunction() 63 return addr && (func == trampoline); in InterceptFunction() 74 void *addr = GetFuncAddr(name, ver); in InterceptFunction() local 75 *ptr_to_real = (uptr)addr; in InterceptFunction() [all …]
|
/freebsd/contrib/llvm-project/lldb/source/Target/ |
H A D | MemoryTagMap.cpp | 19 void MemoryTagMap::InsertTags(lldb::addr_t addr, in InsertTags() argument 24 m_addr_to_tag[addr] = tag; in InsertTags() 25 addr += granule_size; in InsertTags() 32 MemoryTagMap::GetTags(lldb::addr_t addr, size_t len) const { in GetTags() argument 34 addr = m_manager->RemoveTagBits(addr); in GetTags() 35 MemoryTagManager::TagRange range(addr, len); in GetTags() 40 addr = range.GetRangeBase(); in GetTags() 44 for (; addr < end_addr; addr += granule_size) { in GetTags() 45 std::optional<lldb::addr_t> tag = GetTag(addr); in GetTags() 58 std::optional<lldb::addr_t> MemoryTagMap::GetTag(lldb::addr_t addr) const { in GetTag() [all …]
|
/freebsd/contrib/sendmail/libmilter/ |
H A D | listener.c | 135 SOCKADDR addr; local 143 (void) memset(&addr, '\0', sizeof addr); 156 addr.sa.sa_family = AF_UNIX; 161 addr.sa.sa_family = AF_INET; 182 addr.sa.sa_family = AF_UNIX; 189 addr.sa.sa_family = AF_INET; 213 addr.sa.sa_family = AF_UNIX; 218 addr.sa.sa_family = AF_INET; 287 switch (addr.sa.sa_family) 429 switch (addr.sa.sa_family) [all …]
|
/freebsd/lib/libc/db/hash/ |
H A D | hash_buf.c | 99 __get_buf(HTAB *hashp, u_int32_t addr, in __get_buf() argument 112 if (!bp || (bp->addr != addr)) in __get_buf() 131 bp = newbuf(hashp, addr, prev_bp); in __get_buf() 249 (oaddr != xbp->addr)) in newbuf() 257 xbp->page, xbp->addr, 0, 0)) in newbuf() 259 xbp->addr = 0; in newbuf() 268 bp->addr = addr; in newbuf() 271 bp->addr, (bp->ovfl ? bp->ovfl->addr : 0), 0); in newbuf() 281 prev_bp->addr, (prev_bp->ovfl ? prev_bp->ovfl->addr : 0), in newbuf() 282 (bp ? bp->addr : 0)); in newbuf() [all …]
|
/freebsd/contrib/llvm-project/compiler-rt/lib/sanitizer_common/ |
H A D | sanitizer_addrhashmap.h | 51 atomic_uintptr_t addr; member 109 uptr calcHash(uptr addr); 142 addr_ = addr; in Handle() 152 addr_ = addr; in Handle() 162 addr_ = addr; in Handle() 206 uptr addr = h->addr_; in acquire() local 227 if (addr1 == addr) { in acquire() 256 if (addr1 == addr) { in acquire() 386 addr += addr << 10; in calcHash() 387 addr ^= addr >> 6; in calcHash() [all …]
|
H A D | sanitizer_symbolizer_mac.cpp | 32 int result = dladdr((const void *)addr, &info); in SymbolizePC() 40 if (addr >= sym_addr) { in SymbolizePC() 41 stack->info.function_offset = addr - sym_addr; in SymbolizePC() 53 int result = dladdr((const void *)addr, &info); in SymbolizeData() 148 if (start_address) *start_address = addr - offset; in ParseCommandOutput() 160 if (addr == 0) return false; in SymbolizePC() 162 internal_snprintf(command, sizeof(command), "0x%zx\n", addr); in SymbolizePC() 178 int result = dladdr((const void *)addr, &info); in SymbolizePC() 187 stack->info.function_offset = addr - start_address; in SymbolizePC() 192 bool AtosSymbolizer::SymbolizeData(uptr addr, DataInfo *info) { in SymbolizeData() argument [all …]
|
/freebsd/usr.sbin/mlx5tool/ |
H A D | mlx5tool.c | 63 addr->func = (i > 2) ? selarr[--i] : 0; in parse_pci_addr() 64 addr->slot = (i > 0) ? selarr[--i] : 0; in parse_pci_addr() 65 addr->bus = (i > 0) ? selarr[--i] : 0; in parse_pci_addr() 66 addr->domain = (i > 0) ? selarr[--i] : 0; in parse_pci_addr() 94 fdg.devaddr = *addr; in mlx5tool_save_dump() 254 eeprom_info.devaddr = *addr; in mlx5tool_get_eeprom_info() 309 struct mlx5_tool_addr addr; in main() local 368 if (parse_pci_addr(addrstr, &addr) != 0) in main() 379 res = mlx5tool_dump_reset(ctldev, &addr); in main() 382 res = mlx5tool_dump_force(ctldev, &addr); in main() [all …]
|
/freebsd/sys/dev/rtwn/usb/ |
H A D | rtwn_usb_reg.c | 94 USETW(req.wValue, addr); in rtwn_usb_write_region_1() 101 rtwn_usb_write_1(struct rtwn_softc *sc, uint16_t addr, uint8_t val) in rtwn_usb_write_1() argument 103 return (rtwn_usb_write_region_1(sc, addr, &val, sizeof(val))); in rtwn_usb_write_1() 107 rtwn_usb_write_2(struct rtwn_softc *sc, uint16_t addr, uint16_t val) in rtwn_usb_write_2() argument 128 USETW(req.wValue, addr); in rtwn_usb_read_region_1() 135 rtwn_usb_read_1(struct rtwn_softc *sc, uint16_t addr) in rtwn_usb_read_1() argument 139 if (rtwn_usb_read_region_1(sc, addr, &val, 1) != 0) in rtwn_usb_read_1() 145 rtwn_usb_read_2(struct rtwn_softc *sc, uint16_t addr) in rtwn_usb_read_2() argument 149 if (rtwn_usb_read_region_1(sc, addr, (uint8_t *)&val, 2) != 0) in rtwn_usb_read_2() 155 rtwn_usb_read_4(struct rtwn_softc *sc, uint16_t addr) in rtwn_usb_read_4() argument [all …]
|
/freebsd/stand/userboot/userboot/ |
H A D | bootinfo64.c | 98 vm_offset_t addr; in bi_load64() local 128 addr = 0; in bi_load64() 130 if (addr < (xp->f_addr + xp->f_size)) in bi_load64() 131 addr = xp->f_addr + xp->f_size; in bi_load64() 134 addr = roundup(addr, PAGE_SIZE); in bi_load64() 137 envp = addr; in bi_load64() 138 addr = md_copyenv(addr); in bi_load64() 141 addr = roundup(addr, PAGE_SIZE); in bi_load64() 155 *modulep = addr; in bi_load64() 157 kernend = roundup(addr + size, PAGE_SIZE); in bi_load64() [all …]
|
/freebsd/sys/dev/smbus/ |
H A D | smbus.c | 48 uint8_t addr; member 120 int addr; in smbus_hinted_child() local 122 addr = 0; in smbus_hinted_child() 133 devi->addr = addr; in smbus_hinted_child() 142 if (devi->addr != 0) in smbus_child_location() 155 if (devi->addr != 0) in smbus_print_child() 170 if (devi->addr != 0) in smbus_read_ivar() 190 if (devi->addr != 0) in smbus_write_ivar() 192 devi->addr = value; in smbus_write_ivar() 209 if (devi->addr != 0) in smbus_probe_nomatch() [all …]
|
/freebsd/stand/common/ |
H A D | metadata.c | 80 vm_offset_t addr; in md_load_dual() local 120 addr = 0; in md_load_dual() 123 addr = xp->f_addr + xp->f_size; in md_load_dual() 126 addr = roundup(addr, PAGE_SIZE); in md_load_dual() 129 envp = addr; in md_load_dual() 130 addr = md_copyenv(addr); in md_load_dual() 133 addr = roundup(addr, PAGE_SIZE); in md_load_dual() 142 size = fdt_copy(addr); in md_load_dual() 143 fdtp = addr; in md_load_dual() 144 addr = roundup(addr + size, PAGE_SIZE); in md_load_dual() [all …]
|
/freebsd/usr.bin/talk/ |
H A D | look_up.c | 53 struct sockaddr addr; in check_local() local 68 if (rp->addr.sa_family != AF_INET) in check_local() 70 (void)memcpy(&addr, &rp->addr.sa_family, sizeof(addr)); in check_local() 71 addr.sa_family = rp->addr.sa_family; in check_local() 72 addr.sa_len = sizeof(addr); in check_local() 74 if (connect(sockt, &addr, sizeof(addr)) != -1) in check_local()
|
/freebsd/tools/test/stress2/misc/ |
H A D | mmap16.sh | 79 access_addr(char *addr) 84 printf("accessing %p\n", addr); 92 test_access(char *addr) 101 access_addr(addr); 104 access_addr(addr); 116 char *addr; 128 if (addr == (char *)MAP_FAILED) 130 test_access(addr); 134 if (addr == (char *)MAP_FAILED) 136 if (mlock(addr, pagesz) == -1) [all …]
|
/freebsd/usr.bin/bluetooth/btsockstat/ |
H A D | btsockstat.c | 216 hcirawpr(kvm_t *kvmd, u_long addr) in hcirawpr() argument 223 if (addr == 0) in hcirawpr() 251 pcb.addr.hci_node[0] = '*'; in hcirawpr() 252 pcb.addr.hci_node[1] = 0; in hcirawpr() 262 pcb.addr.hci_node); in hcirawpr() 278 if (addr == 0) in l2caprawpr() 319 l2cappr(kvm_t *kvmd, u_long addr) in l2cappr() argument 335 if (addr == 0) in l2cappr() 388 if (addr == 0) in l2caprtpr() 440 if (addr == 0) in rfcommpr() [all …]
|
/freebsd/contrib/pf/ftp-proxy/ |
H A D | filter.c | 99 memcpy(&pfp.addr.addr.v.a.addr.v4, in add_nat() 101 memset(&pfp.addr.addr.v.a.mask.addr8, 255, 4); in add_nat() 103 memcpy(&pfp.addr.addr.v.a.addr.v6, in add_nat() 105 memset(&pfp.addr.addr.v.a.mask.addr8, 255, 16); in add_nat() 133 memcpy(&pfp.addr.addr.v.a.addr.v4, in add_rdr() 135 memset(&pfp.addr.addr.v.a.mask.addr8, 255, 4); in add_rdr() 137 memcpy(&pfp.addr.addr.v.a.addr.v6, in add_rdr() 276 memcpy(&pfrule.src.addr.v.a.addr.v4, in prepare_rule() 279 memcpy(&pfrule.dst.addr.v.a.addr.v4, in prepare_rule() 283 memcpy(&pfrule.src.addr.v.a.addr.v6, in prepare_rule() [all …]
|
/freebsd/contrib/llvm-project/lldb/source/Plugins/DynamicLoader/Hexagon-DYLD/ |
H A D | HexagonDYLDRendezvous.cpp | 108 m_rendezvous_addr = addr; in SetRendezvousAddress() 228 return addr + size; in ReadWord() 247 if (addr == LLDB_INVALID_ADDRESS) in ReadStringFromMemory() 258 addr++; in ReadStringFromMemory() 268 entry.link_addr = addr; in ReadSOEntryFromMemory() 270 if (!(addr = ReadPointer(addr, &entry.base_addr))) in ReadSOEntryFromMemory() 273 if (!(addr = ReadPointer(addr, &entry.path_addr))) in ReadSOEntryFromMemory() 276 if (!(addr = ReadPointer(addr, &entry.dyn_addr))) in ReadSOEntryFromMemory() 279 if (!(addr = ReadPointer(addr, &entry.next))) in ReadSOEntryFromMemory() 282 if (!(addr = ReadPointer(addr, &entry.prev))) in ReadSOEntryFromMemory() [all …]
|
/freebsd/contrib/unbound/util/ |
H A D | net_help.h | 157 struct sockaddr_storage* addr, socklen_t addrlen); 168 struct sockaddr_storage* addr, socklen_t addrlen); 178 struct sockaddr_storage* addr, socklen_t addrlen); 189 int extstrtoaddr(const char* str, struct sockaddr_storage* addr, 200 int ipstrtoaddr(const char* ip, int port, struct sockaddr_storage* addr, 227 int authextstrtoaddr(char* str, struct sockaddr_storage* addr, 298 int addr_is_ip6(struct sockaddr_storage* addr, socklen_t len); 308 void addr_mask(struct sockaddr_storage* addr, socklen_t len, int net); 331 void addr_to_str(struct sockaddr_storage* addr, socklen_t addrlen, 352 void addr_to_nat64(const struct sockaddr_storage* addr, [all …]
|
/freebsd/sbin/ipf/libipf/ |
H A D | printnataddr.c | 16 printnataddr( int v, char *base, nat_addr_t *addr, int ifidx) in printnataddr() argument 21 if (addr->na_atype == FRI_NORMAL && in printnataddr() 22 addr->na_addr[0].in4.s_addr == 0) { in printnataddr() 23 PRINTF("0/%d", count4bits(addr->na_addr[1].in4.s_addr)); in printnataddr() 25 printaddr(AF_INET, addr->na_atype, base, ifidx, in printnataddr() 26 (u_32_t *)&addr->na_addr[0].in4.s_addr, in printnataddr() 27 (u_32_t *)&addr->na_addr[1].in4.s_addr); in printnataddr() 32 printaddr(AF_INET6, addr->na_atype, base, ifidx, in printnataddr() 33 (u_32_t *)&addr->na_addr[0].in6, in printnataddr() 34 (u_32_t *)&addr->na_addr[1].in6); in printnataddr()
|
/freebsd/lib/libc/rpc/ |
H A D | getrpcport.c | 53 struct sockaddr_in addr; in getrpcport() local 60 memset(&addr, 0, sizeof(addr)); in getrpcport() 61 addr.sin_len = sizeof(struct sockaddr_in); in getrpcport() 62 addr.sin_family = AF_INET; in getrpcport() 63 addr.sin_port = 0; in getrpcport() 64 if (hp->h_length > sizeof(addr.sin_addr.s_addr)) in getrpcport() 65 hp->h_length = sizeof(addr.sin_addr.s_addr); in getrpcport() 66 memcpy(&addr.sin_addr.s_addr, hp->h_addr, (size_t)hp->h_length); in getrpcport() 68 return (pmap_getport(&addr, (u_long)prognum, (u_long)versnum, in getrpcport()
|
/freebsd/sys/contrib/dev/mediatek/mt76/mt7996/ |
H A D | mmio.c | 130 if (addr < 0x100000) in __mt7996_reg_addr() 131 return addr; in __mt7996_reg_addr() 136 if (addr < dev->reg.map[i].phys) in __mt7996_reg_addr() 139 ofs = addr - dev->reg.map[i].phys; in __mt7996_reg_addr() 146 if ((addr >= MT_INFRA_BASE && addr < MT_WFSYS0_PHY_START) || in __mt7996_reg_addr() 147 (addr >= MT_WFSYS0_PHY_START && addr < MT_WFSYS1_PHY_START) || in __mt7996_reg_addr() 148 (addr >= MT_WFSYS1_PHY_START && addr <= MT_WFSYS1_PHY_END)) in __mt7996_reg_addr() 152 ((addr >= MT_CBTOP1_PHY_START && addr <= MT_CBTOP1_PHY_END) || in __mt7996_reg_addr() 153 addr >= MT_CBTOP2_PHY_START)) in __mt7996_reg_addr() 157 if (addr >= MT_INFRA_MCU_START && addr <= MT_INFRA_MCU_END) { in __mt7996_reg_addr() [all …]
|
/freebsd/sys/dev/bhnd/ |
H A D | bhnd_erom.c | 327 return (eio->map(eio, addr, size)); in bhnd_erom_io_map() 344 return (eio->tell(eio, addr, size)); in bhnd_erom_io_tell() 410 if (BHND_ADDR_MAX - size < addr) in bhnd_erom_iores_map() 432 &iores->mapped_rid, addr, addr+size-1, size, in bhnd_erom_iores_map() 516 iobus->addr = addr; in bhnd_erom_iobus_init() 536 if (BHND_ADDR_MAX - size < addr) in bhnd_erom_iobus_map() 540 if (addr < iobus->addr || size > iobus->size) in bhnd_erom_iobus_map() 543 if (iobus->size - (addr - iobus->addr) < size) in bhnd_erom_iobus_map() 547 if ((addr - iobus->addr) > BUS_SPACE_MAXSIZE) in bhnd_erom_iobus_map() 553 iobus->offset = addr - iobus->addr; in bhnd_erom_iobus_map() [all …]
|
/freebsd/crypto/openssh/ |
H A D | xmss_hash.c | 30 to_byte(bytes+i*4, addr[i],4); in addr_to_byte() 33 memcpy(bytes, addr, 32); in addr_to_byte() 100 setKeyAndMask(addr, 0); in hash_h() 101 addr_to_byte(byte_addr, addr); in hash_h() 104 setKeyAndMask(addr, 1); in hash_h() 105 addr_to_byte(byte_addr, addr); in hash_h() 107 setKeyAndMask(addr, 2); in hash_h() 108 addr_to_byte(byte_addr, addr); in hash_h() 124 setKeyAndMask(addr, 0); in hash_f() 128 setKeyAndMask(addr, 1); in hash_f() [all …]
|