Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
#include "port-dummy.h"
-nw_port_info_t nw_port_info_dummy = {
+const nw_port_info_t nw_port_info_dummy = {
.kind = "dummy",
};
#include "port.h"
-extern nw_port_info_t nw_port_info_dummy;
+extern const nw_port_info_t nw_port_info_dummy;
#endif /* NETWORKD_PORT_DUMMY_H */
return 0;
}
-nw_port_info_t nw_port_info_vlan = {
+const nw_port_info_t nw_port_info_vlan = {
.kind = "vlan",
// Operations
#include "port.h"
-extern nw_port_info_t nw_port_info_vlan;
+extern const nw_port_info_t nw_port_info_vlan;
// ID
int nw_port_get_vlan_id(nw_port* port);
nw_address_t address;
// Type Operations
- nw_port_info_t* info;
+ const nw_port_info_t* info;
// VLAN settings
struct nw_port_vlan {