ah
hlen = (((struct ah *)cp)->ah_hl+2) << 2;
nh = ((struct ah *)cp)->ah_nh;
if(!ah(dp, "A.ROOT-SERVERS.NET.", "198.41.0.4")) goto failed;
if(!ah(dp, "B.ROOT-SERVERS.NET.", "170.247.170.2")) goto failed;
if(!ah(dp, "C.ROOT-SERVERS.NET.", "192.33.4.12")) goto failed;
if(!ah(dp, "D.ROOT-SERVERS.NET.", "199.7.91.13")) goto failed;
if(!ah(dp, "E.ROOT-SERVERS.NET.", "192.203.230.10")) goto failed;
if(!ah(dp, "F.ROOT-SERVERS.NET.", "192.5.5.241")) goto failed;
if(!ah(dp, "G.ROOT-SERVERS.NET.", "192.112.36.4")) goto failed;
if(!ah(dp, "H.ROOT-SERVERS.NET.", "198.97.190.53")) goto failed;
if(!ah(dp, "I.ROOT-SERVERS.NET.", "192.36.148.17")) goto failed;
if(!ah(dp, "J.ROOT-SERVERS.NET.", "192.58.128.30")) goto failed;
if(!ah(dp, "K.ROOT-SERVERS.NET.", "193.0.14.129")) goto failed;
if(!ah(dp, "L.ROOT-SERVERS.NET.", "199.7.83.42")) goto failed;
if(!ah(dp, "M.ROOT-SERVERS.NET.", "202.12.27.33")) goto failed;
if(!ah(dp, "A.ROOT-SERVERS.NET.", "2001:503:ba3e::2:30")) goto failed;
if(!ah(dp, "B.ROOT-SERVERS.NET.", "2801:1b8:10::b")) goto failed;
if(!ah(dp, "C.ROOT-SERVERS.NET.", "2001:500:2::c")) goto failed;
if(!ah(dp, "D.ROOT-SERVERS.NET.", "2001:500:2d::d")) goto failed;
if(!ah(dp, "E.ROOT-SERVERS.NET.", "2001:500:a8::e")) goto failed;
if(!ah(dp, "F.ROOT-SERVERS.NET.", "2001:500:2f::f")) goto failed;
if(!ah(dp, "G.ROOT-SERVERS.NET.", "2001:500:12::d0d")) goto failed;
if(!ah(dp, "H.ROOT-SERVERS.NET.", "2001:500:1::53")) goto failed;
if(!ah(dp, "I.ROOT-SERVERS.NET.", "2001:7fe::53")) goto failed;
if(!ah(dp, "J.ROOT-SERVERS.NET.", "2001:503:c27::2:30")) goto failed;
if(!ah(dp, "K.ROOT-SERVERS.NET.", "2001:7fd::1")) goto failed;
if(!ah(dp, "L.ROOT-SERVERS.NET.", "2001:500:9f::42")) goto failed;
if(!ah(dp, "M.ROOT-SERVERS.NET.", "2001:dc3::35")) goto failed;
AR5K_HAL_FUNCTIONS(, ah, *);
struct ath_hal *ah = sc->sc_ah;
(void)ath_hal_softcrypto(ah, AH_TRUE);
(void)ath_hal_softcrypto(ah, AH_FALSE);
ath_hal_reset_key(ah, i);
if (ath_hal_set_key(ah, i, &hk) != AH_TRUE)
struct ath_hal *ah = sc->sc_ah;
rfilt = (ath_hal_get_rx_filter(ah) & HAL_RX_FILTER_PHYERR)
struct ath_hal *ah = sc->sc_ah;
ath_hal_set_rx_filter(ah, rfilt);
ath_hal_set_opmode(ah);
ath_hal_set_mcast_filter(ah, mfilt[0], mfilt[1]);
struct ath_hal *ah = sc->sc_ah;
if (!ath_hal_setup_tx_desc(ah, ds
if (!ath_hal_fill_tx_desc(ah, ds
struct ath_hal *ah = sc->sc_ah;
if (!ath_hal_stop_tx_dma(ah, sc->sc_bhalq)) {
ath_hal_put_tx_buf(ah, sc->sc_bhalq, bf->bf_daddr);
ath_hal_tx_start(ah, sc->sc_bhalq);
struct ath_hal *ah = sc->sc_ah;
ath_hal_set_intr(ah, 0);
ath_hal_set_beacon_timers(ah, &bs, 0/*XXX*/, 0, 0);
ath_hal_set_intr(ah, sc->sc_imask);
ath_hal_set_intr(ah, 0);
ath_hal_init_beacon(ah, nexttbtt, intval);
ath_hal_set_intr(ah, sc->sc_imask);
struct ath_hal *ah = sc->sc_ah;
ath_hal_setup_rx_desc(ah, ds
struct ath_hal *ah = sc->sc_ah;
status = ath_hal_proc_rx_desc(ah, ds,
ath_hal_set_rx_signal(ah); /* rx signal state monitoring */
ath_hal_start_rx(ah); /* in case of RXEOL */
struct ath_hal *ah = sc->sc_ah;
struct ath_hal *ah;
dur = ath_hal_computetxtime(ah, rt, IEEE80211_ACK_SIZE,
ah = ath_hal_attach(devid, sc, sc->sc_st, sc->sc_sh,
ctsduration += ath_hal_computetxtime(ah,
ctsduration += ath_hal_computetxtime(ah,
ctsduration += ath_hal_computetxtime(ah,
if (ah == NULL) {
ath_hal_setup_tx_desc(ah, ds
ath_hal_setup_xtx_desc(ah, ds
if (ah->ah_abi != HAL_ABI_VERSION) {
ath_hal_fill_tx_desc(ah, ds
ifp->if_xname, ah->ah_abi, HAL_ABI_VERSION);
ath_hal_put_tx_buf(ah, sc->sc_txhalq[hwqueue], bf->bf_daddr);
ath_hal_tx_start(ah, sc->sc_txhalq[hwqueue]);
struct ath_hal *ah = sc->sc_ah;
status = ath_hal_proc_tx_desc(ah, ds);
if (ah->ah_single_chip == AH_TRUE) {
ah->ah_mac_version, ah->ah_mac_revision,
ah->ah_phy_revision >> 4, ah->ah_phy_revision & 0xf,
ah->ah_radio_5ghz_revision >> 4,
struct ath_hal *ah = sc->sc_ah;
ah->ah_radio_5ghz_revision & 0xf);
(void) ath_hal_stop_tx_dma(ah, sc->sc_txhalq[i]);
(caddr_t)(u_intptr_t)ath_hal_get_tx_buf(ah,
(void) ath_hal_stop_tx_dma(ah, sc->sc_bhalq);
(caddr_t)(u_intptr_t)ath_hal_get_tx_buf(ah, sc->sc_bhalq)));
ar5k_printver(AR5K_VERSION_VER, ah->ah_mac_srev),
ath_hal_proc_tx_desc(ah, bf->bf_desc) == HAL_OK);
ah->ah_mac_version, ah->ah_mac_revision,
ah->ah_phy_revision >> 4, ah->ah_phy_revision & 0xf);
struct ath_hal *ah = sc->sc_ah;
ath_hal_stop_pcu_recv(ah); /* disable PCU */
ath_hal_set_rx_filter(ah, 0); /* clear recv filter */
ath_hal_stop_rx_dma(ah); /* disable DMA engine */
ar5k_printver(AR5K_VERSION_RAD, ah->ah_radio_5ghz_revision),
(caddr_t)(u_intptr_t)ath_hal_get_rx_buf(ah), sc->sc_rxlink);
if (ath_hal_proc_rx_desc(ah, ds, bf->bf_daddr,
ah->ah_radio_5ghz_revision >> 4,
ah->ah_radio_5ghz_revision & 0xf);
struct ath_hal *ah = sc->sc_ah;
if (ah->ah_radio_2ghz_revision != 0) {
ath_hal_put_rx_buf(ah, bf->bf_daddr);
ath_hal_start_rx(ah); /* enable recv descriptors */
ath_hal_start_rx_pcu(ah); /* re-enable PCU/DMA engine */
struct ath_hal *ah = sc->sc_ah;
ah->ah_radio_2ghz_revision),
ah->ah_radio_2ghz_revision >> 4,
ath_hal_set_intr(ah, 0); /* disable interrupts */
ah->ah_radio_2ghz_revision & 0xf);
if (!ath_hal_reset(ah, ic->ic_opmode, &hchan, AH_TRUE,
if (ah->ah_ee_version == AR5K_EEPROM_VERSION_4_7)
ath_hal_set_intr(ah, sc->sc_imask);
printf(" eeprom %1x.%1x", ah->ah_ee_version >> 12,
struct ath_hal *ah = sc->sc_ah;
ah->ah_ee_version & 0xff);
return (ath_hal_set_slot_time(ah, HAL_SLOT_TIME_9));
struct ath_hal *ah = sc->sc_ah;
if (ah->ah_radio_5ghz_revision >= AR5K_SREV_RAD_UNSUPP ||
if (ath_hal_get_rf_gain(ah) == HAL_RFGAIN_NEED_CHANGE) {
ah->ah_radio_2ghz_revision >= AR5K_SREV_RAD_UNSUPP) {
if (!ath_hal_calibrate(ah, &hchan)) {
struct ath_hal *ah = sc->sc_ah;
ath_hal_set_intr(ah, sc->sc_imask);
sc->sc_ah = ah;
ath_hal_set_rx_filter(ah, rfilt);
ath_hal_set_associd(ah, bssid, ni->ni_associd);
ath_hal_set_associd(ah, bssid, 0);
if (ath_hal_is_key_valid(ah, i))
ath_hal_set_key_lladdr(ah, i, bssid);
ath_hal_set_intr(ah, sc->sc_imask);
ath_hal_get_regdomain(ah, &ah->ah_regdomain);
struct ath_hal *ah = sc->sc_ah;
if (ieee80211_ibss_merge(ic, ni, ath_hal_get_tsf64(ah)) ==
ath_hal_set_associd(ah, ic->ic_bss->ni_bssid, 0);
struct ath_hal *ah = sc->sc_ah;
if (!ath_hal_init_channels(ah, chans, IEEE80211_CHAN_MAX, &nchan,
ifp->if_xname, ieee80211_regdomain2name(ah->ah_regdomain),
ah->ah_regdomain);
struct ath_hal *ah = sc->sc_ah;
sc->sc_rates[mode] = ath_hal_get_rate_table(ah, HAL_MODE_11A);
sc->sc_rates[mode] = ath_hal_get_rate_table(ah, HAL_MODE_11B);
sc->sc_rates[mode] = ath_hal_get_rate_table(ah, HAL_MODE_11G);
struct ath_hal *ah = sc->sc_ah;
if (ah->ah_gpio_npins < 1)
for (i = 0; i < ah->ah_gpio_npins && i < AR5K_MAX_GPIO; i++) {
ath_hal_set_gpio_input(ah, i);
sc->sc_gpio_pins[i].pin_state = ath_hal_get_gpio(ah, i) ?
if ((ah->ah_version == AR5K_AR5211) ||
ath_hal_set_gpio_output(ah, AR5K_SOFTLED_PIN);
ath_hal_set_gpio(ah, AR5K_SOFTLED_PIN, AR5K_SOFTLED_OFF);
gba.gba_npins = ah->ah_gpio_npins;
struct ath_hal *ah = sc->sc_ah;
return (ath_hal_get_gpio(ah, pin) ? GPIO_PIN_HIGH : GPIO_PIN_LOW);
struct ath_hal *ah = sc->sc_ah;
ath_hal_set_gpio(ah, pin, value ? GPIO_PIN_HIGH : GPIO_PIN_LOW);
struct ath_hal *ah = sc->sc_ah;
ath_hal_set_gpio_input(ah, pin);
ath_hal_set_gpio_output(ah, pin);
sc->sc_bhalq = ath_hal_setup_tx_queue(ah, HAL_TX_QUEUE_BEACON, NULL);
sc->sc_txhalq[i] = ath_hal_setup_tx_queue(ah,
sc->sc_veol = ath_hal_has_veol(ah);
ath_hal_get_lladdr(ah, ic->ic_myaddr);
ieee80211_regdomain2name(ah->ah_regdomain),
ah->ah_regdomain != ah->ah_regdomain_hw ? "*" : "",
if (ah)
ath_hal_detach(ah);
struct ath_hal *ah = sc->sc_ah;
if (!ath_hal_is_intr_pending(ah)) /* shared irq, not for us */
ath_hal_get_isr(ah, &status); /* clear ISR */
ath_hal_set_intr(ah, 0); /* disable further intr's */
ath_hal_get_isr(ah, &status); /* NB: clears ISR too */
ath_hal_set_intr(ah, 0); /* disable intr's until reset */
ath_hal_set_intr(ah, 0); /* disable intr's until reset */
ath_hal_update_mib_counters(ah, &sc->sc_mib_stats);
ath_hal_update_tx_triglevel(ah, AH_TRUE);
struct ath_hal *ah = sc->sc_ah;
ath_hal_set_lladdr(ah, ic->ic_myaddr);
if (!ath_hal_reset(ah, ic->ic_opmode, &hchan, AH_TRUE, &status)) {
ath_hal_set_intr(ah, sc->sc_imask);
struct ath_hal *ah = sc->sc_ah;
ath_hal_set_intr(ah, 0);
ath_hal_set_power(ah, HAL_PM_FULL_SLEEP, 0);
struct ath_hal *ah = sc->sc_ah;
ath_hal_set_intr(ah, 0); /* disable interrupts */
if (!ath_hal_reset(ah, ic->ic_opmode, &hchan,
ath_hal_set_intr(ah, sc->sc_imask);
struct ath_hal *ah = sc->sc_ah;
tsf = ath_hal_get_tsf64(ah);
u32 k, a, ah, al;
ah = ((a * t) + 5000) / 10000;
al = a - ah;
*th = t - ah;
u32 k, a, ah, al;
ah = ((a * t) + 5000) / 10000;
al = a - ah;
*th = t - ah;
ah = &wbuf.data.arp;
ah->arp_hrd = htons(ARPHRD_ETHER);
ah->arp_pro = htons(ETHERTYPE_IP);
ah->arp_hln = sizeof(ah->arp_sha); /* hardware address length */
ah->arp_pln = sizeof(ah->arp_spa); /* protocol address length */
ah->arp_op = htons(ARPOP_REQUEST);
MACPY(d->myea, ah->arp_sha);
bcopy(&d->myip, ah->arp_spa, sizeof(ah->arp_spa));
bcopy(&addr, ah->arp_tpa, sizeof(ah->arp_tpa));
ah = &rbuf.data.arp;
inet_ntoa(addr), ether_sprintf(ah->arp_sha));
MACPY(ah->arp_sha, al->ea);
struct ether_arp *ah;
ah = (struct ether_arp *)pkt;
if (ah->arp_hrd != htons(ARPHRD_ETHER) ||
ah->arp_pro != htons(ETHERTYPE_IP) ||
ah->arp_hln != sizeof(ah->arp_sha) ||
ah->arp_pln != sizeof(ah->arp_spa)) {
if (ah->arp_op == htons(ARPOP_REQUEST)) {
arp_reply(d, ah);
if (ah->arp_op != htons(ARPOP_REPLY)) {
if (bcmp(&arp_list[arp_num].addr, ah->arp_spa,
sizeof(ah->arp_spa))) {
struct ether_arp *ah;
struct arphdr *ah = (void *)ip;
if (ah->ar_op == htons(ARPOP_REQUEST)) {
arp_reply(d, ah);
ah = (struct ah *)(mtod(mi, caddr_t) + roff);
m_copydata(m, protoff, sizeof(u_int8_t), &ah->ah_nh);
ah->ah_hl = (rplen + ahx->authsize - AH_FLENGTH) / sizeof(u_int32_t);
ah->ah_rv = 0;
ah->ah_spi = tdb->tdb_spi;
ah->ah_rpl = htonl((u_int32_t)replay64);
m_copydata(m, skip + offsetof(struct ah, ah_hl), sizeof(u_int8_t), &hl);
m_copydata(m, skip + offsetof(struct ah, ah_rpl),
m_copydata(m, skip + offsetof(struct ah, ah_rpl),
struct ah *ah;
ah = ntohl(ina.s_addr);
if (IN_CLASSA(ah))
else if (IN_CLASSB(ah))
else if (IN_CLASSC(ah))
u_int32_t mask, ah;
const char *ah[] = IPSEC_AH_INITIALIZER;
if (tp->transform < (sizeof ah / sizeof ah[0]))
printf("%s", ah[tp->transform]);
const struct ah_hdr *ah;
ah = (const struct ah_hdr *)bp;
ntohl(ah->ah_spi), ntohl(ah->ah_seq), len);
pl_len = (ah->ah_pl_len + 2) << 2; /* RFC2402, sec 2.2 */
switch (ah->ah_nxt_hdr) {
ah->ah_nxt_hdr, len - pl_len);
ofp_print_action(struct ofp_action_header *ah, const u_char *bp, u_int length)
ahtype = ntohs(ah->ah_type);
print_map(ahtype, ofp_action_map), ntohs(ah->ah_len));
struct ofp_action_header *ah;
if (length < sizeof(*ah)) {
ah = (struct ofp_action_header *)bp;
ahlen = ntohs(ah->ah_len) - AH_UNPADDED;
ofp_print_action(ah, bp, length);
struct ofp_action_header *ah;
if (actionslen < sizeof(*ah))
if (length < sizeof(*ah)) {
ah = (struct ofp_action_header *)bp;
ahlen = ntohs(ah->ah_len) - AH_UNPADDED;
ofp_print_action(ah, bp, length);
if(!ah(dp, "A.ROOT-SERVERS.NET.", "198.41.0.4")) goto failed;
if(!ah(dp, "B.ROOT-SERVERS.NET.", "170.247.170.2")) goto failed;
if(!ah(dp, "C.ROOT-SERVERS.NET.", "192.33.4.12")) goto failed;
if(!ah(dp, "D.ROOT-SERVERS.NET.", "199.7.91.13")) goto failed;
if(!ah(dp, "E.ROOT-SERVERS.NET.", "192.203.230.10")) goto failed;
if(!ah(dp, "F.ROOT-SERVERS.NET.", "192.5.5.241")) goto failed;
if(!ah(dp, "G.ROOT-SERVERS.NET.", "192.112.36.4")) goto failed;
if(!ah(dp, "H.ROOT-SERVERS.NET.", "198.97.190.53")) goto failed;
if(!ah(dp, "I.ROOT-SERVERS.NET.", "192.36.148.17")) goto failed;
if(!ah(dp, "J.ROOT-SERVERS.NET.", "192.58.128.30")) goto failed;
if(!ah(dp, "K.ROOT-SERVERS.NET.", "193.0.14.129")) goto failed;
if(!ah(dp, "L.ROOT-SERVERS.NET.", "199.7.83.42")) goto failed;
if(!ah(dp, "M.ROOT-SERVERS.NET.", "202.12.27.33")) goto failed;
if(!ah(dp, "A.ROOT-SERVERS.NET.", "2001:503:ba3e::2:30")) goto failed;
if(!ah(dp, "B.ROOT-SERVERS.NET.", "2801:1b8:10::b")) goto failed;
if(!ah(dp, "C.ROOT-SERVERS.NET.", "2001:500:2::c")) goto failed;
if(!ah(dp, "D.ROOT-SERVERS.NET.", "2001:500:2d::d")) goto failed;
if(!ah(dp, "E.ROOT-SERVERS.NET.", "2001:500:a8::e")) goto failed;
if(!ah(dp, "F.ROOT-SERVERS.NET.", "2001:500:2f::f")) goto failed;
if(!ah(dp, "G.ROOT-SERVERS.NET.", "2001:500:12::d0d")) goto failed;
if(!ah(dp, "H.ROOT-SERVERS.NET.", "2001:500:1::53")) goto failed;
if(!ah(dp, "I.ROOT-SERVERS.NET.", "2001:7fe::53")) goto failed;
if(!ah(dp, "J.ROOT-SERVERS.NET.", "2001:503:c27::2:30")) goto failed;
if(!ah(dp, "K.ROOT-SERVERS.NET.", "2001:7fd::1")) goto failed;
if(!ah(dp, "L.ROOT-SERVERS.NET.", "2001:500:9f::42")) goto failed;
if(!ah(dp, "M.ROOT-SERVERS.NET.", "2001:dc3::35")) goto failed;