usb_moded 0.86.0+mer64
usb_moded-network.h File Reference

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)

Detailed Description

Copyright (c) 2011 Nokia Corporation. All rights reserved. Copyright (c) 2013 - 2020 Jolla Ltd. Copyright (c) 2020 Open Mobile Platform LLC.

Author
Philippe De Swert phili.nosp@m.ppe..nosp@m.de-sw.nosp@m.ert@.nosp@m.nokia.nosp@m..com
Philippe De Swert phili.nosp@m.ppe..nosp@m.deswe.nosp@m.rt@j.nosp@m.ollam.nosp@m.obil.nosp@m.e.com
Slava Monich slava.nosp@m..mon.nosp@m.ich@j.nosp@m.olla.nosp@m..com
Simo Piiroinen simo..nosp@m.piir.nosp@m.oinen.nosp@m.@jol.nosp@m.lamob.nosp@m.ile..nosp@m.com

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.

Function Documentation

◆ network_down()

void network_down ( const modedata_t * data)

Deactivate the network interface

Parameters
dataDynamic mode data (not used)

Definition at line 1245 of file usb_moded-network.c.

◆ network_up()

int network_up ( const modedata_t * data)

Activate the network interface

Parameters
dataDynamic mode data (not used)
Returns
zero on success, non-zero on failure

Definition at line 1165 of file usb_moded-network.c.

◆ network_update()

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 1272 of file usb_moded-network.c.

◆ network_update_udhcpd_config()

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).

Parameters
dataDynamic mode data
Returns
zero on success, non-zero on failure

Definition at line 1110 of file usb_moded-network.c.