![]() |
![]() |
![]() |
![]() |
GBoxed ├── NMIPAddress ├── NMIPRoute ╰── NMIPRoutingRule GFlags ├── NMDhcpHostnameFlags ├── NMIPAddressCmpFlags ╰── NMIPRoutingRuleAsStringFlags
NMIPAddress * nm_ip_address_new (int family
,const char *addr
,guint prefix
,GError **error
);
NMIPAddress * nm_ip_address_new_binary (int family
,gconstpointer addr
,guint prefix
,GError **error
);
int nm_ip_address_cmp_full (const NMIPAddress *a
,const NMIPAddress *b
,NMIPAddressCmpFlags cmp_flags
);
void nm_ip_address_set_address (NMIPAddress *address
,const char *addr
);
void nm_ip_address_get_address_binary (NMIPAddress *address
,gpointer addr
);
void nm_ip_address_set_address_binary (NMIPAddress *address
,gconstpointer addr
);
char **
nm_ip_address_get_attribute_names (NMIPAddress *address
);
GVariant * nm_ip_address_get_attribute (NMIPAddress *address
,const char *name
);
void nm_ip_address_set_attribute (NMIPAddress *address
,const char *name
,GVariant *value
);
NMIPRoute * nm_ip_route_new (int family
,const char *dest
,guint prefix
,const char *next_hop
,gint64 metric
,GError **error
);
NMIPRoute * nm_ip_route_new_binary (int family
,gconstpointer dest
,guint prefix
,gconstpointer next_hop
,gint64 metric
,GError **error
);
gboolean nm_ip_route_equal_full (NMIPRoute *route
,NMIPRoute *other
,guint cmp_flags
);
void nm_ip_route_set_dest_binary (NMIPRoute *route
,gconstpointer dest
);
gboolean nm_ip_route_get_next_hop_binary (NMIPRoute *route
,gpointer next_hop
);
void nm_ip_route_set_next_hop_binary (NMIPRoute *route
,gconstpointer next_hop
);
GVariant * nm_ip_route_get_attribute (NMIPRoute *route
,const char *name
);
void nm_ip_route_set_attribute (NMIPRoute *route
,const char *name
,GVariant *value
);
const NMVariantAttributeSpec *const *
nm_ip_route_get_variant_attribute_spec
(void
);
gboolean nm_ip_route_attribute_validate (const char *name
,GVariant *value
,int family
,gboolean *known
,GError **error
);
NMIPRoutingRule *
nm_ip_routing_rule_new_clone (const NMIPRoutingRule *rule
);
gboolean
nm_ip_routing_rule_is_sealed (const NMIPRoutingRule *self
);
int
nm_ip_routing_rule_get_addr_family (const NMIPRoutingRule *self
);
gboolean
nm_ip_routing_rule_get_invert (const NMIPRoutingRule *self
);
void nm_ip_routing_rule_set_invert (NMIPRoutingRule *self
,gboolean invert
);
gint64
nm_ip_routing_rule_get_priority (const NMIPRoutingRule *self
);
void nm_ip_routing_rule_set_priority (NMIPRoutingRule *self
,gint64 priority
);
guint8
nm_ip_routing_rule_get_ipproto (const NMIPRoutingRule *self
);
void nm_ip_routing_rule_set_ipproto (NMIPRoutingRule *self
,guint8 ipproto
);
guint16
nm_ip_routing_rule_get_source_port_start
(const NMIPRoutingRule *self
);
guint16
nm_ip_routing_rule_get_source_port_end
(const NMIPRoutingRule *self
);
void nm_ip_routing_rule_set_source_port (NMIPRoutingRule *self
,guint16 start
,guint16 end
);
guint16
nm_ip_routing_rule_get_destination_port_start
(const NMIPRoutingRule *self
);
guint16
nm_ip_routing_rule_get_destination_port_end
(const NMIPRoutingRule *self
);
void nm_ip_routing_rule_set_destination_port (NMIPRoutingRule *self
,guint16 start
,guint16 end
);
guint32
nm_ip_routing_rule_get_fwmark (const NMIPRoutingRule *self
);
guint32
nm_ip_routing_rule_get_fwmask (const NMIPRoutingRule *self
);
void nm_ip_routing_rule_set_fwmark (NMIPRoutingRule *self
,guint32 fwmark
,guint32 fwmask
);
guint8
nm_ip_routing_rule_get_from_len (const NMIPRoutingRule *self
);
const char *
nm_ip_routing_rule_get_from (const NMIPRoutingRule *self
);
void nm_ip_routing_rule_set_from (NMIPRoutingRule *self
,const char *from
,guint8 len
);
guint8
nm_ip_routing_rule_get_to_len (const NMIPRoutingRule *self
);
void nm_ip_routing_rule_set_to (NMIPRoutingRule *self
,const char *to
,guint8 len
);
const char *
nm_ip_routing_rule_get_iifname (const NMIPRoutingRule *self
);
void nm_ip_routing_rule_set_iifname (NMIPRoutingRule *self
,const char *iifname
);
const char *
nm_ip_routing_rule_get_oifname (const NMIPRoutingRule *self
);
void nm_ip_routing_rule_set_oifname (NMIPRoutingRule *self
,const char *oifname
);
guint8
nm_ip_routing_rule_get_action (const NMIPRoutingRule *self
);
void nm_ip_routing_rule_set_action (NMIPRoutingRule *self
,guint8 action
);
void nm_ip_routing_rule_set_table (NMIPRoutingRule *self
,guint32 table
);
gint32
nm_ip_routing_rule_get_suppress_prefixlength
(const NMIPRoutingRule *self
);
void nm_ip_routing_rule_set_suppress_prefixlength (NMIPRoutingRule *self
,gint32 suppress_prefixlength
);
gboolean nm_ip_routing_rule_get_uid_range (const NMIPRoutingRule *self
,guint32 *out_range_start
,guint32 *out_range_end
);
void nm_ip_routing_rule_set_uid_range (NMIPRoutingRule *self
,guint32 uid_range_start
,guint32 uid_range_end
);
int nm_ip_routing_rule_cmp (const NMIPRoutingRule *rule
,const NMIPRoutingRule *other
);
gboolean nm_ip_routing_rule_validate (const NMIPRoutingRule *self
,GError **error
);
NMIPRoutingRule * nm_ip_routing_rule_from_string (const char *str
,NMIPRoutingRuleAsStringFlags to_string_flags
,GHashTable *extra_args
,GError **error
);
char * nm_ip_routing_rule_to_string (const NMIPRoutingRule *self
,NMIPRoutingRuleAsStringFlags to_string_flags
,GHashTable *extra_args
,GError **error
);
const char *
nm_setting_ip_config_get_method (NMSettingIPConfig *setting
);
guint
nm_setting_ip_config_get_num_dns (NMSettingIPConfig *setting
);
const char * nm_setting_ip_config_get_dns (NMSettingIPConfig *setting
,int idx
);
gboolean nm_setting_ip_config_add_dns (NMSettingIPConfig *setting
,const char *dns
);
void nm_setting_ip_config_remove_dns (NMSettingIPConfig *setting
,int idx
);
gboolean nm_setting_ip_config_remove_dns_by_value (NMSettingIPConfig *setting
,const char *dns
);
guint
nm_setting_ip_config_get_num_dns_searches
(NMSettingIPConfig *setting
);
const char * nm_setting_ip_config_get_dns_search (NMSettingIPConfig *setting
,int idx
);
gboolean nm_setting_ip_config_add_dns_search (NMSettingIPConfig *setting
,const char *dns_search
);
void nm_setting_ip_config_remove_dns_search (NMSettingIPConfig *setting
,int idx
);
gboolean nm_setting_ip_config_remove_dns_search_by_value (NMSettingIPConfig *setting
,const char *dns_search
);
void
nm_setting_ip_config_clear_dns_searches
(NMSettingIPConfig *setting
);
guint
nm_setting_ip_config_get_num_dns_options
(NMSettingIPConfig *setting
);
gboolean
nm_setting_ip_config_has_dns_options (NMSettingIPConfig *setting
);
const char * nm_setting_ip_config_get_dns_option (NMSettingIPConfig *setting
,guint idx
);
gboolean nm_setting_ip_config_add_dns_option (NMSettingIPConfig *setting
,const char *dns_option
);
void nm_setting_ip_config_remove_dns_option (NMSettingIPConfig *setting
,int idx
);
gboolean nm_setting_ip_config_remove_dns_option_by_value (NMSettingIPConfig *setting
,const char *dns_option
);
void nm_setting_ip_config_clear_dns_options (NMSettingIPConfig *setting
,gboolean is_set
);
int
nm_setting_ip_config_get_dns_priority (NMSettingIPConfig *setting
);
guint
nm_setting_ip_config_get_num_addresses
(NMSettingIPConfig *setting
);
NMIPAddress * nm_setting_ip_config_get_address (NMSettingIPConfig *setting
,int idx
);
gboolean nm_setting_ip_config_add_address (NMSettingIPConfig *setting
,NMIPAddress *address
);
void nm_setting_ip_config_remove_address (NMSettingIPConfig *setting
,int idx
);
gboolean nm_setting_ip_config_remove_address_by_value (NMSettingIPConfig *setting
,NMIPAddress *address
);
void
nm_setting_ip_config_clear_addresses (NMSettingIPConfig *setting
);
const char *
nm_setting_ip_config_get_gateway (NMSettingIPConfig *setting
);
guint
nm_setting_ip_config_get_num_routes (NMSettingIPConfig *setting
);
NMIPRoute * nm_setting_ip_config_get_route (NMSettingIPConfig *setting
,int idx
);
gboolean nm_setting_ip_config_add_route (NMSettingIPConfig *setting
,NMIPRoute *route
);
void nm_setting_ip_config_remove_route (NMSettingIPConfig *setting
,int idx
);
gboolean nm_setting_ip_config_remove_route_by_value (NMSettingIPConfig *setting
,NMIPRoute *route
);
void
nm_setting_ip_config_clear_routes (NMSettingIPConfig *setting
);
gint64
nm_setting_ip_config_get_route_metric (NMSettingIPConfig *setting
);
guint32
nm_setting_ip_config_get_route_table (NMSettingIPConfig *setting
);
guint
nm_setting_ip_config_get_num_routing_rules
(NMSettingIPConfig *setting
);
NMIPRoutingRule * nm_setting_ip_config_get_routing_rule (NMSettingIPConfig *setting
,guint idx
);
void nm_setting_ip_config_add_routing_rule (NMSettingIPConfig *setting
,NMIPRoutingRule *routing_rule
);
void nm_setting_ip_config_remove_routing_rule (NMSettingIPConfig *setting
,guint idx
);
void
nm_setting_ip_config_clear_routing_rules
(NMSettingIPConfig *setting
);
gboolean
nm_setting_ip_config_get_ignore_auto_routes
(NMSettingIPConfig *setting
);
gboolean
nm_setting_ip_config_get_ignore_auto_dns
(NMSettingIPConfig *setting
);
const char *
nm_setting_ip_config_get_dhcp_hostname
(NMSettingIPConfig *setting
);
gboolean
nm_setting_ip_config_get_dhcp_send_hostname
(NMSettingIPConfig *setting
);
gboolean
nm_setting_ip_config_get_never_default
(NMSettingIPConfig *setting
);
gboolean
nm_setting_ip_config_get_may_fail (NMSettingIPConfig *setting
);
int
nm_setting_ip_config_get_dad_timeout (NMSettingIPConfig *setting
);
int
nm_setting_ip_config_get_dhcp_timeout (NMSettingIPConfig *setting
);
int
nm_setting_ip_config_get_required_timeout
(NMSettingIPConfig *setting
);
const char *
nm_setting_ip_config_get_dhcp_iaid (NMSettingIPConfig *setting
);
NMDhcpHostnameFlags
nm_setting_ip_config_get_dhcp_hostname_flags
(NMSettingIPConfig *setting
);
const char *const * nm_setting_ip_config_get_dhcp_reject_servers (NMSettingIPConfig *setting
,guint *out_len
);
void nm_setting_ip_config_add_dhcp_reject_server (NMSettingIPConfig *setting
,const char *server
);
void nm_setting_ip_config_remove_dhcp_reject_server (NMSettingIPConfig *setting
,guint idx
);
void
nm_setting_ip_config_clear_dhcp_reject_servers
(NMSettingIPConfig *setting
);
Compare flags for nm_ip_address_cmp_full()
.
no flags. |
||
when comparing two addresses, also consider their attributes. Warning: note that attributes are GVariants and they don't have a total order. In other words, if the address differs only by their attributes, the returned compare order is not total. In that case, the return value merely indicates equality (zero) or inequality. |
Since: 1.22
no flags selected. |
||
whether to allow parsing IPv4 addresses. |
||
whether to allow parsing
IPv6 addresses. If both |
||
if set, ensure that the rule verfies or fail. |
Since: 1.18
#define NM_SETTING_IP_CONFIG_IGNORE_AUTO_ROUTES "ignore-auto-routes"
#define NM_SETTING_IP_CONFIG_DHCP_SEND_HOSTNAME "dhcp-send-hostname"
#define NM_SETTING_IP_CONFIG_DHCP_HOSTNAME_FLAGS "dhcp-hostname-flags"
#define NM_SETTING_IP_CONFIG_REQUIRED_TIMEOUT "required-timeout"
#define NM_SETTING_IP_CONFIG_DHCP_REJECT_SERVERS "dhcp-reject-servers"
#define NM_SETTING_DNS_OPTION_SINGLE_REQUEST_REOPEN "single-request-reopen"
NMDhcpHostnameFlags describe flags related to the DHCP hostname and FQDN.
no flag set. The default value from
Networkmanager global configuration is used. If such value is unset
or still zero, the DHCP request will use standard FQDN flags, i.e.
|
||
whether the server should do the A RR (FQDN-to-address) DNS updates. |
||
if set, the FQDN is encoded using canonical wire format. Otherwise it uses the deprecated ASCII encoding. This flag is allowed only for DHCPv4. |
||
when not set, request the
server to perform updates (the PTR RR and possibly the A RR
based on the |
||
when set, no FQDN flags are sent in the DHCP FQDN option. When cleared and all other FQDN flags are zero, standard FQDN flags are sent. This flag is incompatible with any other FQDN flag. |
Since: 1.22