diff options
Diffstat (limited to 'docs/libnm/html/NMSettingBridge.html')
| -rw-r--r-- | docs/libnm/html/NMSettingBridge.html | 978 |
1 files changed, 976 insertions, 2 deletions
diff --git a/docs/libnm/html/NMSettingBridge.html b/docs/libnm/html/NMSettingBridge.html index 8f374b6a..a92e1abe 100644 --- a/docs/libnm/html/NMSettingBridge.html +++ b/docs/libnm/html/NMSettingBridge.html @@ -120,6 +120,182 @@ <a class="link" href="NMSettingBridge.html#nm-setting-bridge-get-multicast-snooping" title="nm_setting_bridge_get_multicast_snooping ()">nm_setting_bridge_get_multicast_snooping</a> <span class="c_punctuation">()</span> </td> </tr> +<tr> +<td class="function_type"> +<a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> +</td> +<td class="function_name"> +<a class="link" href="NMSettingBridge.html#nm-setting-bridge-get-vlan-filtering" title="nm_setting_bridge_get_vlan_filtering ()">nm_setting_bridge_get_vlan_filtering</a> <span class="c_punctuation">()</span> +</td> +</tr> +<tr> +<td class="function_type"> +<a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#guint16"><span class="returnvalue">guint16</span></a> +</td> +<td class="function_name"> +<a class="link" href="NMSettingBridge.html#nm-setting-bridge-get-vlan-default-pvid" title="nm_setting_bridge_get_vlan_default_pvid ()">nm_setting_bridge_get_vlan_default_pvid</a> <span class="c_punctuation">()</span> +</td> +</tr> +<tr> +<td class="function_type"> +<span class="returnvalue">void</span> +</td> +<td class="function_name"> +<a class="link" href="NMSettingBridge.html#nm-setting-bridge-add-vlan" title="nm_setting_bridge_add_vlan ()">nm_setting_bridge_add_vlan</a> <span class="c_punctuation">()</span> +</td> +</tr> +<tr> +<td class="function_type"> +<a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#guint"><span class="returnvalue">guint</span></a> +</td> +<td class="function_name"> +<a class="link" href="NMSettingBridge.html#nm-setting-bridge-get-num-vlans" title="nm_setting_bridge_get_num_vlans ()">nm_setting_bridge_get_num_vlans</a> <span class="c_punctuation">()</span> +</td> +</tr> +<tr> +<td class="function_type"> +<a class="link" href="NMSettingBridge.html#NMBridgeVlan"><span class="returnvalue">NMBridgeVlan</span></a> * +</td> +<td class="function_name"> +<a class="link" href="NMSettingBridge.html#nm-setting-bridge-get-vlan" title="nm_setting_bridge_get_vlan ()">nm_setting_bridge_get_vlan</a> <span class="c_punctuation">()</span> +</td> +</tr> +<tr> +<td class="function_type"> +<span class="returnvalue">void</span> +</td> +<td class="function_name"> +<a class="link" href="NMSettingBridge.html#nm-setting-bridge-remove-vlan" title="nm_setting_bridge_remove_vlan ()">nm_setting_bridge_remove_vlan</a> <span class="c_punctuation">()</span> +</td> +</tr> +<tr> +<td class="function_type"> +<a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> +</td> +<td class="function_name"> +<a class="link" href="NMSettingBridge.html#nm-setting-bridge-remove-vlan-by-vid" title="nm_setting_bridge_remove_vlan_by_vid ()">nm_setting_bridge_remove_vlan_by_vid</a> <span class="c_punctuation">()</span> +</td> +</tr> +<tr> +<td class="function_type"> +<span class="returnvalue">void</span> +</td> +<td class="function_name"> +<a class="link" href="NMSettingBridge.html#nm-setting-bridge-clear-vlans" title="nm_setting_bridge_clear_vlans ()">nm_setting_bridge_clear_vlans</a> <span class="c_punctuation">()</span> +</td> +</tr> +<tr> +<td class="function_type"> +<a class="link" href="NMSettingBridge.html#NMBridgeVlan"><span class="returnvalue">NMBridgeVlan</span></a> * +</td> +<td class="function_name"> +<a class="link" href="NMSettingBridge.html#nm-bridge-vlan-new" title="nm_bridge_vlan_new ()">nm_bridge_vlan_new</a> <span class="c_punctuation">()</span> +</td> +</tr> +<tr> +<td class="function_type"> +<a class="link" href="NMSettingBridge.html#NMBridgeVlan"><span class="returnvalue">NMBridgeVlan</span></a> * +</td> +<td class="function_name"> +<a class="link" href="NMSettingBridge.html#nm-bridge-vlan-ref" title="nm_bridge_vlan_ref ()">nm_bridge_vlan_ref</a> <span class="c_punctuation">()</span> +</td> +</tr> +<tr> +<td class="function_type"> +<span class="returnvalue">void</span> +</td> +<td class="function_name"> +<a class="link" href="NMSettingBridge.html#nm-bridge-vlan-unref" title="nm_bridge_vlan_unref ()">nm_bridge_vlan_unref</a> <span class="c_punctuation">()</span> +</td> +</tr> +<tr> +<td class="function_type"> +<a class="link" href="NMSettingBridge.html#NMBridgeVlan"><span class="returnvalue">NMBridgeVlan</span></a> * +</td> +<td class="function_name"> +<a class="link" href="NMSettingBridge.html#nm-bridge-vlan-new-clone" title="nm_bridge_vlan_new_clone ()">nm_bridge_vlan_new_clone</a> <span class="c_punctuation">()</span> +</td> +</tr> +<tr> +<td class="function_type"> +<span class="returnvalue">int</span> +</td> +<td class="function_name"> +<a class="link" href="NMSettingBridge.html#nm-bridge-vlan-cmp" title="nm_bridge_vlan_cmp ()">nm_bridge_vlan_cmp</a> <span class="c_punctuation">()</span> +</td> +</tr> +<tr> +<td class="function_type"> +<span class="returnvalue">void</span> +</td> +<td class="function_name"> +<a class="link" href="NMSettingBridge.html#nm-bridge-vlan-seal" title="nm_bridge_vlan_seal ()">nm_bridge_vlan_seal</a> <span class="c_punctuation">()</span> +</td> +</tr> +<tr> +<td class="function_type"> +<a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> +</td> +<td class="function_name"> +<a class="link" href="NMSettingBridge.html#nm-bridge-vlan-is-sealed" title="nm_bridge_vlan_is_sealed ()">nm_bridge_vlan_is_sealed</a> <span class="c_punctuation">()</span> +</td> +</tr> +<tr> +<td class="function_type"> +<span class="returnvalue">void</span> +</td> +<td class="function_name"> +<a class="link" href="NMSettingBridge.html#nm-bridge-vlan-set-untagged" title="nm_bridge_vlan_set_untagged ()">nm_bridge_vlan_set_untagged</a> <span class="c_punctuation">()</span> +</td> +</tr> +<tr> +<td class="function_type"> +<span class="returnvalue">void</span> +</td> +<td class="function_name"> +<a class="link" href="NMSettingBridge.html#nm-bridge-vlan-set-pvid" title="nm_bridge_vlan_set_pvid ()">nm_bridge_vlan_set_pvid</a> <span class="c_punctuation">()</span> +</td> +</tr> +<tr> +<td class="function_type"> +<a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> +</td> +<td class="function_name"> +<a class="link" href="NMSettingBridge.html#nm-bridge-vlan-get-vid-range" title="nm_bridge_vlan_get_vid_range ()">nm_bridge_vlan_get_vid_range</a> <span class="c_punctuation">()</span> +</td> +</tr> +<tr> +<td class="function_type"> +<a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> +</td> +<td class="function_name"> +<a class="link" href="NMSettingBridge.html#nm-bridge-vlan-is-untagged" title="nm_bridge_vlan_is_untagged ()">nm_bridge_vlan_is_untagged</a> <span class="c_punctuation">()</span> +</td> +</tr> +<tr> +<td class="function_type"> +<a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> +</td> +<td class="function_name"> +<a class="link" href="NMSettingBridge.html#nm-bridge-vlan-is-pvid" title="nm_bridge_vlan_is_pvid ()">nm_bridge_vlan_is_pvid</a> <span class="c_punctuation">()</span> +</td> +</tr> +<tr> +<td class="function_type"> +<span class="returnvalue">char</span> * +</td> +<td class="function_name"> +<a class="link" href="NMSettingBridge.html#nm-bridge-vlan-to-str" title="nm_bridge_vlan_to_str ()">nm_bridge_vlan_to_str</a> <span class="c_punctuation">()</span> +</td> +</tr> +<tr> +<td class="function_type"> +<a class="link" href="NMSettingBridge.html#NMBridgeVlan"><span class="returnvalue">NMBridgeVlan</span></a> * +</td> +<td class="function_name"> +<a class="link" href="NMSettingBridge.html#nm-bridge-vlan-from-str" title="nm_bridge_vlan_from_str ()">nm_bridge_vlan_from_str</a> <span class="c_punctuation">()</span> +</td> +</tr> </tbody> </table></div> </div> @@ -178,10 +354,26 @@ <td class="property_name"><a class="link" href="NMSettingBridge.html#NMSettingBridge--stp" title="The “stp” property">stp</a></td> <td class="property_flags">Read / Write / Construct</td> </tr> +<tr> +<td class="property_type"><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a></td> +<td class="property_name"><a class="link" href="NMSettingBridge.html#NMSettingBridge--vlan-default-pvid" title="The “vlan-default-pvid” property">vlan-default-pvid</a></td> +<td class="property_flags">Read / Write / Construct</td> +</tr> +<tr> +<td class="property_type"><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a></td> +<td class="property_name"><a class="link" href="NMSettingBridge.html#NMSettingBridge--vlan-filtering" title="The “vlan-filtering” property">vlan-filtering</a></td> +<td class="property_flags">Read / Write / Construct</td> +</tr> +<tr> +<td class="property_type"> +<a href="https://developer.gnome.org/glib/unstable/glib-Pointer-Arrays.html#GPtrArray"><span class="type">GPtrArray</span></a> *</td> +<td class="property_name"><a class="link" href="NMSettingBridge.html#NMSettingBridge--vlans" title="The “vlans” property">vlans</a></td> +<td class="property_flags">Read / Write</td> +</tr> </tbody> </table></div> </div> -<div class="refsect1"> +<a name="NMBridgeVlan"></a><div class="refsect1"> <a name="NMSettingBridge.other"></a><h2>Types and Values</h2> <div class="informaltable"><table class="informaltable" width="100%" border="0"> <colgroup> @@ -230,6 +422,26 @@ <td class="function_name"><a class="link" href="NMSettingBridge.html#NM-SETTING-BRIDGE-MULTICAST-SNOOPING:CAPS" title="NM_SETTING_BRIDGE_MULTICAST_SNOOPING">NM_SETTING_BRIDGE_MULTICAST_SNOOPING</a></td> </tr> <tr> +<td class="define_keyword">#define</td> +<td class="function_name"><a class="link" href="NMSettingBridge.html#NM-SETTING-BRIDGE-VLAN-FILTERING:CAPS" title="NM_SETTING_BRIDGE_VLAN_FILTERING">NM_SETTING_BRIDGE_VLAN_FILTERING</a></td> +</tr> +<tr> +<td class="define_keyword">#define</td> +<td class="function_name"><a class="link" href="NMSettingBridge.html#NM-SETTING-BRIDGE-VLAN-DEFAULT-PVID:CAPS" title="NM_SETTING_BRIDGE_VLAN_DEFAULT_PVID">NM_SETTING_BRIDGE_VLAN_DEFAULT_PVID</a></td> +</tr> +<tr> +<td class="define_keyword">#define</td> +<td class="function_name"><a class="link" href="NMSettingBridge.html#NM-SETTING-BRIDGE-VLANS:CAPS" title="NM_SETTING_BRIDGE_VLANS">NM_SETTING_BRIDGE_VLANS</a></td> +</tr> +<tr> +<td class="define_keyword">#define</td> +<td class="function_name"><a class="link" href="NMSettingBridge.html#NM-BRIDGE-VLAN-VID-MIN:CAPS" title="NM_BRIDGE_VLAN_VID_MIN">NM_BRIDGE_VLAN_VID_MIN</a></td> +</tr> +<tr> +<td class="define_keyword">#define</td> +<td class="function_name"><a class="link" href="NMSettingBridge.html#NM-BRIDGE-VLAN-VID-MAX:CAPS" title="NM_BRIDGE_VLAN_VID_MAX">NM_BRIDGE_VLAN_VID_MAX</a></td> +</tr> +<tr> <td class="datatype_keyword"> </td> <td class="function_name"><a class="link" href="NMSettingBridge.html#NMSettingBridge-struct" title="NMSettingBridge">NMSettingBridge</a></td> </tr> @@ -238,7 +450,9 @@ </div> <div class="refsect1"> <a name="NMSettingBridge.object-hierarchy"></a><h2>Object Hierarchy</h2> -<pre class="screen"> <a href="https://developer.gnome.org/gobject/unstable/gobject-The-Base-Object-Type.html#GObject-struct">GObject</a> +<pre class="screen"> <a href="/usr/share/gtk-doc/html/gobject/gobject-Boxed-Types.html">GBoxed</a> + <span class="lineart">╰──</span> NMBridgeVlan + <a href="https://developer.gnome.org/gobject/unstable/gobject-The-Base-Object-Type.html#GObject-struct">GObject</a> <span class="lineart">╰──</span> <a class="link" href="NMSetting.html" title="NMSetting">NMSetting</a> <span class="lineart">╰──</span> NMSettingBridge </pre> @@ -490,6 +704,700 @@ nm_setting_bridge_get_multicast_snooping </div> <p class="since">Since: 1.2</p> </div> +<hr> +<div class="refsect2"> +<a name="nm-setting-bridge-get-vlan-filtering"></a><h3>nm_setting_bridge_get_vlan_filtering ()</h3> +<pre class="programlisting"><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> +nm_setting_bridge_get_vlan_filtering (<em class="parameter"><code><a class="link" href="NMSettingBridge.html" title="NMSettingBridge"><span class="type">NMSettingBridge</span></a> *setting</code></em>);</pre> +<div class="refsect3"> +<a name="nm-setting-bridge-get-vlan-filtering.parameters"></a><h4>Parameters</h4> +<div class="informaltable"><table class="informaltable" width="100%" border="0"> +<colgroup> +<col width="150px" class="parameters_name"> +<col class="parameters_description"> +<col width="200px" class="parameters_annotations"> +</colgroup> +<tbody><tr> +<td class="parameter_name"><p>setting</p></td> +<td class="parameter_description"><p>the <a class="link" href="NMSettingBridge.html" title="NMSettingBridge"><span class="type">NMSettingBridge</span></a></p></td> +<td class="parameter_annotations"> </td> +</tr></tbody> +</table></div> +</div> +<div class="refsect3"> +<a name="nm-setting-bridge-get-vlan-filtering.returns"></a><h4>Returns</h4> +<p> the <a class="link" href="NMSettingBridge.html#NMSettingBridge--vlan-filtering" title="The “vlan-filtering” property"><span class="type">“vlan-filtering”</span></a> property of the setting</p> +</div> +<p class="since">Since: 1.18</p> +</div> +<hr> +<div class="refsect2"> +<a name="nm-setting-bridge-get-vlan-default-pvid"></a><h3>nm_setting_bridge_get_vlan_default_pvid ()</h3> +<pre class="programlisting"><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#guint16"><span class="returnvalue">guint16</span></a> +nm_setting_bridge_get_vlan_default_pvid + (<em class="parameter"><code><a class="link" href="NMSettingBridge.html" title="NMSettingBridge"><span class="type">NMSettingBridge</span></a> *setting</code></em>);</pre> +<div class="refsect3"> +<a name="nm-setting-bridge-get-vlan-default-pvid.parameters"></a><h4>Parameters</h4> +<div class="informaltable"><table class="informaltable" width="100%" border="0"> +<colgroup> +<col width="150px" class="parameters_name"> +<col class="parameters_description"> +<col width="200px" class="parameters_annotations"> +</colgroup> +<tbody><tr> +<td class="parameter_name"><p>setting</p></td> +<td class="parameter_description"><p>the <a class="link" href="NMSettingBridge.html" title="NMSettingBridge"><span class="type">NMSettingBridge</span></a></p></td> +<td class="parameter_annotations"> </td> +</tr></tbody> +</table></div> +</div> +<div class="refsect3"> +<a name="nm-setting-bridge-get-vlan-default-pvid.returns"></a><h4>Returns</h4> +<p> the <a class="link" href="NMSettingBridge.html#NMSettingBridge--vlan-default-pvid" title="The “vlan-default-pvid” property"><span class="type">“vlan-default-pvid”</span></a> property of the setting</p> +</div> +<p class="since">Since: 1.18</p> +</div> +<hr> +<div class="refsect2"> +<a name="nm-setting-bridge-add-vlan"></a><h3>nm_setting_bridge_add_vlan ()</h3> +<pre class="programlisting"><span class="returnvalue">void</span> +nm_setting_bridge_add_vlan (<em class="parameter"><code><a class="link" href="NMSettingBridge.html" title="NMSettingBridge"><span class="type">NMSettingBridge</span></a> *setting</code></em>, + <em class="parameter"><code><a class="link" href="NMSettingBridge.html#NMBridgeVlan"><span class="type">NMBridgeVlan</span></a> *vlan</code></em>);</pre> +<p>Appends a new vlan and associated information to the setting. The +given vlan gets sealed and a reference to it is added.</p> +<div class="refsect3"> +<a name="nm-setting-bridge-add-vlan.parameters"></a><h4>Parameters</h4> +<div class="informaltable"><table class="informaltable" width="100%" border="0"> +<colgroup> +<col width="150px" class="parameters_name"> +<col class="parameters_description"> +<col width="200px" class="parameters_annotations"> +</colgroup> +<tbody> +<tr> +<td class="parameter_name"><p>setting</p></td> +<td class="parameter_description"><p>the <a class="link" href="NMSettingBridge.html" title="NMSettingBridge"><span class="type">NMSettingBridge</span></a></p></td> +<td class="parameter_annotations"> </td> +</tr> +<tr> +<td class="parameter_name"><p>vlan</p></td> +<td class="parameter_description"><p>the vlan to add</p></td> +<td class="parameter_annotations"> </td> +</tr> +</tbody> +</table></div> +</div> +<p class="since">Since: 1.18</p> +</div> +<hr> +<div class="refsect2"> +<a name="nm-setting-bridge-get-num-vlans"></a><h3>nm_setting_bridge_get_num_vlans ()</h3> +<pre class="programlisting"><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#guint"><span class="returnvalue">guint</span></a> +nm_setting_bridge_get_num_vlans (<em class="parameter"><code><a class="link" href="NMSettingBridge.html" title="NMSettingBridge"><span class="type">NMSettingBridge</span></a> *setting</code></em>);</pre> +<div class="refsect3"> +<a name="nm-setting-bridge-get-num-vlans.parameters"></a><h4>Parameters</h4> +<div class="informaltable"><table class="informaltable" width="100%" border="0"> +<colgroup> +<col width="150px" class="parameters_name"> +<col class="parameters_description"> +<col width="200px" class="parameters_annotations"> +</colgroup> +<tbody><tr> +<td class="parameter_name"><p>setting</p></td> +<td class="parameter_description"><p>the <a class="link" href="NMSettingBridge.html" title="NMSettingBridge"><span class="type">NMSettingBridge</span></a></p></td> +<td class="parameter_annotations"> </td> +</tr></tbody> +</table></div> +</div> +<div class="refsect3"> +<a name="nm-setting-bridge-get-num-vlans.returns"></a><h4>Returns</h4> +<p> the number of VLANs</p> +</div> +<p class="since">Since: 1.18</p> +</div> +<hr> +<div class="refsect2"> +<a name="nm-setting-bridge-get-vlan"></a><h3>nm_setting_bridge_get_vlan ()</h3> +<pre class="programlisting"><a class="link" href="NMSettingBridge.html#NMBridgeVlan"><span class="returnvalue">NMBridgeVlan</span></a> * +nm_setting_bridge_get_vlan (<em class="parameter"><code><a class="link" href="NMSettingBridge.html" title="NMSettingBridge"><span class="type">NMSettingBridge</span></a> *setting</code></em>, + <em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> idx</code></em>);</pre> +<div class="refsect3"> +<a name="nm-setting-bridge-get-vlan.parameters"></a><h4>Parameters</h4> +<div class="informaltable"><table class="informaltable" width="100%" border="0"> +<colgroup> +<col width="150px" class="parameters_name"> +<col class="parameters_description"> +<col width="200px" class="parameters_annotations"> +</colgroup> +<tbody> +<tr> +<td class="parameter_name"><p>setting</p></td> +<td class="parameter_description"><p>the <a class="link" href="NMSettingBridge.html" title="NMSettingBridge"><span class="type">NMSettingBridge</span></a></p></td> +<td class="parameter_annotations"> </td> +</tr> +<tr> +<td class="parameter_name"><p>idx</p></td> +<td class="parameter_description"><p>index number of the VLAN to return</p></td> +<td class="parameter_annotations"> </td> +</tr> +</tbody> +</table></div> +</div> +<div class="refsect3"> +<a name="nm-setting-bridge-get-vlan.returns"></a><h4>Returns</h4> +<p>the VLAN at index <em class="parameter"><code>idx</code></em> +. </p> +<p><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></p> +</div> +<p class="since">Since: 1.18</p> +</div> +<hr> +<div class="refsect2"> +<a name="nm-setting-bridge-remove-vlan"></a><h3>nm_setting_bridge_remove_vlan ()</h3> +<pre class="programlisting"><span class="returnvalue">void</span> +nm_setting_bridge_remove_vlan (<em class="parameter"><code><a class="link" href="NMSettingBridge.html" title="NMSettingBridge"><span class="type">NMSettingBridge</span></a> *setting</code></em>, + <em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> idx</code></em>);</pre> +<p>Removes the vlan at index <em class="parameter"><code>idx</code></em> +.</p> +<div class="refsect3"> +<a name="nm-setting-bridge-remove-vlan.parameters"></a><h4>Parameters</h4> +<div class="informaltable"><table class="informaltable" width="100%" border="0"> +<colgroup> +<col width="150px" class="parameters_name"> +<col class="parameters_description"> +<col width="200px" class="parameters_annotations"> +</colgroup> +<tbody> +<tr> +<td class="parameter_name"><p>setting</p></td> +<td class="parameter_description"><p>the <a class="link" href="NMSettingBridge.html" title="NMSettingBridge"><span class="type">NMSettingBridge</span></a></p></td> +<td class="parameter_annotations"> </td> +</tr> +<tr> +<td class="parameter_name"><p>idx</p></td> +<td class="parameter_description"><p>index number of the VLAN.</p></td> +<td class="parameter_annotations"> </td> +</tr> +</tbody> +</table></div> +</div> +<p class="since">Since: 1.18</p> +</div> +<hr> +<div class="refsect2"> +<a name="nm-setting-bridge-remove-vlan-by-vid"></a><h3>nm_setting_bridge_remove_vlan_by_vid ()</h3> +<pre class="programlisting"><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> +nm_setting_bridge_remove_vlan_by_vid (<em class="parameter"><code><a class="link" href="NMSettingBridge.html" title="NMSettingBridge"><span class="type">NMSettingBridge</span></a> *setting</code></em>, + <em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#guint16"><span class="type">guint16</span></a> vid_start</code></em>, + <em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#guint16"><span class="type">guint16</span></a> vid_end</code></em>);</pre> +<p>Remove the VLAN with range <em class="parameter"><code>vid_start</code></em> + to <em class="parameter"><code>vid_end</code></em> +. +If <em class="parameter"><code>vid_end</code></em> + is zero, it is assumed to be equal to <em class="parameter"><code>vid_start</code></em> + +and so the single-id VLAN with id <em class="parameter"><code>vid_start</code></em> + is removed.</p> +<div class="refsect3"> +<a name="nm-setting-bridge-remove-vlan-by-vid.parameters"></a><h4>Parameters</h4> +<div class="informaltable"><table class="informaltable" width="100%" border="0"> +<colgroup> +<col width="150px" class="parameters_name"> +<col class="parameters_description"> +<col width="200px" class="parameters_annotations"> +</colgroup> +<tbody> +<tr> +<td class="parameter_name"><p>setting</p></td> +<td class="parameter_description"><p>the <a class="link" href="NMSettingBridge.html" title="NMSettingBridge"><span class="type">NMSettingBridge</span></a></p></td> +<td class="parameter_annotations"> </td> +</tr> +<tr> +<td class="parameter_name"><p>vid_start</p></td> +<td class="parameter_description"><p>the vlan start index</p></td> +<td class="parameter_annotations"> </td> +</tr> +<tr> +<td class="parameter_name"><p>vid_end</p></td> +<td class="parameter_description"><p>the vlan end index</p></td> +<td class="parameter_annotations"> </td> +</tr> +</tbody> +</table></div> +</div> +<div class="refsect3"> +<a name="nm-setting-bridge-remove-vlan-by-vid.returns"></a><h4>Returns</h4> +<p> <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the vlan was found and removed; <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> otherwise</p> +</div> +<p class="since">Since: 1.18</p> +</div> +<hr> +<div class="refsect2"> +<a name="nm-setting-bridge-clear-vlans"></a><h3>nm_setting_bridge_clear_vlans ()</h3> +<pre class="programlisting"><span class="returnvalue">void</span> +nm_setting_bridge_clear_vlans (<em class="parameter"><code><a class="link" href="NMSettingBridge.html" title="NMSettingBridge"><span class="type">NMSettingBridge</span></a> *setting</code></em>);</pre> +<p>Removes all configured VLANs.</p> +<div class="refsect3"> +<a name="nm-setting-bridge-clear-vlans.parameters"></a><h4>Parameters</h4> +<div class="informaltable"><table class="informaltable" width="100%" border="0"> +<colgroup> +<col width="150px" class="parameters_name"> +<col class="parameters_description"> +<col width="200px" class="parameters_annotations"> +</colgroup> +<tbody><tr> +<td class="parameter_name"><p>setting</p></td> +<td class="parameter_description"><p>the <a class="link" href="NMSettingBridge.html" title="NMSettingBridge"><span class="type">NMSettingBridge</span></a></p></td> +<td class="parameter_annotations"> </td> +</tr></tbody> +</table></div> +</div> +<p class="since">Since: 1.18</p> +</div> +<hr> +<div class="refsect2"> +<a name="nm-bridge-vlan-new"></a><h3>nm_bridge_vlan_new ()</h3> +<pre class="programlisting"><a class="link" href="NMSettingBridge.html#NMBridgeVlan"><span class="returnvalue">NMBridgeVlan</span></a> * +nm_bridge_vlan_new (<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#guint16"><span class="type">guint16</span></a> vid_start</code></em>, + <em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#guint16"><span class="type">guint16</span></a> vid_end</code></em>);</pre> +<p>Creates a new <a class="link" href="NMSettingBridge.html#NMBridgeVlan"><span class="type">NMBridgeVlan</span></a> object for the given VLAN id range. +Setting <em class="parameter"><code>vid_end</code></em> + to 0 is equivalent to setting it to <em class="parameter"><code>vid_start</code></em> + +and creates a single-id VLAN.</p> +<div class="refsect3"> +<a name="nm-bridge-vlan-new.parameters"></a><h4>Parameters</h4> +<div class="informaltable"><table class="informaltable" width="100%" border="0"> +<colgroup> +<col width="150px" class="parameters_name"> +<col class="parameters_description"> +<col width="200px" class="parameters_annotations"> +</colgroup> +<tbody> +<tr> +<td class="parameter_name"><p>vid_start</p></td> +<td class="parameter_description"><p>the start VLAN id, must be between 1 and 4094.</p></td> +<td class="parameter_annotations"> </td> +</tr> +<tr> +<td class="parameter_name"><p>vid_end</p></td> +<td class="parameter_description"><p>the end VLAN id, must be 0 or between <em class="parameter"><code>vid_start</code></em> +and 4094.</p></td> +<td class="parameter_annotations"> </td> +</tr> +</tbody> +</table></div> +</div> +<div class="refsect3"> +<a name="nm-bridge-vlan-new.returns"></a><h4>Returns</h4> +<p>the new <a class="link" href="NMSettingBridge.html#NMBridgeVlan"><span class="type">NMBridgeVlan</span></a> object. </p> +<p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p> +</div> +<p class="since">Since: 1.18</p> +</div> +<hr> +<div class="refsect2"> +<a name="nm-bridge-vlan-ref"></a><h3>nm_bridge_vlan_ref ()</h3> +<pre class="programlisting"><a class="link" href="NMSettingBridge.html#NMBridgeVlan"><span class="returnvalue">NMBridgeVlan</span></a> * +nm_bridge_vlan_ref (<em class="parameter"><code><a class="link" href="NMSettingBridge.html#NMBridgeVlan"><span class="type">NMBridgeVlan</span></a> *vlan</code></em>);</pre> +<p>Increases the reference count of the object.</p> +<div class="refsect3"> +<a name="nm-bridge-vlan-ref.parameters"></a><h4>Parameters</h4> +<div class="informaltable"><table class="informaltable" width="100%" border="0"> +<colgroup> +<col width="150px" class="parameters_name"> +<col class="parameters_description"> +<col width="200px" class="parameters_annotations"> +</colgroup> +<tbody><tr> +<td class="parameter_name"><p>vlan</p></td> +<td class="parameter_description"><p>the <a class="link" href="NMSettingBridge.html#NMBridgeVlan"><span class="type">NMBridgeVlan</span></a></p></td> +<td class="parameter_annotations"> </td> +</tr></tbody> +</table></div> +</div> +<div class="refsect3"> +<a name="nm-bridge-vlan-ref.returns"></a><h4>Returns</h4> +<p> the input argument <em class="parameter"><code>vlan</code></em> +object.</p> +</div> +<p class="since">Since: 1.18</p> +</div> +<hr> +<div class="refsect2"> +<a name="nm-bridge-vlan-unref"></a><h3>nm_bridge_vlan_unref ()</h3> +<pre class="programlisting"><span class="returnvalue">void</span> +nm_bridge_vlan_unref (<em class="parameter"><code><a class="link" href="NMSettingBridge.html#NMBridgeVlan"><span class="type">NMBridgeVlan</span></a> *vlan</code></em>);</pre> +<p>Decreases the reference count of the object. If the reference count +reaches zero the object will be destroyed.</p> +<div class="refsect3"> +<a name="nm-bridge-vlan-unref.parameters"></a><h4>Parameters</h4> +<div class="informaltable"><table class="informaltable" width="100%" border="0"> +<colgroup> +<col width="150px" class="parameters_name"> +<col class="parameters_description"> +<col width="200px" class="parameters_annotations"> +</colgroup> +<tbody><tr> +<td class="parameter_name"><p>vlan</p></td> +<td class="parameter_description"><p>the <a class="link" href="NMSettingBridge.html#NMBridgeVlan"><span class="type">NMBridgeVlan</span></a></p></td> +<td class="parameter_annotations"> </td> +</tr></tbody> +</table></div> +</div> +<p class="since">Since: 1.18</p> +</div> +<hr> +<div class="refsect2"> +<a name="nm-bridge-vlan-new-clone"></a><h3>nm_bridge_vlan_new_clone ()</h3> +<pre class="programlisting"><a class="link" href="NMSettingBridge.html#NMBridgeVlan"><span class="returnvalue">NMBridgeVlan</span></a> * +nm_bridge_vlan_new_clone (<em class="parameter"><code>const <a class="link" href="NMSettingBridge.html#NMBridgeVlan"><span class="type">NMBridgeVlan</span></a> *vlan</code></em>);</pre> +<div class="refsect3"> +<a name="nm-bridge-vlan-new-clone.parameters"></a><h4>Parameters</h4> +<div class="informaltable"><table class="informaltable" width="100%" border="0"> +<colgroup> +<col width="150px" class="parameters_name"> +<col class="parameters_description"> +<col width="200px" class="parameters_annotations"> +</colgroup> +<tbody><tr> +<td class="parameter_name"><p>vlan</p></td> +<td class="parameter_description"><p>the <a class="link" href="NMSettingBridge.html#NMBridgeVlan"><span class="type">NMBridgeVlan</span></a> instance to copy</p></td> +<td class="parameter_annotations"> </td> +</tr></tbody> +</table></div> +</div> +<div class="refsect3"> +<a name="nm-bridge-vlan-new-clone.returns"></a><h4>Returns</h4> +<p>a clone of <em class="parameter"><code>vlan</code></em> +. This instance +is always unsealed. </p> +<p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p> +</div> +<p class="since">Since: 1.18</p> +</div> +<hr> +<div class="refsect2"> +<a name="nm-bridge-vlan-cmp"></a><h3>nm_bridge_vlan_cmp ()</h3> +<pre class="programlisting"><span class="returnvalue">int</span> +nm_bridge_vlan_cmp (<em class="parameter"><code>const <a class="link" href="NMSettingBridge.html#NMBridgeVlan"><span class="type">NMBridgeVlan</span></a> *a</code></em>, + <em class="parameter"><code>const <a class="link" href="NMSettingBridge.html#NMBridgeVlan"><span class="type">NMBridgeVlan</span></a> *b</code></em>);</pre> +<p>Compare two bridge VLAN objects.</p> +<div class="refsect3"> +<a name="nm-bridge-vlan-cmp.parameters"></a><h4>Parameters</h4> +<div class="informaltable"><table class="informaltable" width="100%" border="0"> +<colgroup> +<col width="150px" class="parameters_name"> +<col class="parameters_description"> +<col width="200px" class="parameters_annotations"> +</colgroup> +<tbody> +<tr> +<td class="parameter_name"><p>a</p></td> +<td class="parameter_description"><p>a <a class="link" href="NMSettingBridge.html#NMBridgeVlan"><span class="type">NMBridgeVlan</span></a></p></td> +<td class="parameter_annotations"> </td> +</tr> +<tr> +<td class="parameter_name"><p>b</p></td> +<td class="parameter_description"><p>another <a class="link" href="NMSettingBridge.html#NMBridgeVlan"><span class="type">NMBridgeVlan</span></a></p></td> +<td class="parameter_annotations"> </td> +</tr> +</tbody> +</table></div> +</div> +<div class="refsect3"> +<a name="nm-bridge-vlan-cmp.returns"></a><h4>Returns</h4> +<p> zero of the two instances are equivalent or +a non-zero integer otherwise. This defines a total ordering +over the VLANs. Whether a VLAN is sealed or not does not +affect the comparison.</p> +</div> +<p class="since">Since: 1.18</p> +</div> +<hr> +<div class="refsect2"> +<a name="nm-bridge-vlan-seal"></a><h3>nm_bridge_vlan_seal ()</h3> +<pre class="programlisting"><span class="returnvalue">void</span> +nm_bridge_vlan_seal (<em class="parameter"><code><a class="link" href="NMSettingBridge.html#NMBridgeVlan"><span class="type">NMBridgeVlan</span></a> *vlan</code></em>);</pre> +<p>Seal the <a class="link" href="NMSettingBridge.html#NMBridgeVlan"><span class="type">NMBridgeVlan</span></a> instance. Afterwards, it is a bug +to call all functions that modify the instance (except ref/unref). +A sealed instance cannot be unsealed again, but you can create +an unsealed copy with <a class="link" href="NMSettingBridge.html#nm-bridge-vlan-new-clone" title="nm_bridge_vlan_new_clone ()"><code class="function">nm_bridge_vlan_new_clone()</code></a>.</p> +<div class="refsect3"> +<a name="nm-bridge-vlan-seal.parameters"></a><h4>Parameters</h4> +<div class="informaltable"><table class="informaltable" width="100%" border="0"> +<colgroup> +<col width="150px" class="parameters_name"> +<col class="parameters_description"> +<col width="200px" class="parameters_annotations"> +</colgroup> +<tbody><tr> +<td class="parameter_name"><p>vlan</p></td> +<td class="parameter_description"><p>the <a class="link" href="NMSettingBridge.html#NMBridgeVlan"><span class="type">NMBridgeVlan</span></a> instance</p></td> +<td class="parameter_annotations"> </td> +</tr></tbody> +</table></div> +</div> +<p class="since">Since: 1.18</p> +</div> +<hr> +<div class="refsect2"> +<a name="nm-bridge-vlan-is-sealed"></a><h3>nm_bridge_vlan_is_sealed ()</h3> +<pre class="programlisting"><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> +nm_bridge_vlan_is_sealed (<em class="parameter"><code>const <a class="link" href="NMSettingBridge.html#NMBridgeVlan"><span class="type">NMBridgeVlan</span></a> *vlan</code></em>);</pre> +<div class="refsect3"> +<a name="nm-bridge-vlan-is-sealed.parameters"></a><h4>Parameters</h4> +<div class="informaltable"><table class="informaltable" width="100%" border="0"> +<colgroup> +<col width="150px" class="parameters_name"> +<col class="parameters_description"> +<col width="200px" class="parameters_annotations"> +</colgroup> +<tbody><tr> +<td class="parameter_name"><p>vlan</p></td> +<td class="parameter_description"><p>the <a class="link" href="NMSettingBridge.html#NMBridgeVlan"><span class="type">NMBridgeVlan</span></a> instance</p></td> +<td class="parameter_annotations"> </td> +</tr></tbody> +</table></div> +</div> +<div class="refsect3"> +<a name="nm-bridge-vlan-is-sealed.returns"></a><h4>Returns</h4> +<p> whether <em class="parameter"><code>self</code></em> +is sealed or not.</p> +</div> +<p class="since">Since: 1.18</p> +</div> +<hr> +<div class="refsect2"> +<a name="nm-bridge-vlan-set-untagged"></a><h3>nm_bridge_vlan_set_untagged ()</h3> +<pre class="programlisting"><span class="returnvalue">void</span> +nm_bridge_vlan_set_untagged (<em class="parameter"><code><a class="link" href="NMSettingBridge.html#NMBridgeVlan"><span class="type">NMBridgeVlan</span></a> *vlan</code></em>, + <em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> value</code></em>);</pre> +<p>Change the value of the untagged property of the VLAN.</p> +<div class="refsect3"> +<a name="nm-bridge-vlan-set-untagged.parameters"></a><h4>Parameters</h4> +<div class="informaltable"><table class="informaltable" width="100%" border="0"> +<colgroup> +<col width="150px" class="parameters_name"> +<col class="parameters_description"> +<col width="200px" class="parameters_annotations"> +</colgroup> +<tbody> +<tr> +<td class="parameter_name"><p>vlan</p></td> +<td class="parameter_description"><p>the <a class="link" href="NMSettingBridge.html#NMBridgeVlan"><span class="type">NMBridgeVlan</span></a></p></td> +<td class="parameter_annotations"> </td> +</tr> +<tr> +<td class="parameter_name"><p>value</p></td> +<td class="parameter_description"><p>the new value</p></td> +<td class="parameter_annotations"> </td> +</tr> +</tbody> +</table></div> +</div> +<p class="since">Since: 1.18</p> +</div> +<hr> +<div class="refsect2"> +<a name="nm-bridge-vlan-set-pvid"></a><h3>nm_bridge_vlan_set_pvid ()</h3> +<pre class="programlisting"><span class="returnvalue">void</span> +nm_bridge_vlan_set_pvid (<em class="parameter"><code><a class="link" href="NMSettingBridge.html#NMBridgeVlan"><span class="type">NMBridgeVlan</span></a> *vlan</code></em>, + <em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> value</code></em>);</pre> +<p>Change the value of the PVID property of the VLAN. It +is invalid to set the value to <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> for non-single-id +VLANs.</p> +<div class="refsect3"> +<a name="nm-bridge-vlan-set-pvid.parameters"></a><h4>Parameters</h4> +<div class="informaltable"><table class="informaltable" width="100%" border="0"> +<colgroup> +<col width="150px" class="parameters_name"> +<col class="parameters_description"> +<col width="200px" class="parameters_annotations"> +</colgroup> +<tbody> +<tr> +<td class="parameter_name"><p>vlan</p></td> +<td class="parameter_description"><p>the <a class="link" href="NMSettingBridge.html#NMBridgeVlan"><span class="type">NMBridgeVlan</span></a></p></td> +<td class="parameter_annotations"> </td> +</tr> +<tr> +<td class="parameter_name"><p>value</p></td> +<td class="parameter_description"><p>the new value</p></td> +<td class="parameter_annotations"> </td> +</tr> +</tbody> +</table></div> +</div> +<p class="since">Since: 1.18</p> +</div> +<hr> +<div class="refsect2"> +<a name="nm-bridge-vlan-get-vid-range"></a><h3>nm_bridge_vlan_get_vid_range ()</h3> +<pre class="programlisting"><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> +nm_bridge_vlan_get_vid_range (<em class="parameter"><code>const <a class="link" href="NMSettingBridge.html#NMBridgeVlan"><span class="type">NMBridgeVlan</span></a> *vlan</code></em>, + <em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#guint16"><span class="type">guint16</span></a> *vid_start</code></em>, + <em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#guint16"><span class="type">guint16</span></a> *vid_end</code></em>);</pre> +<p>Gets the VLAN id range.</p> +<div class="refsect3"> +<a name="nm-bridge-vlan-get-vid-range.parameters"></a><h4>Parameters</h4> +<div class="informaltable"><table class="informaltable" width="100%" border="0"> +<colgroup> +<col width="150px" class="parameters_name"> +<col class="parameters_description"> +<col width="200px" class="parameters_annotations"> +</colgroup> +<tbody> +<tr> +<td class="parameter_name"><p>vlan</p></td> +<td class="parameter_description"><p>the <a class="link" href="NMSettingBridge.html#NMBridgeVlan"><span class="type">NMBridgeVlan</span></a></p></td> +<td class="parameter_annotations"> </td> +</tr> +<tr> +<td class="parameter_name"><p>vid_start</p></td> +<td class="parameter_description"><p>location to store the VLAN id range start.</p></td> +<td class="parameter_annotations"> </td> +</tr> +<tr> +<td class="parameter_name"><p>vid_end</p></td> +<td class="parameter_description"><p>location to store the VLAN id range end</p></td> +<td class="parameter_annotations"> </td> +</tr> +</tbody> +</table></div> +</div> +<div class="refsect3"> +<a name="nm-bridge-vlan-get-vid-range.returns"></a><h4>Returns</h4> +<p> <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> is the VLAN specifies a range, <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> if it is +a single-id VLAN.</p> +</div> +<p class="since">Since: 1.18</p> +</div> +<hr> +<div class="refsect2"> +<a name="nm-bridge-vlan-is-untagged"></a><h3>nm_bridge_vlan_is_untagged ()</h3> +<pre class="programlisting"><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> +nm_bridge_vlan_is_untagged (<em class="parameter"><code>const <a class="link" href="NMSettingBridge.html#NMBridgeVlan"><span class="type">NMBridgeVlan</span></a> *vlan</code></em>);</pre> +<p>Returns whether the VLAN is untagged.</p> +<div class="refsect3"> +<a name="nm-bridge-vlan-is-untagged.parameters"></a><h4>Parameters</h4> +<div class="informaltable"><table class="informaltable" width="100%" border="0"> +<colgroup> +<col width="150px" class="parameters_name"> +<col class="parameters_description"> +<col width="200px" class="parameters_annotations"> +</colgroup> +<tbody><tr> +<td class="parameter_name"><p>vlan</p></td> +<td class="parameter_description"><p>the <a class="link" href="NMSettingBridge.html#NMBridgeVlan"><span class="type">NMBridgeVlan</span></a></p></td> +<td class="parameter_annotations"> </td> +</tr></tbody> +</table></div> +</div> +<div class="refsect3"> +<a name="nm-bridge-vlan-is-untagged.returns"></a><h4>Returns</h4> +<p> <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the VLAN is untagged, <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> otherwise</p> +</div> +<p class="since">Since: 1.18</p> +</div> +<hr> +<div class="refsect2"> +<a name="nm-bridge-vlan-is-pvid"></a><h3>nm_bridge_vlan_is_pvid ()</h3> +<pre class="programlisting"><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> +nm_bridge_vlan_is_pvid (<em class="parameter"><code>const <a class="link" href="NMSettingBridge.html#NMBridgeVlan"><span class="type">NMBridgeVlan</span></a> *vlan</code></em>);</pre> +<p>Returns whether the VLAN is the PVID for the port.</p> +<div class="refsect3"> +<a name="nm-bridge-vlan-is-pvid.parameters"></a><h4>Parameters</h4> +<div class="informaltable"><table class="informaltable" width="100%" border="0"> +<colgroup> +<col width="150px" class="parameters_name"> +<col class="parameters_description"> +<col width="200px" class="parameters_annotations"> +</colgroup> +<tbody><tr> +<td class="parameter_name"><p>vlan</p></td> +<td class="parameter_description"><p>the <a class="link" href="NMSettingBridge.html#NMBridgeVlan"><span class="type">NMBridgeVlan</span></a></p></td> +<td class="parameter_annotations"> </td> +</tr></tbody> +</table></div> +</div> +<div class="refsect3"> +<a name="nm-bridge-vlan-is-pvid.returns"></a><h4>Returns</h4> +<p> <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the VLAN is the PVID</p> +</div> +<p class="since">Since: 1.18</p> +</div> +<hr> +<div class="refsect2"> +<a name="nm-bridge-vlan-to-str"></a><h3>nm_bridge_vlan_to_str ()</h3> +<pre class="programlisting"><span class="returnvalue">char</span> * +nm_bridge_vlan_to_str (<em class="parameter"><code>const <a class="link" href="NMSettingBridge.html#NMBridgeVlan"><span class="type">NMBridgeVlan</span></a> *vlan</code></em>, + <em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre> +<p>Convert a <a class="link" href="NMSettingBridge.html#NMBridgeVlan"><code class="literal">NMBridgeVlan</code></a> to a string.</p> +<div class="refsect3"> +<a name="nm-bridge-vlan-to-str.parameters"></a><h4>Parameters</h4> +<div class="informaltable"><table class="informaltable" width="100%" border="0"> +<colgroup> +<col width="150px" class="parameters_name"> +<col class="parameters_description"> +<col width="200px" class="parameters_annotations"> +</colgroup> +<tbody> +<tr> +<td class="parameter_name"><p>vlan</p></td> +<td class="parameter_description"><p>the <a class="link" href="NMSettingBridge.html#NMBridgeVlan"><code class="literal">NMBridgeVlan</code></a></p></td> +<td class="parameter_annotations"> </td> +</tr> +<tr> +<td class="parameter_name"><p>error</p></td> +<td class="parameter_description"><p>location of the error</p></td> +<td class="parameter_annotations"> </td> +</tr> +</tbody> +</table></div> +</div> +<div class="refsect3"> +<a name="nm-bridge-vlan-to-str.returns"></a><h4>Returns</h4> +<p> formatted string or <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a></p> +</div> +<p class="since">Since: 1.18</p> +</div> +<hr> +<div class="refsect2"> +<a name="nm-bridge-vlan-from-str"></a><h3>nm_bridge_vlan_from_str ()</h3> +<pre class="programlisting"><a class="link" href="NMSettingBridge.html#NMBridgeVlan"><span class="returnvalue">NMBridgeVlan</span></a> * +nm_bridge_vlan_from_str (<em class="parameter"><code>const <span class="type">char</span> *str</code></em>, + <em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre> +<p>Parses the string representation of the queueing +discipline to a <a class="link" href="NMSettingBridge.html#NMBridgeVlan"><code class="literal">NMBridgeVlan</code></a> instance.</p> +<div class="refsect3"> +<a name="nm-bridge-vlan-from-str.parameters"></a><h4>Parameters</h4> +<div class="informaltable"><table class="informaltable" width="100%" border="0"> +<colgroup> +<col width="150px" class="parameters_name"> +<col class="parameters_description"> +<col width="200px" class="parameters_annotations"> +</colgroup> +<tbody> +<tr> +<td class="parameter_name"><p>str</p></td> +<td class="parameter_description"><p>the string representation of a bridge VLAN</p></td> +<td class="parameter_annotations"> </td> +</tr> +<tr> +<td class="parameter_name"><p>error</p></td> +<td class="parameter_description"><p>location of the error</p></td> +<td class="parameter_annotations"> </td> +</tr> +</tbody> +</table></div> +</div> +<div class="refsect3"> +<a name="nm-bridge-vlan-from-str.returns"></a><h4>Returns</h4> +<p> the <a class="link" href="NMSettingBridge.html#NMBridgeVlan"><code class="literal">NMBridgeVlan</code></a> or <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a></p> +</div> +<p class="since">Since: 1.18</p> +</div> </div> <div class="refsect1"> <a name="NMSettingBridge.other_details"></a><h2>Types and Values</h2> @@ -554,6 +1462,36 @@ nm_setting_bridge_get_multicast_snooping </div> <hr> <div class="refsect2"> +<a name="NM-SETTING-BRIDGE-VLAN-FILTERING:CAPS"></a><h3>NM_SETTING_BRIDGE_VLAN_FILTERING</h3> +<pre class="programlisting">#define NM_SETTING_BRIDGE_VLAN_FILTERING "vlan-filtering" +</pre> +</div> +<hr> +<div class="refsect2"> +<a name="NM-SETTING-BRIDGE-VLAN-DEFAULT-PVID:CAPS"></a><h3>NM_SETTING_BRIDGE_VLAN_DEFAULT_PVID</h3> +<pre class="programlisting">#define NM_SETTING_BRIDGE_VLAN_DEFAULT_PVID "vlan-default-pvid" +</pre> +</div> +<hr> +<div class="refsect2"> +<a name="NM-SETTING-BRIDGE-VLANS:CAPS"></a><h3>NM_SETTING_BRIDGE_VLANS</h3> +<pre class="programlisting">#define NM_SETTING_BRIDGE_VLANS "vlans" +</pre> +</div> +<hr> +<div class="refsect2"> +<a name="NM-BRIDGE-VLAN-VID-MIN:CAPS"></a><h3>NM_BRIDGE_VLAN_VID_MIN</h3> +<pre class="programlisting">#define NM_BRIDGE_VLAN_VID_MIN 1 +</pre> +</div> +<hr> +<div class="refsect2"> +<a name="NM-BRIDGE-VLAN-VID-MAX:CAPS"></a><h3>NM_BRIDGE_VLAN_VID_MAX</h3> +<pre class="programlisting">#define NM_BRIDGE_VLAN_VID_MAX 4094 +</pre> +</div> +<hr> +<div class="refsect2"> <a name="NMSettingBridge-struct"></a><h3>NMSettingBridge</h3> <pre class="programlisting">typedef struct _NMSettingBridge NMSettingBridge;</pre> <p>Bridging Settings</p> @@ -660,6 +1598,42 @@ bridge.</p> <p>Flags: Read / Write / Construct</p> <p>Default value: TRUE</p> </div> +<hr> +<div class="refsect2"> +<a name="NMSettingBridge--vlan-default-pvid"></a><h3>The <code class="literal">“vlan-default-pvid”</code> property</h3> +<pre class="programlisting"> “vlan-default-pvid” <a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a></pre> +<p>The default PVID for the ports of the bridge, that is the VLAN id +assigned to incoming untagged frames.</p> +<p>Flags: Read / Write / Construct</p> +<p>Allowed values: <= 4094</p> +<p>Default value: 1</p> +<p class="since">Since: 1.18</p> +</div> +<hr> +<div class="refsect2"> +<a name="NMSettingBridge--vlan-filtering"></a><h3>The <code class="literal">“vlan-filtering”</code> property</h3> +<pre class="programlisting"> “vlan-filtering” <a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a></pre> +<p>Control whether VLAN filtering is enabled on the bridge.</p> +<p>Flags: Read / Write / Construct</p> +<p>Default value: FALSE</p> +<p class="since">Since: 1.18</p> +</div> +<hr> +<div class="refsect2"> +<a name="NMSettingBridge--vlans"></a><h3>The <code class="literal">“vlans”</code> property</h3> +<pre class="programlisting"> “vlans” <a href="https://developer.gnome.org/glib/unstable/glib-Pointer-Arrays.html#GPtrArray"><span class="type">GPtrArray</span></a> *</pre> +<p>Array of bridge VLAN objects. In addition to the VLANs +specified here, the bridge will also have the default-pvid +VLAN configured by the bridge.vlan-default-pvid property.</p> +<p>In nmcli the VLAN list can be specified with the following +syntax:</p> +<p> $vid pvid [, $vid pvid]...</p> +<p>where $vid is either a single id between 1 and 4094 or a +range, represented as a couple of ids separated by a dash.</p> +<p><span class="annotation">[<acronym title="Override the parsed C type with given type."><span class="acronym">type</span></acronym> GPtrArray(NMBridgeVlan)]</span></p> +<p>Flags: Read / Write</p> +<p class="since">Since: 1.18</p> +</div> </div> </div> <div class="footer"> |