#!/bin/bash

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

networking_support_check() {
    is_error=false
    if ! kernel_config_check CONFIG_NET; then
        is_error=true
    fi
    if ! kernel_config_check CONFIG_INET; then
        is_error=true
    fi
    if ! kernel_config_check CONFIG_IPV6; then
        is_error=true
    fi
    if ! kernel_config_check CONFIG_NET_SCHED; then
        is_error=true
    fi
    if [ "$is_error" == "true" ]; then
        return 1
    fi

    return 0
}

