#!/bin/bash

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

iptables_mark_check() {
    if ! kernel_config_check CONFIG_NETFILTER_XT_MARK xt_mark; then
        return 1
    fi

    if ! iptables_rule_check mangle PREROUTING -m mark --mark 0x66; then
        return 1
    fi
    if ! iptables_rule_check mangle PREROUTING -j MARK --set-mark 0x66; then
        return 1
    fi
}

