Skip to content

Minimise configuration structure #316

Open
@fredrikdanielmoller

Description

@fredrikdanielmoller

The configuration structure contains fields which could be calculated in pnet_init(). Remove these fields from pnet_cfg_t as to simplify stack configuration for the user.

Fields which could removed from configuration:

  • ip_cfg in pnet_if_cfg_t. Initialise by calling pnal_get_ip_address()/subnet()/gateway().
  • Parts of im_x_data.

Handled in #333:

  • eth_addr in pnet_netif_t. Initialise by calling pnal_get_macaddress().
  • port_id in pnet_port_cfg_t. Initialise as "port-001", "port-002" etc.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions