#!/bin/bash

source ./kernel_config_utils.sh
source ./net_utils.sh

iptables_addrtype_check() {
    if ! kernel_config_check CONFIG_NETFILTER_XT_MATCH_ADDRTYPE xt_addrtype; then
        return 1
    fi

    if ! iptables_rule_check mangle PREROUTING -m addrtype --dst-type LOCAL; then
        return 1
    fi
}

