Subversion Repositories HelenOS

Rev

Rev 4752 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4752 Rev 4756
Line 74... Line 74...
74
 */
74
 */
75
void    module_print_name( void );
75
void    module_print_name( void );
76
 
76
 
77
/** Starts the networking module.
77
/** Starts the networking module.
78
 *  Initializes the client connection serving function, initializes the module, registers the module service and starts the async manager, processing IPC messages in an infinite loop.
78
 *  Initializes the client connection serving function, initializes the module, registers the module service and starts the async manager, processing IPC messages in an infinite loop.
79
 *  @param client_connection The client connection processing function. The module skeleton propagates its own one. Input parameter.
79
 *  @param[in] client_connection The client connection processing function. The module skeleton propagates its own one.
80
 *  @returns EOK on successful module termination.
80
 *  @returns EOK on successful module termination.
81
 *  @returns Other error codes as defined for the net_initialize() function.
81
 *  @returns Other error codes as defined for the net_initialize() function.
82
 *  @returns Other error codes as defined for the REGISTER_ME() macro function.
82
 *  @returns Other error codes as defined for the REGISTER_ME() macro function.
83
 */
83
 */
84
int module_start( async_client_conn_t client_connection );
84
int module_start( async_client_conn_t client_connection );
Line 92... Line 92...
92
int     read_configuration( void );
92
int     read_configuration( void );
93
 
93
 
94
/** Starts the network interface according to its configuration.
94
/** Starts the network interface according to its configuration.
95
 *  Registers the network interface with the subsystem modules.
95
 *  Registers the network interface with the subsystem modules.
96
 *  Starts the needed subsystem modules.
96
 *  Starts the needed subsystem modules.
97
 *  @param netif The network interface specific data.
97
 *  @param[in] netif The network interface specific data.
98
 *  @returns EOK on success.
98
 *  @returns EOK on success.
99
 *  @returns EINVAL if there are some settings missing.
99
 *  @returns EINVAL if there are some settings missing.
100
 *  @returns ENOENT if the internet protocol module is not known.
100
 *  @returns ENOENT if the internet protocol module is not known.
101
 *  @returns Other error codes as defined for the netif_probe_req() function.
101
 *  @returns Other error codes as defined for the netif_probe_req() function.
102
 *  @returns Other error codes as defined for the nil_device_req() function.
102
 *  @returns Other error codes as defined for the nil_device_req() function.
Line 120... Line 120...
120
 */
120
 */
121
device_id_t generate_new_device_id( void );
121
device_id_t generate_new_device_id( void );
122
 
122
 
123
/** Returns the configured values.
123
/** Returns the configured values.
124
 *  The network interface configuration is searched first.
124
 *  The network interface configuration is searched first.
125
 *  @param netif_conf The network interface configuration setting. Input parameter.
125
 *  @param[in] netif_conf The network interface configuration setting.
126
 *  @param configuration The found configured values. Output parameter.
126
 *  @param[out] configuration The found configured values.
127
 *  @param count The desired settings count. Input parameter.
127
 *  @param[in] count The desired settings count.
128
 *  @param data The found configuration settings data. Output parameter.
128
 *  @param[out] data The found configuration settings data.
129
 *  @returns EOK.
129
 *  @returns EOK.
130
 */
130
 */
131
int net_get_conf( measured_strings_ref netif_conf, measured_string_ref configuration, size_t count, char ** data );
131
int net_get_conf( measured_strings_ref netif_conf, measured_string_ref configuration, size_t count, char ** data );
132
 
132
 
133
/** Initializes the networking module.
133
/** Initializes the networking module.
134
 *  @param client_connection The client connection processing function. The module skeleton propagates its own one. Input parameter.
134
 *  @param[in] client_connection The client connection processing function. The module skeleton propagates its own one.
135
 *  @returns EOK on success.
135
 *  @returns EOK on success.
136
 *  @returns ENOMEM if there is not enough memory left.
136
 *  @returns ENOMEM if there is not enough memory left.
137
 */
137
 */
138
int net_initialize( async_client_conn_t client_connection );
138
int net_initialize( async_client_conn_t client_connection );
139
 
139
 
140
/** Reads the network interface specific configuration.
140
/** Reads the network interface specific configuration.
141
 *  @param name The network interface name. Input parameter.
141
 *  @param[in] name The network interface name.
142
 *  @param netif The network interface structure. Input/output parameter.
142
 *  @param[in,out] netif The network interface structure.
143
 *  @returns EOK on success.
143
 *  @returns EOK on success.
144
 *  @returns Other error codes as defined for the add_configuration() function.
144
 *  @returns Other error codes as defined for the add_configuration() function.
145
 */
145
 */
146
int read_netif_configuration( char * name, netif_ref netif );
146
int read_netif_configuration( char * name, netif_ref netif );
147
 
147