| Liboobs (System configuration management) Reference Manual | ||||
|---|---|---|---|---|
OobsIfaceEthernet;
const gchar* oobs_iface_ethernet_get_ip_address (OobsIfaceEthernet *iface);
void oobs_iface_ethernet_set_ip_address (OobsIfaceEthernet *iface,
const gchar *address);
const gchar* oobs_iface_ethernet_get_network_mask
(OobsIfaceEthernet *iface);
void oobs_iface_ethernet_set_network_mask
(OobsIfaceEthernet *iface,
const gchar *mask);
const gchar* oobs_iface_ethernet_get_gateway_address
(OobsIfaceEthernet *iface);
void oobs_iface_ethernet_set_gateway_address
(OobsIfaceEthernet *iface,
const gchar *address);
const gchar* oobs_iface_ethernet_get_network_address
(OobsIfaceEthernet *iface);
void oobs_iface_ethernet_set_network_address
(OobsIfaceEthernet *iface,
const gchar *address);
const gchar* oobs_iface_ethernet_get_broadcast_address
(OobsIfaceEthernet *iface);
void oobs_iface_ethernet_set_broadcast_address
(OobsIfaceEthernet *iface,
const gchar *address);
const gchar* oobs_iface_ethernet_get_configuration_method
(OobsIfaceEthernet *iface);
void oobs_iface_ethernet_set_configuration_method
(OobsIfaceEthernet *iface,
const gchar *method);
const gchar* oobs_iface_ethernet_get_ip_address (OobsIfaceEthernet *iface);
Returns the IP address that this interface uses.
iface : |
An OobsIfaceEthernet. |
| Returns : | A pointer to the IP address as a string. This string must not be freed, modified or stored. |
void oobs_iface_ethernet_set_ip_address (OobsIfaceEthernet *iface, const gchar *address);
Sets a new IP address for the interface, overwriting the previous one.
iface : |
An OobsIfaceEthernet. |
address : |
a new IP address for the interface. |
const gchar* oobs_iface_ethernet_get_network_mask
(OobsIfaceEthernet *iface);
Returns the IP network mask that this interface uses.
iface : |
An OobsIfaceEthernet. |
| Returns : | A pointer to the network mask as a string. This string must not be freed, modified or stored. |
void oobs_iface_ethernet_set_network_mask
(OobsIfaceEthernet *iface,
const gchar *mask);
Sets a new IP network mask for the interface, overwriting the previous one.
iface : |
An OobsIfaceEthernet. |
mask : |
a new IP network mask for the interface. |
const gchar* oobs_iface_ethernet_get_gateway_address
(OobsIfaceEthernet *iface);
Returns the gateway IP address that this interface uses.
iface : |
An OobsIfaceEthernet. |
| Returns : | A pointer to the gateway address as a string. This string must not be freed, modified or stored. |
void oobs_iface_ethernet_set_gateway_address
(OobsIfaceEthernet *iface,
const gchar *address);
Sets a new gateway IP address for the interface, overwriting the previous one.
iface : |
An OobsIfaceEthernet. |
address : |
a new gateway IP address for the interface. |
const gchar* oobs_iface_ethernet_get_network_address
(OobsIfaceEthernet *iface);
Returns the network address for this interface.
iface : |
An OobsIfaceEthernet. |
| Returns : | A pointer to the network address as a string. This string must not be freed, modified or stored. |
void oobs_iface_ethernet_set_network_address
(OobsIfaceEthernet *iface,
const gchar *address);
Sets a new network address for the interface, overwriting the previous one.
iface : |
An OobsIfaceEthernet. |
address : |
a new network address for the interface. |
const gchar* oobs_iface_ethernet_get_broadcast_address
(OobsIfaceEthernet *iface);
Returns the broadcast address for this interface.
iface : |
An OobsIfaceEthernet. |
| Returns : | A pointer to the broadcast address as a string. This string must not be freed, modified or stored. |
void oobs_iface_ethernet_set_broadcast_address
(OobsIfaceEthernet *iface,
const gchar *address);
Sets a new broadcast address for the interface, overwriting the previous one.
iface : |
An OobsIfaceEthernet. |
address : |
a new broadcast address for the interface. |
const gchar* oobs_iface_ethernet_get_configuration_method
(OobsIfaceEthernet *iface);
Returns the configuration method for the interface.
iface : |
An OobsIfaceEthernet. |
| Returns : | The configuration method that the interface uses. This value must not be modified nor freed. |
void oobs_iface_ethernet_set_configuration_method
(OobsIfaceEthernet *iface,
const gchar *method);
Sets the configuration method that the interface will use. The valid methods are
provided by oobs_ifaces_config_get_available_configuration_methods().
iface : |
An OobsIfaceEthernet. |
method : |
A new configuration method for the interface, or NULL.
|