Age | Commit message (Collapse) | Author | Files | Lines |
|
|
|
|
|
We need to know the config file and entry name in next patch
in order to know if the service entry was removed from config
file.
|
|
|
|
|
|
Add a function that sets favorite flag but which does
not touch the ordering of service sequence. This is needed
when we check provisioned config file which traverses the
service sequence. If a proper provisioned service is found,
then it is marked as favorite but in this case we must not
do any ordering of service sequence because we are in the
middle of sequence traversal.
|
|
|
|
Save config information (file name and section id) for
provisioned services. The information is used to remove the
service when config file is removed.
|
|
All known files from service directory are removed and
if successfull then the service directory is also removed.
|
|
|
|
Config load and save functions are not called so they
are not needed.
|
|
|
|
|
|
Implemented feature from RFC 6106 section
'5.1. Recursive DNS Server Option':
"Lifetime 32-bit unsigned integer.
...
Hosts MAY send a Router Solicitation to ensure
the RDNSS information is fresh before the interval expires."
Host will send RS when a certain threshold of RDNSS lifetime is reached.
Values which can be adjusted:
- lifetime threshold - set to 80% from lifetime
- number of retries in case RA is not received - set to 0
- time between retries, in case RA is not received - set to 3 seconds
|
|
|
|
This is necessary for further fixing while connecting to an hidden network.
|
|
|
|
|
|
|
|
|
|
In order to be able to request a certain ipconfig type, add the type
as a parameter to __connman_ipconfig_get_gateway_from_index().
|
|
This fix is for following scenario:
- New interface is coming up.
- There is radvd in the connected network and it is
advertising IPv6 addresses and DNS servers.
- Kernel receives router advertisement and picks up the DNS
server information which is then routed via netlink to
rtnl.c:rtnl_newnduseropt() which then creates DNS listener.
- Kernel activates DAD (duplicate address detection).
- As the DAD takes some time we now have interface up
and it only has link local IPv6 address defined.
- The DNS listener is now using link local source addresses when
sending queries instead of proper autoconfigured addresses.
- When DAD is finished, the interface will have autoconfigured
addresses assigned and corresponding netlink message will cause
function rtnl.c:process_newaddr() to be called.
- If all this happens, then we re-create DNS listener
in dnsproxy.c so that listener will have a proper
(autoconfigured) source address when sending DNS packets.
|
|
Service state can transition from online to disconnect like this:
1) old online - new disconnect/association => association
2) old association - new disconnect/disconnect => disconnect
Create a separate function for leaving online mode, don't rely on
the previous old_state in service_indicate_state().
Fixes BMC#25073
|
|
Fixes BMC#25054.
|
|
Factor out code that creates the timeserver list in
__connman_timeserver_sync().
|
|
No caller is interested in the number of connected services, only
if there is one or more or none.
|
|
For indicating the we entered the ONLINE state.
|
|
The old state helps to distinguish between the transissionts
from CONNECTED -> DISCONNECTED or ONLINE -> DISCONNECTED.
|
|
|
|
|
|
|
|
A WPA passphrase is 8..63 char length.
A WPA raw key is always 64 hex digit.
A Wep passphrase is either 5 or 13 characters
A WEP key is 10 or 26 hex digit.
|
|
If the VPN is connected and the underlaying service is
disconnected, then we must also disconnect the VPN if it
is still connected.
|
|
|
|
Create a timeserver list for NTP query. This list consists of
timeserver provided via DHCP and the ones set by user in that
order. We recreate this list everytime the default service changes
or one of the timeserver values change.
Use getaddrinfo to determine if the timeserver is a domain name or
a IP address.
|
|
Export the default service via this api. This is helpful
to obtain info like default service's timeserver list and gateway.
|
|
The rtnl support functions are now in inet.c which is a
more logical place for them and now other files can also
use them.
|
|
|
|
|
|
|
|
Allow user to add routes when setting up VPN. This is useful if
the VPN cannot be configured to setup additional routes itself.
|
|
When nameserver are removed by __connman_connection_gateway_remove()
then remove only certain type nameserver (IPv4 or IPv6). This is
needed so that we do not loose IPv4 routes if only IPv6 nameservers
are to be removed. This is needed when there are multiple connected
services.
|
|
|
|
Remove support functions and 'Services' property from Manager
D-Bus API. Update gateway in all places service was changed.
|
|
Function for adding an array of object paths and dictionaries to
D-Bus messages.
|
|
|
|
|
|
|
|
Instead of natting all traffic, nat.c will restrict the masquerading
on given network/mask.
The nat handling code will be reused by session.c
|
|
|