Searched refs:mac (Results 51 - 75 of 546) sorted by relevance

1234567891011>>

/freebsd-10.0-release/tools/regression/mac/mac_portacl/
H A Dmisc.sh4 sysctl security.mac.portacl >/dev/null 2>&1
57 sysctl security.mac.portacl.rules= >/dev/null
75 sysctl security.mac.portacl.rules=${idtype}:${idstr}:${proto}:${port} >/dev/null
86 sysctl security.mac.portacl.rules= >/dev/null
90 suser_exempt=`sysctl -n security.mac.portacl.suser_exempt`
91 port_high=`sysctl -n security.mac.portacl.port_high`
95 sysctl -n security.mac.portacl.suser_exempt=${suser_exempt} >/dev/null
96 sysctl -n security.mac.portacl.port_high=${port_high} >/dev/null
/freebsd-10.0-release/sys/security/mac/
H A Dmac_net.c56 #include <sys/mac.h>
73 #include <security/mac/mac_framework.h>
74 #include <security/mac/mac_internal.h>
75 #include <security/mac/mac_policy.h>
404 struct mac mac; local
410 error = copyin(ifr->ifr_ifru.ifru_data, &mac, sizeof(mac));
414 error = mac_check_structmac_consistent(&mac);
418 elements = malloc(mac
446 struct mac mac; local
[all...]
H A Dmac_socket.c56 #include <sys/mac.h>
76 #include <security/mac/mac_framework.h>
77 #include <security/mac/mac_internal.h>
78 #include <security/mac/mac_policy.h>
527 mac_setsockopt_label(struct ucred *cred, struct socket *so, struct mac *mac) argument
536 error = mac_check_structmac_consistent(mac);
540 buffer = malloc(mac->m_buflen, M_MACTEMP, M_WAITOK);
541 error = copyinstr(mac->m_string, buffer, mac
560 mac_getsockopt_label(struct ucred *cred, struct socket *so, struct mac *mac) argument
598 mac_getsockopt_peerlabel(struct ucred *cred, struct socket *so, struct mac *mac) argument
[all...]
H A Dmac_framework.c61 * - The user MAC API, defined in mac.h, which allows user programs to query
65 * src/sys/security/mac. Sample policy modules may be found in
80 #include <sys/mac.h>
87 #include <security/mac/mac_framework.h>
88 #include <security/mac/mac_internal.h>
89 #include <security/mac/mac_policy.h>
94 SDT_PROVIDER_DEFINE(mac); variable
97 SDT_PROBE_DEFINE2(mac, kernel, policy, modevent, modevent, "int",
99 SDT_PROBE_DEFINE1(mac, kernel, policy, register, register,
101 SDT_PROBE_DEFINE1(mac, kerne
587 mac_check_structmac_consistent(struct mac *mac) argument
[all...]
/freebsd-10.0-release/sys/dev/e1000/
H A De1000_82543.c110 phy->ops.read_reg = (hw->mac.type == e1000_82543)
113 phy->ops.reset = (hw->mac.type == e1000_82543)
116 phy->ops.write_reg = (hw->mac.type == e1000_82543)
140 switch (hw->mac.type) {
195 struct e1000_mac_info *mac = &hw->mac; local
211 mac->mta_reg_count = 128;
213 mac->rar_entry_count = E1000_RAR_ENTRIES;
218 mac->ops.get_bus_info = e1000_get_bus_info_pci_generic;
220 mac
959 struct e1000_mac_info *mac = &hw->mac; local
1203 struct e1000_mac_info *mac = &hw->mac; local
1340 struct e1000_mac_info *mac = &hw->mac; local
[all...]
H A De1000_82541.c226 struct e1000_mac_info *mac = &hw->mac; local
233 mac->mta_reg_count = 128;
235 mac->rar_entry_count = E1000_RAR_ENTRIES;
237 mac->asf_firmware_present = TRUE;
242 mac->ops.get_bus_info = e1000_get_bus_info_pci_generic;
244 mac->ops.set_lan_id = e1000_set_lan_id_single_port;
246 mac->ops.reset_hw = e1000_reset_hw_82541;
248 mac->ops.init_hw = e1000_init_hw_82541;
250 mac
380 struct e1000_mac_info *mac = &hw->mac; local
590 struct e1000_mac_info *mac = &hw->mac; local
[all...]
H A De1000_manage.c78 if (!hw->mac.arc_subsystem_valid) {
140 hw->mac.tx_pkt_filtering = TRUE;
143 if (!hw->mac.ops.check_mng_mode(hw)) {
144 hw->mac.tx_pkt_filtering = FALSE;
145 return hw->mac.tx_pkt_filtering;
153 hw->mac.tx_pkt_filtering = FALSE;
154 return hw->mac.tx_pkt_filtering;
172 hw->mac.tx_pkt_filtering = TRUE;
173 return hw->mac.tx_pkt_filtering;
178 hw->mac
[all...]
/freebsd-10.0-release/sys/dev/ixgbe/
H A Dixgbe_82599.c71 struct ixgbe_mac_info *mac = &hw->mac; local
79 if ((mac->ops.get_media_type(hw) == ixgbe_media_type_fiber) &&
81 mac->ops.disable_tx_laser =
83 mac->ops.enable_tx_laser =
85 mac->ops.flap_tx_laser = &ixgbe_flap_tx_laser_multispeed_fiber;
88 mac->ops.disable_tx_laser = NULL;
89 mac->ops.enable_tx_laser = NULL;
90 mac->ops.flap_tx_laser = NULL;
95 mac
119 struct ixgbe_mac_info *mac = &hw->mac; local
255 struct ixgbe_mac_info *mac = &hw->mac; local
[all...]
H A Dixgbe_82598.c114 struct ixgbe_mac_info *mac = &hw->mac; local
127 mac->ops.start_hw = &ixgbe_start_hw_82598;
128 mac->ops.enable_relaxed_ordering = &ixgbe_enable_relaxed_ordering_82598;
129 mac->ops.reset_hw = &ixgbe_reset_hw_82598;
130 mac->ops.get_media_type = &ixgbe_get_media_type_82598;
131 mac->ops.get_supported_physical_layer =
133 mac->ops.read_analog_reg8 = &ixgbe_read_analog_reg8_82598;
134 mac->ops.write_analog_reg8 = &ixgbe_write_analog_reg8_82598;
135 mac
185 struct ixgbe_mac_info *mac = &hw->mac; local
[all...]
/freebsd-10.0-release/share/doc/psd/04.uprog/
H A DMakefile5 SRCS= p.mac p0 p1 p2 p3 p4 p5 p6 p8 p9
/freebsd-10.0-release/share/doc/usd/22.trofftut/
H A DMakefile41 SRCS= tt.mac tt00 tt01 tt02 tt03 tt04 tt05 tt06 tt07 tt08 tt09 tt10 \
/freebsd-10.0-release/sys/dev/ath/
H A Dif_ath_keycache.h39 const u_int8_t mac[IEEE80211_ADDR_LEN]);
/freebsd-10.0-release/sys/ofed/include/linux/mlx4/
H A Ddriver.h86 u64 mac = 0; local
90 mac <<= 8;
91 mac |= addr[i];
93 return mac;
/freebsd-10.0-release/tools/tools/net80211/w00t/libw00t/
H A Dw00t.h34 int str2mac(char *mac, char *str);
35 void mac2str(char *str, char *mac);
45 int send_ack(int fd, char *mac);
48 int set_iface_mac(char *iface, char *mac);
/freebsd-10.0-release/tools/tools/net80211/wlanstats/
H A Dwlanstats.h51 /* set the mac address of the associated station/ap */
52 void (*setstamac)(struct wlanstatfoo *, const uint8_t mac[]);
/freebsd-10.0-release/sys/dev/ath/ath_hal/ar5210/
H A Dar5210_keycache.c74 * Sets the mac part of the specified key cache entry and mark it valid.
77 ar5210SetKeyCacheEntryMac(struct ath_hal *ah, uint16_t entry, const uint8_t *mac) argument
86 if (mac != AH_NULL) {
87 macHi = (mac[5] << 8) | mac[4];
88 macLo = (mac[3] << 24)| (mac[2] << 16)
89 | (mac[1] << 8) | mac[0];
110 const HAL_KEYVAL *k, const uint8_t *mac, in
109 ar5210SetKeyCacheEntry(struct ath_hal *ah, uint16_t entry, const HAL_KEYVAL *k, const uint8_t *mac, int xorKey) argument
[all...]
/freebsd-10.0-release/sys/dev/ath/ath_hal/ar5211/
H A Dar5211_keycache.c78 * Sets the mac part of the specified key cache entry and mark it valid.
81 ar5211SetKeyCacheEntryMac(struct ath_hal *ah, uint16_t entry, const uint8_t *mac) argument
95 if (mac != AH_NULL) {
96 macHi = (mac[5] << 8) | mac[4];
97 macLo = (mac[3] << 24)| (mac[2] << 16)
98 | (mac[1] << 8) | mac[0];
116 const HAL_KEYVAL *k, const uint8_t *mac,
115 ar5211SetKeyCacheEntry(struct ath_hal *ah, uint16_t entry, const HAL_KEYVAL *k, const uint8_t *mac, int xorKey) argument
[all...]
/freebsd-10.0-release/contrib/wpa/src/crypto/
H A Dcrypto_internal.c151 int crypto_hash_finish(struct crypto_hash *ctx, u8 *mac, size_t *len) argument
159 if (mac == NULL || len == NULL) {
172 MD5Final(mac, &ctx->u.md5);
181 SHA1Final(mac, &ctx->u.sha1);
191 sha256_done(&ctx->u.sha256, mac);
202 MD5Final(mac, &ctx->u.md5);
211 MD5Update(&ctx->u.md5, mac, 16);
212 MD5Final(mac, &ctx->u.md5);
222 SHA1Final(mac, &ctx->u.sha1);
231 SHA1Update(&ctx->u.sha1, mac, 2
[all...]
H A Dcrypto_nss.c26 u8 *mac)
39 HASH_End(ctx, mac, &reslen, max_res_len);
119 int md5_vector(size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac) argument
121 return nss_hash(HASH_AlgMD5, 16, num_elem, addr, len, mac);
125 int sha1_vector(size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac) argument
127 return nss_hash(HASH_AlgSHA1, 20, num_elem, addr, len, mac);
132 u8 *mac)
134 return nss_hash(HASH_AlgSHA256, 32, num_elem, addr, len, mac);
24 nss_hash(HASH_HashType type, unsigned int max_res_len, size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac) argument
131 sha256_vector(size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac) argument
H A Dsha1.h15 const u8 *addr[], const size_t *len, u8 *mac);
17 u8 *mac);
H A Daes-omac1.c35 * @mac: Buffer for MAC (128 bits, i.e., 16 bytes)
43 const u8 *addr[], const size_t *len, u8 *mac)
97 aes_encrypt(ctx, pad, mac);
108 * @mac: Buffer for MAC (128 bits, i.e., 16 bytes)
115 int omac1_aes_128(const u8 *key, const u8 *data, size_t data_len, u8 *mac) argument
117 return omac1_aes_128_vector(key, 1, &data, &data_len, mac);
42 omac1_aes_128_vector(const u8 *key, size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac) argument
/freebsd-10.0-release/contrib/ldns/ldns/
H A Dtsig.h44 * \param[in] wire needed to verify the mac
48 * \param[in] mac original mac
51 bool ldns_pkt_tsig_verify(ldns_pkt *pkt, uint8_t *wire, size_t wire_size, const char *key_name, const char *key_data, ldns_rdf *mac);
57 * \param[in] wire needed to verify the mac
61 * \param[in] mac original mac
63 components are used to verify the _mac. If non-zero, only the TSIG timers are used to verify the mac.
66 bool ldns_pkt_tsig_verify_next(ldns_pkt *pkt, uint8_t *wire, size_t wire_size, const char *key_name, const char *key_data, ldns_rdf *mac,
/freebsd-10.0-release/contrib/sendmail/src/
H A Dmacro.c373 ** mac -- Macro table.
381 ** at least the lifetime of mac. Use A_PERM if:
384 ** -- value was allocated from mac->mac_rpool
397 macdefine_tagged(mac, vclass, id, value, file, line, grp)
399 macdefine(mac, vclass, id, value)
401 MACROS_T *mac;
419 mac->mac_table[id] == NULL ? "" : "re", macname(id));
424 if (mac->mac_rpool == NULL)
428 if (mac->mac_table[id] != NULL &&
429 bitnset(id, mac
[all...]
/freebsd-10.0-release/share/doc/psd/01.cacm/
H A DMakefile5 SRCS= stubs p.mac p1 p2 p3 p4 p5 p6
/freebsd-10.0-release/sys/dev/ath/ath_hal/ar5212/
H A Dar5212_keycache.c100 * Sets the mac part of the specified key cache entry (and any
103 * Since mac[0] is shifted off and not presented to the hardware,
110 ar5212SetKeyCacheEntryMac(struct ath_hal *ah, uint16_t entry, const uint8_t *mac) argument
124 if (mac != AH_NULL) {
132 if (mac[0] & 0x01)
135 macHi = (mac[5] << 8) | mac[4];
136 macLo = (mac[3] << 24)| (mac[2] << 16)
137 | (mac[
154 ar5212SetKeyCacheEntry(struct ath_hal *ah, uint16_t entry, const HAL_KEYVAL *k, const uint8_t *mac, int xorKey) argument
[all...]

Completed in 277 milliseconds

1234567891011>>