Zephyr Project API 4.4.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
net_config.h File Reference

Routines for network subsystem initialization. More...

Go to the source code of this file.

Data Structures

struct  net_config_ssh_password_auth
 This contains configuration data for password authentication for sshd on the device. More...
struct  net_config_ssh_key
 This contains key configuration data for sshd on the device. More...

Macros

#define NET_CONFIG_NEED_ROUTER   0x00000001
 Application needs routers to be set so that connectivity to remote network is possible.
#define NET_CONFIG_NEED_IPV6   0x00000002
 Application needs IPv6 subsystem configured and initialized.
#define NET_CONFIG_NEED_IPV4   0x00000004
 Application needs IPv4 subsystem configured and initialized.
#define NET_CONFIG_SSH_KEY_BUF_DEFINE_STATIC(name, key_bits)
 Temporary key buffer needed for loading and saving keys.
#define NET_CONFIG_SSH_PASSWORD_AUTH_DEFINE_STATIC(name, user_name, pwd)
 Statically define a username and password for SSH server configuration.
#define NET_CONFIG_SSH_PRIV_KEY_DEFINE_STATIC(name, _key_buf_name, _key_buf_len, _key_name, _key_id, _key_type, _key_bits)
 Statically define a private key for SSH server configuration.
#define NET_CONFIG_SSH_PUB_KEY_DEFINE_STATIC(name, _key_buf_name, _key_buf_len, _key_name, _key_id)
 Statically define a public key for SSH server configuration.

Functions

int net_config_init (const char *app_info, uint32_t flags, int32_t timeout)
 Initialize this network application.
int net_config_init_by_iface (struct net_if *iface, const char *app_info, uint32_t flags, int32_t timeout)
 Initialize this network application using a specific network interface.
int net_config_init_app (const struct device *dev, const char *app_info)
 Initialize this network application.
static int net_config_init_sshd (struct net_if *iface, const struct net_config_ssh_key *priv_key_config, const struct net_config_ssh_key *pub_key_config, const struct net_config_ssh_password_auth *password_auth_config, int sshd_instance)
 Initialize SSH server on the device.

Detailed Description

Routines for network subsystem initialization.