/freebsd-11-stable/tools/tools/net80211/w00t/prga/ |
H A D | prga.c | 57 char mac[6]; member in struct:params 293 memcpy(wh->i_addr2, p->mac, 6); 387 if (memcmp(p->mac, wh->i_addr1, 6) != 0) 452 if (memcmp(wh->i_addr3, p->mac, 6) != 0) 536 memcpy(wh->i_addr2, p->mac, 6); 611 memcpy(p.mac, "\x00\x00\xde\xfa\xce\x0d", 6); 644 if (set_iface_mac(tap, p.mac) == -1)
|
/freebsd-11-stable/sys/dev/mlx4/mlx4_core/ |
H A D | mlx4_port.c | 113 struct mlx4_mac_table *table, u64 mac) 119 (MLX4_MAC_MASK & mac) == 150 int mlx4_find_cached_mac(struct mlx4_dev *dev, u8 port, u64 mac, int *idx) argument 160 if (mac == (MLX4_MAC_MASK & be64_to_cpu(table->entries[i]))) { 182 int __mlx4_register_mac(struct mlx4_dev *dev, u8 port, u64 mac) argument 196 (unsigned long long)mac, port, 216 if (((MLX4_MAC_MASK & mac) == (MLX4_MAC_MASK & be64_to_cpu(table->entries[i])))) 218 if (((MLX4_MAC_MASK & mac) == (MLX4_MAC_MASK & be64_to_cpu(dup_table->entries[i])))) 222 /* check that same mac is not in the tables at different indices */ 228 /* If the mac i 112 find_index(struct mlx4_dev *dev, struct mlx4_mac_table *table, u64 mac) argument 342 mlx4_register_mac(struct mlx4_dev *dev, u8 port, u64 mac) argument 379 __mlx4_unregister_mac(struct mlx4_dev *dev, u8 port, u64 mac) argument 450 mlx4_unregister_mac(struct mlx4_dev *dev, u8 port, u64 mac) argument 1716 mlx4_SET_MCAST_FLTR(struct mlx4_dev *dev, u8 port, u64 mac, u64 clear, u8 mode) argument [all...] |
/freebsd-11-stable/sys/dev/ixl/ |
H A D | if_ixl.c | 397 i40e_get_mac_addr(hw, hw->mac.addr); 608 if (hw->mac.type == I40E_MAC_XL710 && 622 i40e_get_mac_addr(hw, hw->mac.addr); 623 error = i40e_validate_mac_addr(hw->mac.addr); 628 bcopy(hw->mac.addr, hw->mac.perm_addr, ETHER_ADDR_LEN); 629 i40e_get_port_mac_addr(hw, hw->mac.port_addr);
|
/freebsd-11-stable/sys/dev/e1000/ |
H A D | if_igb.c | 443 /* Determine hardware and mac info */ 491 adapter->hw.mac.autoneg = DO_AUTO_NEG; 542 if (adapter->hw.mac.type >= e1000_i350) { 553 if (adapter->hw.mac.type == e1000_i354) 563 ** mac from that. 568 if (((adapter->hw.mac.type != e1000_i210) && 569 (adapter->hw.mac.type != e1000_i211)) && 594 if (!igb_is_valid_ether_addr(adapter->hw.mac.addr)) { 610 adapter->hw.mac.get_link_status = 1; 1270 /* Get the latest mac addres [all...] |
/freebsd-11-stable/sys/opencrypto/ |
H A D | cryptodev.c | 79 u_int32_t mac; member in struct:session_op32 89 u_int32_t mac; member in struct:session2_op32 105 u_int32_t mac; member in struct:crypt_op32 156 CP(*from, *to, mac); 178 CP(*from, *to, mac); 205 PTRIN_CP(*from, *to, mac); 219 PTROUT_CP(*from, *to, mac); 277 u_int32_t mac; member in struct:csession 459 switch (sop->mac) { 502 CRYPTDEB("invalid mac"); 1378 csecreate(struct fcrypt *fcr, u_int64_t sid, caddr_t key, u_int64_t keylen, caddr_t mackey, u_int64_t mackeylen, u_int32_t cipher, u_int32_t mac, struct enc_xform *txform, struct auth_hash *thash) argument [all...] |
H A D | cryptodev.h | 211 u_int32_t mac; /* ie. CRYPTO_MD5_HMAC */ member in struct:session_op 215 int mackeylen; /* mac key */ 223 u_int32_t mac; /* ie. CRYPTO_MD5_HMAC */ member in struct:session2_op 227 int mackeylen; /* mac key */ 246 caddr_t mac; /* must be big enough for chosen MAC */ member in struct:crypt_op
|
/freebsd-11-stable/sys/dev/rt/ |
H A D | if_rt.c | 216 macaddr_atoi(const char *str, uint8_t *mac) argument 225 memset(mac, 0, ETHER_ADDR_LEN); 231 mac[i] = (amac[i] & 0xff); 238 * generate_mac(uin8_t *mac) 248 generate_mac(uint8_t *mac) argument 260 mac[0] = 'b'; 261 mac[1] = 's'; 262 mac[2] = 'd'; 263 mac[3] = (crc >> 24) ^ ((crc >> 16) & 0xff); 264 mac[ 273 ether_request_mac(device_t dev, uint8_t *mac) argument [all...] |
/freebsd-11-stable/usr.sbin/ancontrol/ |
H A D | ancontrol.c | 1306 /* default mac and only valid one (from manual) 1.0.0.0.0.0 */ 1307 k->mac[0]=1; 1308 k->mac[1]=0; 1309 k->mac[2]=0; 1310 k->mac[3]=0; 1311 k->mac[4]=0; 1312 k->mac[5]=0; 1376 printf("\tThe active transmit key is %d\n", 4 * home + k->mac[0]); 1411 k->mac[0]=atoi(arg); 1412 k->mac[ [all...] |
/freebsd-11-stable/sys/dev/pci/ |
H A D | pci_iov_schema.c | 109 .type_name = "unicast-mac", 259 pci_iov_schema_add_type(entry, "unicast-mac"); 309 const uint8_t *mac; local 315 mac = nvlist_get_binary(config, name, &size); 320 if (ETHER_IS_MULTICAST(mac)) 391 const uint8_t *mac; local 397 mac = nvlist_get_binary(param, DEFAULT_SCHEMA_NAME, &size); 401 if (ETHER_IS_MULTICAST(mac))
|
/freebsd-11-stable/sys/dev/ath/ |
H A D | ah_osdep.c | 81 extern const char* ath_hal_ether_sprintf(const u_int8_t *mac); 133 ath_hal_ether_sprintf(const u_int8_t *mac) argument 135 return ether_sprintf(mac);
|
/freebsd-11-stable/sys/security/mac/ |
H A D | mac_inet.c | 73 #include <security/mac/mac_framework.h> 74 #include <security/mac/mac_internal.h> 75 #include <security/mac/mac_policy.h>
|
/freebsd-11-stable/tools/tools/net80211/wlanstats/ |
H A D | wlanstats.c | 389 uint8_t mac[IEEE80211_ADDR_LEN]; member in struct:wlanstatfoo_p 462 IEEE80211_ADDR_COPY(wf->mac, LLADDR(sdl)); 470 wf->ireq.i_data = wf->mac; 476 wlan_setstamac(struct wlanstatfoo *wf0, const uint8_t *mac) argument 481 if (mac == NULL) { 491 * mac must be specified on the command line 494 IEEE80211_ADDR_EQ(wf->mac, zeromac)) 504 IEEE80211_ADDR_COPY(wf->mac, mac); 513 IEEE80211_ADDR_COPY(wf->u_info.info.is_u.macaddr, wf->mac); [all...] |
/freebsd-11-stable/sys/dev/gxemul/ether/ |
H A D | if_gx.c | 136 uint8_t mac[6]; local 145 GXEMUL_ETHER_DEV_WRITE(GXEMUL_ETHER_DEV_MAC, (uintptr_t)mac); 190 ether_ifattach(ifp, mac);
|
/freebsd-11-stable/crypto/openssl/crypto/pkcs12/ |
H A D | pkcs12.h | 110 PKCS12_MAC_DATA *mac; member in struct:__anon4613 170 # define PKCS12_mac_present(p12) ((p12)->mac ? 1 : 0) 235 unsigned char *mac, unsigned int *maclen);
|
H A D | p12_asn.c | 70 ASN1_OPT(PKCS12, mac, PKCS12_MAC_DATA)
|
/freebsd-11-stable/sys/security/mac_ifoff/ |
H A D | mac_ifoff.c | 61 #include <security/mac/mac_policy.h>
|
/freebsd-11-stable/sys/security/mac_seeotheruids/ |
H A D | mac_seeotheruids.c | 62 #include <security/mac/mac_policy.h>
|
/freebsd-11-stable/sys/contrib/dev/ath/ath_hal/ar9300/ |
H A D | ar9300_stub_funcs.h | 34 uint16_t entry, const uint8_t *mac); 36 const HAL_KEYVAL *k, const uint8_t *mac, int xorKey); 38 extern void ar9300_Stub_GetMacAddress(struct ath_hal *ah, uint8_t *mac); 40 extern void ar9300_Stub_GetBssIdMask(struct ath_hal *ah, uint8_t *mac);
|
/freebsd-11-stable/tests/sys/mac/bsdextended/ |
H A D | ugidfw_test.c | 26 * $FreeBSD: stable/11/tests/sys/mac/bsdextended/ugidfw_test.c 313235 2017-02-04 17:01:53Z ngie $ 30 #include <sys/mac.h>
|
/freebsd-11-stable/usr.sbin/bsnmpd/modules/snmp_bridge/ |
H A D | bridge_addrs.c | 90 * Compare two mac addresses. 274 bridge_new_addrs(uint8_t *mac, struct bridge_if *bif) argument 287 bcopy(mac, te->tp_addr, ETHER_ADDR_LEN); 294 * Given a mac address, learnt on a bridge, 298 bridge_addrs_find(uint8_t *mac, struct bridge_if *bif) argument 308 if (bridge_compare_macs(te->tp_addr, mac) == 0)
|
/freebsd-11-stable/sys/dev/ixgbe/ |
H A D | if_fdir.c | 47 adapter->hw.mac.ops.setup_rxpba(&adapter->hw, 0, hdrm,
|
/freebsd-11-stable/contrib/wpa/src/wps/ |
H A D | wps_upnp_i.h | 128 u8 mac_addr[ETH_ALEN]; /* mac addr of network i.f. we use */ 162 struct in_addr *netmask, u8 mac[ETH_ALEN]);
|
/freebsd-11-stable/stand/i386/libi386/ |
H A D | pxe.c | 384 uint8_t *mac; local 411 mac = undi_info_p->CurrentNodeAddress; 413 mac = undi_info_p->PermNodeAddress; 417 desc->myea[i] = mac[i];
|
/freebsd-11-stable/sys/dev/vnic/ |
H A D | nic_main.c | 299 const void *mac; local 312 if (nvlist_exists_binary(params, "mac-addr") != 0) { 313 mac = nvlist_get_binary(params, "mac-addr", &size); 316 bgx_set_lmac_mac(nic->node, bgx, lmac, mac); 439 const char *mac; local 453 mac = bgx_get_lmac_mac(nic->node, bgx_idx, lmac); 454 if (mac) { 455 memcpy((uint8_t *)&mbx.nic_cfg.mac_addr, mac, 949 lmac = mbx.mac [all...] |
/freebsd-11-stable/sys/dev/cxgb/ |
H A D | cxgb_main.c | 1226 /* Reapply mac settings if they were lost due to a reset */ 1292 struct cmac *mac = &p->mac; local 1305 t3_mac_set_mtu(mac, mtu); 1307 t3_mac_set_address(mac, 0, p->hw_addr); 1309 t3_mac_set_rx_mode(mac, &rm); 1677 struct cmac *mac = &p->mac; local 1717 if (!mac->multiport) 1718 t3_mac_init(mac); 2201 struct cmac *mac = &pi->mac; local 2338 struct cmac *mac = &p->mac; local 2423 struct cmac *mac = &pi->mac; local [all...] |