Lines Matching refs:dh4

273 get_dhcpv4_option(struct dhcp *dh4, uchar_t *end, uint8_t type,  in get_dhcpv4_option()  argument
276 uchar_t *start = (uchar_t *)dh4->options; in get_dhcpv4_option()
308 get_dhcpv4_info(ipha_t *ipha, uchar_t *end, struct dhcp **dh4) in get_dhcpv4_info() argument
349 *dh4 = (struct dhcp *)dh; in get_dhcpv4_info()
573 struct dhcp *dh4; in intercept_dhcpv4_outbound() local
580 if (get_dhcpv4_info(ipha, end, &dh4) != 0) in intercept_dhcpv4_outbound()
587 if (get_dhcpv4_option(dh4, end, CD_DHCP_TYPE, &opt, &opt_len) != 0 || in intercept_dhcpv4_outbound()
590 struct dhcp *, dh4); in intercept_dhcpv4_outbound()
596 struct dhcp *, dh4, uint8_t, mtype); in intercept_dhcpv4_outbound()
601 if (get_dhcpv4_option(dh4, end, CD_CLIENT_ID, &opt, &opt_len) == 0 && in intercept_dhcpv4_outbound()
613 struct dhcp *, dh4); in intercept_dhcpv4_outbound()
619 mcip, struct dhcp *, dh4); in intercept_dhcpv4_outbound()
632 if ((txn = find_dhcpv4_pending_txn(mcip, dh4->xid)) != NULL) { in intercept_dhcpv4_outbound()
639 if (get_dhcpv4_option(dh4, end, CD_REQUESTED_IP_ADDR, in intercept_dhcpv4_outbound()
642 struct dhcp *, dh4); in intercept_dhcpv4_outbound()
646 if ((txn = create_dhcpv4_txn(dh4->xid, cid, cid_len, ipaddr)) == NULL) in intercept_dhcpv4_outbound()
670 struct dhcp *dh4) in intercept_dhcpv4_inbound() argument
676 if (get_dhcpv4_option(dh4, end, CD_DHCP_TYPE, &opt, &opt_len) != 0 || in intercept_dhcpv4_inbound()
679 struct dhcp *, dh4); in intercept_dhcpv4_inbound()
685 struct dhcp *, dh4, uint8_t, mtype); in intercept_dhcpv4_inbound()
690 if ((txn = find_dhcpv4_pending_txn(mcip, dh4->xid)) == NULL) { in intercept_dhcpv4_inbound()
692 struct dhcp *, dh4); in intercept_dhcpv4_inbound()
1679 struct dhcp *dh4; in mac_protect_intercept_dynamic_one() local
1685 if (get_dhcpv4_info(ipha, end, &dh4) == 0) { in mac_protect_intercept_dynamic_one()
1686 intercept_dhcpv4_inbound(mcip, end, dh4); in mac_protect_intercept_dynamic_one()
2035 struct dhcp *dh4; in dhcpnospoof_check_v4() local
2041 if ((err = get_dhcpv4_info(ipha, end, &dh4)) != 0) in dhcpnospoof_check_v4()
2045 if (dh4->hlen == maclen && in dhcpnospoof_check_v4()
2046 bcmp(mcip->mci_unicast->ma_addr, dh4->chaddr, maclen) != 0) { in dhcpnospoof_check_v4()
2049 if (get_dhcpv4_option(dh4, end, CD_CLIENT_ID, &cid, &optlen) == 0) in dhcpnospoof_check_v4()