usb_moded
0.86.0+mer57
|
#include "usb_moded-dyn-config.h"
Go to the source code of this file.
Functions | |
int | network_update_udhcpd_config (const modedata_t *data) |
int | network_up (const modedata_t *data) |
void | network_down (const modedata_t *data) |
void | network_update (void) |
Copyright (c) 2011 Nokia Corporation. All rights reserved. Copyright (c) 2013 - 2020 Jolla Ltd. Copyright (c) 2020 Open Mobile Platform LLC.
This program is free software; you can redistribute it and/or modify it under the terms of the Lesser GNU General Public License version 2 as published by the Free Software Foundation.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the Lesser GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
usb-moded_network : (De)activates network depending on the network setting system.
Definition in file usb_moded-network.h.
void network_down | ( | const modedata_t * | data | ) |
Deactivate the network interface
data | Dynamic mode data (not used) |
Definition at line 1194 of file usb_moded-network.c.
int network_up | ( | const modedata_t * | data | ) |
Activate the network interface
data | Dynamic mode data (not used) |
Definition at line 1114 of file usb_moded-network.c.
void network_update | ( | void | ) |
Update the network interface with the new setting if connected.
Should be called when relevant settings have changed.
Definition at line 1221 of file usb_moded-network.c.
int network_update_udhcpd_config | ( | const modedata_t * | data | ) |
Update udhcpd.conf
Must be succesfully called before starting udhcpd to ensure /etc/udhcpd.conf points to valid data.
No cleanup required (the config file can be left behind).
data | Dynamic mode data |
Definition at line 1059 of file usb_moded-network.c.