/*
 * Copyright (C) 2023 iopsys Software Solutions AB
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License version 2.1
 * as published by the Free Software Foundation
 *
 *	  Author: Amin Ben Romdhane <amin.benromdhane@iopsys.eu>
 *
 */

#ifndef __DMLAYER_H__
#define __DMLAYER_H__

#include "libbbfdm-api/dmcommon.h"

void gre___get_tunnel_system_name(struct uci_section *iface_section, char *device_str, size_t device_str_size);

bool ip___is_gre_protocols(const char *proto);
bool ip___is_ip_interface_instance_exists(const char *iface_name, const char *device);
void ip___update_child_interfaces(const char *device, const char *option_name, const char *option_value);

void ppp___update_sections(struct uci_section *s_from, struct uci_section *s_to);
void ppp___reset_options(struct uci_section *ppp_s);
void ppp___Update_PPP_Interface_Top_Layers(const char *path, const char *linker);

void firewall__create_zone_section(const char *s_name);

#endif //__DMLAYER_H__
