| 1 |
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> |
| 2 |
<html> |
| 3 |
<head> |
| 4 |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> |
| 5 |
<title>OobsIfaceEthernet</title> |
| 6 |
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2"> |
| 7 |
<link rel="home" href="index.html" title="Liboobs (System configuration management) Reference Manual"> |
| 8 |
<link rel="up" href="ch06.html" title="Network interfaces management"> |
| 9 |
<link rel="prev" href="liboobs-Oobs.html" title="OobsIface"> |
| 10 |
<link rel="next" href="OobsIfaceIRLan.html" title="OobsIfaceIRLan"> |
| 11 |
<meta name="generator" content="GTK-Doc V1.15 (XML mode)"> |
| 12 |
<link rel="stylesheet" href="style.css" type="text/css"> |
| 13 |
</head> |
| 14 |
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> |
| 15 |
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"> |
| 16 |
<tr valign="middle"> |
| 17 |
<td><a accesskey="p" href="liboobs-Oobs.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td> |
| 18 |
<td><a accesskey="u" href="ch06.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td> |
| 19 |
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td> |
| 20 |
<th width="100%" align="center">Liboobs (System configuration management) Reference Manual</th> |
| 21 |
<td><a accesskey="n" href="OobsIfaceIRLan.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td> |
| 22 |
</tr> |
| 23 |
<tr><td colspan="5" class="shortcuts"> |
| 24 |
<a href="#OobsIfaceEthernet.synopsis" class="shortcut">Top</a> |
| 25 |
| |
| 26 |
<a href="#OobsIfaceEthernet.description" class="shortcut">Description</a> |
| 27 |
| |
| 28 |
<a href="#OobsIfaceEthernet.object-hierarchy" class="shortcut">Object Hierarchy</a> |
| 29 |
| |
| 30 |
<a href="#OobsIfaceEthernet.properties" class="shortcut">Properties</a> |
| 31 |
</td></tr> |
| 32 |
</table> |
| 33 |
<div class="refentry" title="OobsIfaceEthernet"> |
| 34 |
<a name="OobsIfaceEthernet"></a><div class="titlepage"></div> |
| 35 |
<div class="refnamediv"><table width="100%"><tr> |
| 36 |
<td valign="top"> |
| 37 |
<h2><span class="refentrytitle"><a name="OobsIfaceEthernet.top_of_page"></a>OobsIfaceEthernet</span></h2> |
| 38 |
<p>OobsIfaceEthernet — Object that represents an individual Ethernet interface</p> |
| 39 |
</td> |
| 40 |
<td valign="top" align="right"></td> |
| 41 |
</tr></table></div> |
| 42 |
<div class="refsynopsisdiv" title="Synopsis"> |
| 43 |
<a name="OobsIfaceEthernet.synopsis"></a><h2>Synopsis</h2> |
| 44 |
<pre class="synopsis"> <a class="link" href="OobsIfaceEthernet.html#OobsIfaceEthernet-struct" title="OobsIfaceEthernet">OobsIfaceEthernet</a>; |
| 45 |
<a class="link" href="OobsIfaceEthernet.html#OobsIfaceEthernetClass" title="OobsIfaceEthernetClass">OobsIfaceEthernetClass</a>; |
| 46 |
const <span class="returnvalue">gchar</span>* <a class="link" href="OobsIfaceEthernet.html#oobs-iface-ethernet-get-ip-address" title="oobs_iface_ethernet_get_ip_address ()">oobs_iface_ethernet_get_ip_address</a> (<em class="parameter"><code><a class="link" href="OobsIfaceEthernet.html" title="OobsIfaceEthernet"><span class="type">OobsIfaceEthernet</span></a> *iface</code></em>); |
| 47 |
<span class="returnvalue">void</span> <a class="link" href="OobsIfaceEthernet.html#oobs-iface-ethernet-set-ip-address" title="oobs_iface_ethernet_set_ip_address ()">oobs_iface_ethernet_set_ip_address</a> (<em class="parameter"><code><a class="link" href="OobsIfaceEthernet.html" title="OobsIfaceEthernet"><span class="type">OobsIfaceEthernet</span></a> *iface</code></em>, |
| 48 |
<em class="parameter"><code>const <span class="type">gchar</span> *address</code></em>); |
| 49 |
const <span class="returnvalue">gchar</span>* <a class="link" href="OobsIfaceEthernet.html#oobs-iface-ethernet-get-network-mask" title="oobs_iface_ethernet_get_network_mask ()">oobs_iface_ethernet_get_network_mask</a> |
| 50 |
(<em class="parameter"><code><a class="link" href="OobsIfaceEthernet.html" title="OobsIfaceEthernet"><span class="type">OobsIfaceEthernet</span></a> *iface</code></em>); |
| 51 |
<span class="returnvalue">void</span> <a class="link" href="OobsIfaceEthernet.html#oobs-iface-ethernet-set-network-mask" title="oobs_iface_ethernet_set_network_mask ()">oobs_iface_ethernet_set_network_mask</a> |
| 52 |
(<em class="parameter"><code><a class="link" href="OobsIfaceEthernet.html" title="OobsIfaceEthernet"><span class="type">OobsIfaceEthernet</span></a> *iface</code></em>, |
| 53 |
<em class="parameter"><code>const <span class="type">gchar</span> *mask</code></em>); |
| 54 |
const <span class="returnvalue">gchar</span>* <a class="link" href="OobsIfaceEthernet.html#oobs-iface-ethernet-get-gateway-address" title="oobs_iface_ethernet_get_gateway_address ()">oobs_iface_ethernet_get_gateway_address</a> |
| 55 |
(<em class="parameter"><code><a class="link" href="OobsIfaceEthernet.html" title="OobsIfaceEthernet"><span class="type">OobsIfaceEthernet</span></a> *iface</code></em>); |
| 56 |
<span class="returnvalue">void</span> <a class="link" href="OobsIfaceEthernet.html#oobs-iface-ethernet-set-gateway-address" title="oobs_iface_ethernet_set_gateway_address ()">oobs_iface_ethernet_set_gateway_address</a> |
| 57 |
(<em class="parameter"><code><a class="link" href="OobsIfaceEthernet.html" title="OobsIfaceEthernet"><span class="type">OobsIfaceEthernet</span></a> *iface</code></em>, |
| 58 |
<em class="parameter"><code>const <span class="type">gchar</span> *address</code></em>); |
| 59 |
const <span class="returnvalue">gchar</span>* <a class="link" href="OobsIfaceEthernet.html#oobs-iface-ethernet-get-network-address" title="oobs_iface_ethernet_get_network_address ()">oobs_iface_ethernet_get_network_address</a> |
| 60 |
(<em class="parameter"><code><a class="link" href="OobsIfaceEthernet.html" title="OobsIfaceEthernet"><span class="type">OobsIfaceEthernet</span></a> *iface</code></em>); |
| 61 |
<span class="returnvalue">void</span> <a class="link" href="OobsIfaceEthernet.html#oobs-iface-ethernet-set-network-address" title="oobs_iface_ethernet_set_network_address ()">oobs_iface_ethernet_set_network_address</a> |
| 62 |
(<em class="parameter"><code><a class="link" href="OobsIfaceEthernet.html" title="OobsIfaceEthernet"><span class="type">OobsIfaceEthernet</span></a> *iface</code></em>, |
| 63 |
<em class="parameter"><code>const <span class="type">gchar</span> *address</code></em>); |
| 64 |
const <span class="returnvalue">gchar</span>* <a class="link" href="OobsIfaceEthernet.html#oobs-iface-ethernet-get-broadcast-address" title="oobs_iface_ethernet_get_broadcast_address ()">oobs_iface_ethernet_get_broadcast_address</a> |
| 65 |
(<em class="parameter"><code><a class="link" href="OobsIfaceEthernet.html" title="OobsIfaceEthernet"><span class="type">OobsIfaceEthernet</span></a> *iface</code></em>); |
| 66 |
<span class="returnvalue">void</span> <a class="link" href="OobsIfaceEthernet.html#oobs-iface-ethernet-set-broadcast-address" title="oobs_iface_ethernet_set_broadcast_address ()">oobs_iface_ethernet_set_broadcast_address</a> |
| 67 |
(<em class="parameter"><code><a class="link" href="OobsIfaceEthernet.html" title="OobsIfaceEthernet"><span class="type">OobsIfaceEthernet</span></a> *iface</code></em>, |
| 68 |
<em class="parameter"><code>const <span class="type">gchar</span> *address</code></em>); |
| 69 |
const <span class="returnvalue">gchar</span>* <a class="link" href="OobsIfaceEthernet.html#oobs-iface-ethernet-get-configuration-method" title="oobs_iface_ethernet_get_configuration_method ()">oobs_iface_ethernet_get_configuration_method</a> |
| 70 |
(<em class="parameter"><code><a class="link" href="OobsIfaceEthernet.html" title="OobsIfaceEthernet"><span class="type">OobsIfaceEthernet</span></a> *iface</code></em>); |
| 71 |
<span class="returnvalue">void</span> <a class="link" href="OobsIfaceEthernet.html#oobs-iface-ethernet-set-configuration-method" title="oobs_iface_ethernet_set_configuration_method ()">oobs_iface_ethernet_set_configuration_method</a> |
| 72 |
(<em class="parameter"><code><a class="link" href="OobsIfaceEthernet.html" title="OobsIfaceEthernet"><span class="type">OobsIfaceEthernet</span></a> *iface</code></em>, |
| 73 |
<em class="parameter"><code>const <span class="type">gchar</span> *method</code></em>); |
| 74 |
</pre> |
| 75 |
</div> |
| 76 |
<div class="refsect1" title="Object Hierarchy"> |
| 77 |
<a name="OobsIfaceEthernet.object-hierarchy"></a><h2>Object Hierarchy</h2> |
| 78 |
<pre class="synopsis"> |
| 79 |
GObject |
| 80 |
+----<a class="link" href="liboobs-Oobs.html#OobsIface">OobsIface</a> |
| 81 |
+----OobsIfaceEthernet |
| 82 |
+----<a class="link" href="OobsIfaceIRLan.html" title="OobsIfaceIRLan">OobsIfaceIRLan</a> |
| 83 |
+----<a class="link" href="OobsIfaceWireless.html" title="OobsIfaceWireless">OobsIfaceWireless</a> |
| 84 |
</pre> |
| 85 |
</div> |
| 86 |
<div class="refsect1" title="Properties"> |
| 87 |
<a name="OobsIfaceEthernet.properties"></a><h2>Properties</h2> |
| 88 |
<pre class="synopsis"> |
| 89 |
"<a class="link" href="OobsIfaceEthernet.html#OobsIfaceEthernet--broadcast-address" title='The "broadcast-address" property'>broadcast-address</a>" <span class="type">gchar</span>* : Read / Write |
| 90 |
"<a class="link" href="OobsIfaceEthernet.html#OobsIfaceEthernet--config-method" title='The "config-method" property'>config-method</a>" <span class="type">gchar</span>* : Read / Write |
| 91 |
"<a class="link" href="OobsIfaceEthernet.html#OobsIfaceEthernet--gateway-address" title='The "gateway-address" property'>gateway-address</a>" <span class="type">gchar</span>* : Read / Write |
| 92 |
"<a class="link" href="OobsIfaceEthernet.html#OobsIfaceEthernet--ip-address" title='The "ip-address" property'>ip-address</a>" <span class="type">gchar</span>* : Read / Write |
| 93 |
"<a class="link" href="OobsIfaceEthernet.html#OobsIfaceEthernet--ip-mask" title='The "ip-mask" property'>ip-mask</a>" <span class="type">gchar</span>* : Read / Write |
| 94 |
"<a class="link" href="OobsIfaceEthernet.html#OobsIfaceEthernet--network-address" title='The "network-address" property'>network-address</a>" <span class="type">gchar</span>* : Read / Write |
| 95 |
</pre> |
| 96 |
</div> |
| 97 |
<div class="refsect1" title="Description"> |
| 98 |
<a name="OobsIfaceEthernet.description"></a><h2>Description</h2> |
| 99 |
</div> |
| 100 |
<div class="refsect1" title="Details"> |
| 101 |
<a name="OobsIfaceEthernet.details"></a><h2>Details</h2> |
| 102 |
<div class="refsect2" title="OobsIfaceEthernet"> |
| 103 |
<a name="OobsIfaceEthernet-struct"></a><h3>OobsIfaceEthernet</h3> |
| 104 |
<pre class="programlisting">typedef struct _OobsIfaceEthernet OobsIfaceEthernet;</pre> |
| 105 |
<p> |
| 106 |
</p> |
| 107 |
</div> |
| 108 |
<hr> |
| 109 |
<div class="refsect2" title="OobsIfaceEthernetClass"> |
| 110 |
<a name="OobsIfaceEthernetClass"></a><h3>OobsIfaceEthernetClass</h3> |
| 111 |
<pre class="programlisting">typedef struct { |
| 112 |
OobsIfaceClass parent_class; |
| 113 |
|
| 114 |
void (*_oobs_padding1) (void); |
| 115 |
void (*_oobs_padding2) (void); |
| 116 |
} OobsIfaceEthernetClass; |
| 117 |
</pre> |
| 118 |
<p> |
| 119 |
</p> |
| 120 |
</div> |
| 121 |
<hr> |
| 122 |
<div class="refsect2" title="oobs_iface_ethernet_get_ip_address ()"> |
| 123 |
<a name="oobs-iface-ethernet-get-ip-address"></a><h3>oobs_iface_ethernet_get_ip_address ()</h3> |
| 124 |
<pre class="programlisting">const <span class="returnvalue">gchar</span>* oobs_iface_ethernet_get_ip_address (<em class="parameter"><code><a class="link" href="OobsIfaceEthernet.html" title="OobsIfaceEthernet"><span class="type">OobsIfaceEthernet</span></a> *iface</code></em>);</pre> |
| 125 |
<p> |
| 126 |
Returns the IP address that this interface uses. |
| 127 |
</p> |
| 128 |
<div class="variablelist"><table border="0"> |
| 129 |
<col align="left" valign="top"> |
| 130 |
<tbody> |
| 131 |
<tr> |
| 132 |
<td><p><span class="term"><em class="parameter"><code>iface</code></em> :</span></p></td> |
| 133 |
<td>An <a class="link" href="OobsIfaceEthernet.html" title="OobsIfaceEthernet"><span class="type">OobsIfaceEthernet</span></a>. |
| 134 |
</td> |
| 135 |
</tr> |
| 136 |
<tr> |
| 137 |
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> |
| 138 |
<td> A pointer to the IP address as a string. This |
| 139 |
string must not be freed, modified or stored. |
| 140 |
</td> |
| 141 |
</tr> |
| 142 |
</tbody> |
| 143 |
</table></div> |
| 144 |
</div> |
| 145 |
<hr> |
| 146 |
<div class="refsect2" title="oobs_iface_ethernet_set_ip_address ()"> |
| 147 |
<a name="oobs-iface-ethernet-set-ip-address"></a><h3>oobs_iface_ethernet_set_ip_address ()</h3> |
| 148 |
<pre class="programlisting"><span class="returnvalue">void</span> oobs_iface_ethernet_set_ip_address (<em class="parameter"><code><a class="link" href="OobsIfaceEthernet.html" title="OobsIfaceEthernet"><span class="type">OobsIfaceEthernet</span></a> *iface</code></em>, |
| 149 |
<em class="parameter"><code>const <span class="type">gchar</span> *address</code></em>);</pre> |
| 150 |
<p> |
| 151 |
Sets a new IP address for the interface, |
| 152 |
overwriting the previous one. |
| 153 |
</p> |
| 154 |
<div class="variablelist"><table border="0"> |
| 155 |
<col align="left" valign="top"> |
| 156 |
<tbody> |
| 157 |
<tr> |
| 158 |
<td><p><span class="term"><em class="parameter"><code>iface</code></em> :</span></p></td> |
| 159 |
<td>An <a class="link" href="OobsIfaceEthernet.html" title="OobsIfaceEthernet"><span class="type">OobsIfaceEthernet</span></a>. |
| 160 |
</td> |
| 161 |
</tr> |
| 162 |
<tr> |
| 163 |
<td><p><span class="term"><em class="parameter"><code>address</code></em> :</span></p></td> |
| 164 |
<td>a new IP address for the interface. |
| 165 |
</td> |
| 166 |
</tr> |
| 167 |
</tbody> |
| 168 |
</table></div> |
| 169 |
</div> |
| 170 |
<hr> |
| 171 |
<div class="refsect2" title="oobs_iface_ethernet_get_network_mask ()"> |
| 172 |
<a name="oobs-iface-ethernet-get-network-mask"></a><h3>oobs_iface_ethernet_get_network_mask ()</h3> |
| 173 |
<pre class="programlisting">const <span class="returnvalue">gchar</span>* oobs_iface_ethernet_get_network_mask |
| 174 |
(<em class="parameter"><code><a class="link" href="OobsIfaceEthernet.html" title="OobsIfaceEthernet"><span class="type">OobsIfaceEthernet</span></a> *iface</code></em>);</pre> |
| 175 |
<p> |
| 176 |
Returns the IP network mask that this interface uses. |
| 177 |
</p> |
| 178 |
<div class="variablelist"><table border="0"> |
| 179 |
<col align="left" valign="top"> |
| 180 |
<tbody> |
| 181 |
<tr> |
| 182 |
<td><p><span class="term"><em class="parameter"><code>iface</code></em> :</span></p></td> |
| 183 |
<td>An <a class="link" href="OobsIfaceEthernet.html" title="OobsIfaceEthernet"><span class="type">OobsIfaceEthernet</span></a>. |
| 184 |
</td> |
| 185 |
</tr> |
| 186 |
<tr> |
| 187 |
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> |
| 188 |
<td> A pointer to the network mask as a string. This |
| 189 |
string must not be freed, modified or stored. |
| 190 |
</td> |
| 191 |
</tr> |
| 192 |
</tbody> |
| 193 |
</table></div> |
| 194 |
</div> |
| 195 |
<hr> |
| 196 |
<div class="refsect2" title="oobs_iface_ethernet_set_network_mask ()"> |
| 197 |
<a name="oobs-iface-ethernet-set-network-mask"></a><h3>oobs_iface_ethernet_set_network_mask ()</h3> |
| 198 |
<pre class="programlisting"><span class="returnvalue">void</span> oobs_iface_ethernet_set_network_mask |
| 199 |
(<em class="parameter"><code><a class="link" href="OobsIfaceEthernet.html" title="OobsIfaceEthernet"><span class="type">OobsIfaceEthernet</span></a> *iface</code></em>, |
| 200 |
<em class="parameter"><code>const <span class="type">gchar</span> *mask</code></em>);</pre> |
| 201 |
<p> |
| 202 |
Sets a new IP network mask for the interface, |
| 203 |
overwriting the previous one. |
| 204 |
</p> |
| 205 |
<div class="variablelist"><table border="0"> |
| 206 |
<col align="left" valign="top"> |
| 207 |
<tbody> |
| 208 |
<tr> |
| 209 |
<td><p><span class="term"><em class="parameter"><code>iface</code></em> :</span></p></td> |
| 210 |
<td>An <a class="link" href="OobsIfaceEthernet.html" title="OobsIfaceEthernet"><span class="type">OobsIfaceEthernet</span></a>. |
| 211 |
</td> |
| 212 |
</tr> |
| 213 |
<tr> |
| 214 |
<td><p><span class="term"><em class="parameter"><code>mask</code></em> :</span></p></td> |
| 215 |
<td>a new IP network mask for the interface. |
| 216 |
</td> |
| 217 |
</tr> |
| 218 |
</tbody> |
| 219 |
</table></div> |
| 220 |
</div> |
| 221 |
<hr> |
| 222 |
<div class="refsect2" title="oobs_iface_ethernet_get_gateway_address ()"> |
| 223 |
<a name="oobs-iface-ethernet-get-gateway-address"></a><h3>oobs_iface_ethernet_get_gateway_address ()</h3> |
| 224 |
<pre class="programlisting">const <span class="returnvalue">gchar</span>* oobs_iface_ethernet_get_gateway_address |
| 225 |
(<em class="parameter"><code><a class="link" href="OobsIfaceEthernet.html" title="OobsIfaceEthernet"><span class="type">OobsIfaceEthernet</span></a> *iface</code></em>);</pre> |
| 226 |
<p> |
| 227 |
Returns the gateway IP address that this interface uses. |
| 228 |
</p> |
| 229 |
<div class="variablelist"><table border="0"> |
| 230 |
<col align="left" valign="top"> |
| 231 |
<tbody> |
| 232 |
<tr> |
| 233 |
<td><p><span class="term"><em class="parameter"><code>iface</code></em> :</span></p></td> |
| 234 |
<td>An <a class="link" href="OobsIfaceEthernet.html" title="OobsIfaceEthernet"><span class="type">OobsIfaceEthernet</span></a>. |
| 235 |
</td> |
| 236 |
</tr> |
| 237 |
<tr> |
| 238 |
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> |
| 239 |
<td> A pointer to the gateway address as a string. This |
| 240 |
string must not be freed, modified or stored. |
| 241 |
</td> |
| 242 |
</tr> |
| 243 |
</tbody> |
| 244 |
</table></div> |
| 245 |
</div> |
| 246 |
<hr> |
| 247 |
<div class="refsect2" title="oobs_iface_ethernet_set_gateway_address ()"> |
| 248 |
<a name="oobs-iface-ethernet-set-gateway-address"></a><h3>oobs_iface_ethernet_set_gateway_address ()</h3> |
| 249 |
<pre class="programlisting"><span class="returnvalue">void</span> oobs_iface_ethernet_set_gateway_address |
| 250 |
(<em class="parameter"><code><a class="link" href="OobsIfaceEthernet.html" title="OobsIfaceEthernet"><span class="type">OobsIfaceEthernet</span></a> *iface</code></em>, |
| 251 |
<em class="parameter"><code>const <span class="type">gchar</span> *address</code></em>);</pre> |
| 252 |
<p> |
| 253 |
Sets a new gateway IP address for the interface, |
| 254 |
overwriting the previous one. |
| 255 |
</p> |
| 256 |
<div class="variablelist"><table border="0"> |
| 257 |
<col align="left" valign="top"> |
| 258 |
<tbody> |
| 259 |
<tr> |
| 260 |
<td><p><span class="term"><em class="parameter"><code>iface</code></em> :</span></p></td> |
| 261 |
<td>An <a class="link" href="OobsIfaceEthernet.html" title="OobsIfaceEthernet"><span class="type">OobsIfaceEthernet</span></a>. |
| 262 |
</td> |
| 263 |
</tr> |
| 264 |
<tr> |
| 265 |
<td><p><span class="term"><em class="parameter"><code>address</code></em> :</span></p></td> |
| 266 |
<td>a new gateway IP address for the interface. |
| 267 |
</td> |
| 268 |
</tr> |
| 269 |
</tbody> |
| 270 |
</table></div> |
| 271 |
</div> |
| 272 |
<hr> |
| 273 |
<div class="refsect2" title="oobs_iface_ethernet_get_network_address ()"> |
| 274 |
<a name="oobs-iface-ethernet-get-network-address"></a><h3>oobs_iface_ethernet_get_network_address ()</h3> |
| 275 |
<pre class="programlisting">const <span class="returnvalue">gchar</span>* oobs_iface_ethernet_get_network_address |
| 276 |
(<em class="parameter"><code><a class="link" href="OobsIfaceEthernet.html" title="OobsIfaceEthernet"><span class="type">OobsIfaceEthernet</span></a> *iface</code></em>);</pre> |
| 277 |
<p> |
| 278 |
Returns the network address for this interface. |
| 279 |
</p> |
| 280 |
<div class="variablelist"><table border="0"> |
| 281 |
<col align="left" valign="top"> |
| 282 |
<tbody> |
| 283 |
<tr> |
| 284 |
<td><p><span class="term"><em class="parameter"><code>iface</code></em> :</span></p></td> |
| 285 |
<td>An <a class="link" href="OobsIfaceEthernet.html" title="OobsIfaceEthernet"><span class="type">OobsIfaceEthernet</span></a>. |
| 286 |
</td> |
| 287 |
</tr> |
| 288 |
<tr> |
| 289 |
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> |
| 290 |
<td> A pointer to the network address as a string. This |
| 291 |
string must not be freed, modified or stored. |
| 292 |
</td> |
| 293 |
</tr> |
| 294 |
</tbody> |
| 295 |
</table></div> |
| 296 |
</div> |
| 297 |
<hr> |
| 298 |
<div class="refsect2" title="oobs_iface_ethernet_set_network_address ()"> |
| 299 |
<a name="oobs-iface-ethernet-set-network-address"></a><h3>oobs_iface_ethernet_set_network_address ()</h3> |
| 300 |
<pre class="programlisting"><span class="returnvalue">void</span> oobs_iface_ethernet_set_network_address |
| 301 |
(<em class="parameter"><code><a class="link" href="OobsIfaceEthernet.html" title="OobsIfaceEthernet"><span class="type">OobsIfaceEthernet</span></a> *iface</code></em>, |
| 302 |
<em class="parameter"><code>const <span class="type">gchar</span> *address</code></em>);</pre> |
| 303 |
<p> |
| 304 |
Sets a new network address for the interface, |
| 305 |
overwriting the previous one. |
| 306 |
</p> |
| 307 |
<div class="variablelist"><table border="0"> |
| 308 |
<col align="left" valign="top"> |
| 309 |
<tbody> |
| 310 |
<tr> |
| 311 |
<td><p><span class="term"><em class="parameter"><code>iface</code></em> :</span></p></td> |
| 312 |
<td>An <a class="link" href="OobsIfaceEthernet.html" title="OobsIfaceEthernet"><span class="type">OobsIfaceEthernet</span></a>. |
| 313 |
</td> |
| 314 |
</tr> |
| 315 |
<tr> |
| 316 |
<td><p><span class="term"><em class="parameter"><code>address</code></em> :</span></p></td> |
| 317 |
<td>a new network address for the interface. |
| 318 |
</td> |
| 319 |
</tr> |
| 320 |
</tbody> |
| 321 |
</table></div> |
| 322 |
</div> |
| 323 |
<hr> |
| 324 |
<div class="refsect2" title="oobs_iface_ethernet_get_broadcast_address ()"> |
| 325 |
<a name="oobs-iface-ethernet-get-broadcast-address"></a><h3>oobs_iface_ethernet_get_broadcast_address ()</h3> |
| 326 |
<pre class="programlisting">const <span class="returnvalue">gchar</span>* oobs_iface_ethernet_get_broadcast_address |
| 327 |
(<em class="parameter"><code><a class="link" href="OobsIfaceEthernet.html" title="OobsIfaceEthernet"><span class="type">OobsIfaceEthernet</span></a> *iface</code></em>);</pre> |
| 328 |
<p> |
| 329 |
Returns the broadcast address for this interface. |
| 330 |
</p> |
| 331 |
<div class="variablelist"><table border="0"> |
| 332 |
<col align="left" valign="top"> |
| 333 |
<tbody> |
| 334 |
<tr> |
| 335 |
<td><p><span class="term"><em class="parameter"><code>iface</code></em> :</span></p></td> |
| 336 |
<td>An <a class="link" href="OobsIfaceEthernet.html" title="OobsIfaceEthernet"><span class="type">OobsIfaceEthernet</span></a>. |
| 337 |
</td> |
| 338 |
</tr> |
| 339 |
<tr> |
| 340 |
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> |
| 341 |
<td> A pointer to the broadcast address as a string. This |
| 342 |
string must not be freed, modified or stored. |
| 343 |
</td> |
| 344 |
</tr> |
| 345 |
</tbody> |
| 346 |
</table></div> |
| 347 |
</div> |
| 348 |
<hr> |
| 349 |
<div class="refsect2" title="oobs_iface_ethernet_set_broadcast_address ()"> |
| 350 |
<a name="oobs-iface-ethernet-set-broadcast-address"></a><h3>oobs_iface_ethernet_set_broadcast_address ()</h3> |
| 351 |
<pre class="programlisting"><span class="returnvalue">void</span> oobs_iface_ethernet_set_broadcast_address |
| 352 |
(<em class="parameter"><code><a class="link" href="OobsIfaceEthernet.html" title="OobsIfaceEthernet"><span class="type">OobsIfaceEthernet</span></a> *iface</code></em>, |
| 353 |
<em class="parameter"><code>const <span class="type">gchar</span> *address</code></em>);</pre> |
| 354 |
<p> |
| 355 |
Sets a new broadcast address for the interface, |
| 356 |
overwriting the previous one. |
| 357 |
</p> |
| 358 |
<div class="variablelist"><table border="0"> |
| 359 |
<col align="left" valign="top"> |
| 360 |
<tbody> |
| 361 |
<tr> |
| 362 |
<td><p><span class="term"><em class="parameter"><code>iface</code></em> :</span></p></td> |
| 363 |
<td>An <a class="link" href="OobsIfaceEthernet.html" title="OobsIfaceEthernet"><span class="type">OobsIfaceEthernet</span></a>. |
| 364 |
</td> |
| 365 |
</tr> |
| 366 |
<tr> |
| 367 |
<td><p><span class="term"><em class="parameter"><code>address</code></em> :</span></p></td> |
| 368 |
<td>a new broadcast address for the interface. |
| 369 |
</td> |
| 370 |
</tr> |
| 371 |
</tbody> |
| 372 |
</table></div> |
| 373 |
</div> |
| 374 |
<hr> |
| 375 |
<div class="refsect2" title="oobs_iface_ethernet_get_configuration_method ()"> |
| 376 |
<a name="oobs-iface-ethernet-get-configuration-method"></a><h3>oobs_iface_ethernet_get_configuration_method ()</h3> |
| 377 |
<pre class="programlisting">const <span class="returnvalue">gchar</span>* oobs_iface_ethernet_get_configuration_method |
| 378 |
(<em class="parameter"><code><a class="link" href="OobsIfaceEthernet.html" title="OobsIfaceEthernet"><span class="type">OobsIfaceEthernet</span></a> *iface</code></em>);</pre> |
| 379 |
<p> |
| 380 |
Returns the configuration method for the interface. |
| 381 |
</p> |
| 382 |
<div class="variablelist"><table border="0"> |
| 383 |
<col align="left" valign="top"> |
| 384 |
<tbody> |
| 385 |
<tr> |
| 386 |
<td><p><span class="term"><em class="parameter"><code>iface</code></em> :</span></p></td> |
| 387 |
<td>An <a class="link" href="OobsIfaceEthernet.html" title="OobsIfaceEthernet"><span class="type">OobsIfaceEthernet</span></a>. |
| 388 |
</td> |
| 389 |
</tr> |
| 390 |
<tr> |
| 391 |
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> |
| 392 |
<td> The configuration method that the interface uses. |
| 393 |
This value must not be modified nor freed. |
| 394 |
</td> |
| 395 |
</tr> |
| 396 |
</tbody> |
| 397 |
</table></div> |
| 398 |
</div> |
| 399 |
<hr> |
| 400 |
<div class="refsect2" title="oobs_iface_ethernet_set_configuration_method ()"> |
| 401 |
<a name="oobs-iface-ethernet-set-configuration-method"></a><h3>oobs_iface_ethernet_set_configuration_method ()</h3> |
| 402 |
<pre class="programlisting"><span class="returnvalue">void</span> oobs_iface_ethernet_set_configuration_method |
| 403 |
(<em class="parameter"><code><a class="link" href="OobsIfaceEthernet.html" title="OobsIfaceEthernet"><span class="type">OobsIfaceEthernet</span></a> *iface</code></em>, |
| 404 |
<em class="parameter"><code>const <span class="type">gchar</span> *method</code></em>);</pre> |
| 405 |
<p> |
| 406 |
Sets the configuration method that the interface will use. The valid methods are |
| 407 |
provided by <a class="link" href="OobsIfacesConfig.html#oobs-ifaces-config-get-available-configuration-methods" title="oobs_ifaces_config_get_available_configuration_methods ()"><code class="function">oobs_ifaces_config_get_available_configuration_methods()</code></a>. |
| 408 |
</p> |
| 409 |
<div class="variablelist"><table border="0"> |
| 410 |
<col align="left" valign="top"> |
| 411 |
<tbody> |
| 412 |
<tr> |
| 413 |
<td><p><span class="term"><em class="parameter"><code>iface</code></em> :</span></p></td> |
| 414 |
<td>An <a class="link" href="OobsIfaceEthernet.html" title="OobsIfaceEthernet"><span class="type">OobsIfaceEthernet</span></a>. |
| 415 |
</td> |
| 416 |
</tr> |
| 417 |
<tr> |
| 418 |
<td><p><span class="term"><em class="parameter"><code>method</code></em> :</span></p></td> |
| 419 |
<td>A new configuration method for the interface, or <code class="literal">NULL</code>. |
| 420 |
</td> |
| 421 |
</tr> |
| 422 |
</tbody> |
| 423 |
</table></div> |
| 424 |
</div> |
| 425 |
</div> |
| 426 |
<div class="refsect1" title="Property Details"> |
| 427 |
<a name="OobsIfaceEthernet.property-details"></a><h2>Property Details</h2> |
| 428 |
<div class="refsect2" title='The "broadcast-address" property'> |
| 429 |
<a name="OobsIfaceEthernet--broadcast-address"></a><h3>The <code class="literal">"broadcast-address"</code> property</h3> |
| 430 |
<pre class="programlisting"> "broadcast-address" <span class="type">gchar</span>* : Read / Write</pre> |
| 431 |
<p>Network broadcast for the iface.</p> |
| 432 |
<p>Default value: NULL</p> |
| 433 |
</div> |
| 434 |
<hr> |
| 435 |
<div class="refsect2" title='The "config-method" property'> |
| 436 |
<a name="OobsIfaceEthernet--config-method"></a><h3>The <code class="literal">"config-method"</code> property</h3> |
| 437 |
<pre class="programlisting"> "config-method" <span class="type">gchar</span>* : Read / Write</pre> |
| 438 |
<p>Network configuration method for the iface.</p> |
| 439 |
<p>Default value: NULL</p> |
| 440 |
</div> |
| 441 |
<hr> |
| 442 |
<div class="refsect2" title='The "gateway-address" property'> |
| 443 |
<a name="OobsIfaceEthernet--gateway-address"></a><h3>The <code class="literal">"gateway-address"</code> property</h3> |
| 444 |
<pre class="programlisting"> "gateway-address" <span class="type">gchar</span>* : Read / Write</pre> |
| 445 |
<p>Gateway address for the iface.</p> |
| 446 |
<p>Default value: NULL</p> |
| 447 |
</div> |
| 448 |
<hr> |
| 449 |
<div class="refsect2" title='The "ip-address" property'> |
| 450 |
<a name="OobsIfaceEthernet--ip-address"></a><h3>The <code class="literal">"ip-address"</code> property</h3> |
| 451 |
<pre class="programlisting"> "ip-address" <span class="type">gchar</span>* : Read / Write</pre> |
| 452 |
<p>Address for the iface.</p> |
| 453 |
<p>Default value: NULL</p> |
| 454 |
</div> |
| 455 |
<hr> |
| 456 |
<div class="refsect2" title='The "ip-mask" property'> |
| 457 |
<a name="OobsIfaceEthernet--ip-mask"></a><h3>The <code class="literal">"ip-mask"</code> property</h3> |
| 458 |
<pre class="programlisting"> "ip-mask" <span class="type">gchar</span>* : Read / Write</pre> |
| 459 |
<p>Netmask for the iface.</p> |
| 460 |
<p>Default value: NULL</p> |
| 461 |
</div> |
| 462 |
<hr> |
| 463 |
<div class="refsect2" title='The "network-address" property'> |
| 464 |
<a name="OobsIfaceEthernet--network-address"></a><h3>The <code class="literal">"network-address"</code> property</h3> |
| 465 |
<pre class="programlisting"> "network-address" <span class="type">gchar</span>* : Read / Write</pre> |
| 466 |
<p>Network address for the iface.</p> |
| 467 |
<p>Default value: NULL</p> |
| 468 |
</div> |
| 469 |
</div> |
| 470 |
<div class="refsect1" title="See Also"> |
| 471 |
<a name="OobsIfaceEthernet.see-also"></a><h2>See Also</h2> |
| 472 |
<a class="link" href="liboobs-Oobs.html#OobsIface"><span class="type">OobsIface</span></a>, <a class="link" href="OobsIfacesConfig.html" title="OobsIfacesConfig"><span class="type">OobsIfacesConfig</span></a>, <a class="link" href="OobsIfaceIRLan.html" title="OobsIfaceIRLan"><span class="type">OobsIfaceIRLan</span></a>, |
| 473 |
<a class="link" href="OobsIfacePlip.html" title="OobsIfacePlip"><span class="type">OobsIfacePlip</span></a>, <a class="link" href="OobsIfacePPP.html" title="OobsIfacePPP"><span class="type">OobsIfacePPP</span></a>, <a class="link" href="OobsIfaceWireless.html" title="OobsIfaceWireless"><span class="type">OobsIfaceWireless</span></a> |
| 474 |
</div> |
| 475 |
</div> |
| 476 |
<div class="footer"> |
| 477 |
<hr> |
| 478 |
Generated by GTK-Doc V1.15</div> |
| 479 |
</body> |
| 480 |
</html> |