summaryrefslogtreecommitdiff
path: root/src/rtnl.c
AgeCommit message (Collapse)AuthorFilesLines
2014-07-17Imported Upstream version 1.24upstream/1.24Zhang zhengguang1-87/+93
2013-04-26rtnl: Interface was added to technology too earlyJukka Rissanen1-4/+12
The __connman_technology_add_interface() needs to be called after we have created the technology which is done by rtnl->newlink() callback. If this is done the old way, the ethernet devices will not get their interfaces set properly.
2013-01-04core: Remove WiMAX definitions from codePatrik Flykt1-3/+0
2012-11-22core: Use interface index instead of interface namePatrik Flykt1-11/+6
Service and network code use only interface indexes. Convert the rest of the code using interface names to use interface indexes instead. The files affected are: include/resolver.h src/connman.h src/dnsproxy.c src/resolver.c src/rtnl.c src/service.c src/tethering.c As the network and service code used interface indexes, the interface name had to be looked up via a SIOCGIFNAME ioctl when needed. If a service was removed due to the interface and network being taken down, the lookup wouldn't work. This caused DNS servers to be left behind with broken sockets since removing the DNS servers was done using the interface name.
2012-09-24rtnl: Ignore netlink messages generated by wextJohannes Berg1-4/+12
ConnMan should just ignore netlink messages generated by wext as described in commit 4997f6e38f34effc00179e849dee0dc2e2263d3a. Handle wext message detection using the IFLA_WIRELESS type because the ifinfomsg ifi_change field is reserved for future use and code using it for wext detection has been removed.
2012-07-17rtnl: Support PPP connectionsForest Bond1-0/+1
The ARP header type for PPP connections is ARPHRD_PPP (512).
2012-07-02rtnl: Fixed log for the type RTM_GETADDRPaulo Pizarro1-0/+2
The connman prints an unknown type when sending a request RTM_GETADDR
2012-06-25rtnl: Use filtered devices to determine blacklisted devicesManfred Kober1-10/+1
Instead of hard-coding some selected devices to be ignored, the blacklist check now uses the connman_device_isfiltered list.
2012-05-15rtnl: Domain search list was not handled according to RFC 6106Jukka Rissanen1-30/+27
Domain search list option can exist in options without RDNSS option. Note that the DNSSL netlink support is not yet in linux kernel 3.4-rc7, thus we will not yet get a DNSSL option in netlink RA options.
2012-05-09rtnl: Remove dead assignmentHenrique Dante de Almeida1-1/+1
2012-05-04rtnl: Make sure that we only accept netlink messages from kernelJukka Rissanen1-13/+24
2012-04-29core: Update copyright informationMarcel Holtmann1-1/+1
2012-04-27ipconfig: Add ipconfig type to __connman_ipconfig_get_gateway_from_index()Patrik Flykt1-1/+3
In order to be able to request a certain ipconfig type, add the type as a parameter to __connman_ipconfig_get_gateway_from_index().
2012-04-24resolver: Use proper IPv6 source address when sending DNS queriesJukka Rissanen1-0/+14
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.
2011-10-25core: Add SOCK_CLOEXEC to socket()Daniel Wagner1-2/+2
Make sure all file descriptor are closed.
2011-06-16element: Remove element.cDaniel Wagner1-0/+1
2011-05-27rtnl: Fix debug handling to not cause false positivesMarcel Holtmann1-1/+1
2011-03-02rtnl: Catch IPv6 route netlink messages.Jukka Rissanen1-25/+97
2011-02-15ipconfig: Rename __connman_ipconfig_get_*(index)Daniel Wagner1-4/+4
To avoid a name clash with the next patch, the __connman_ipconfig_get_*(index) have to be renamed. Since they all use an index as lookup argument rename them to __connman_ipconfig_get_*_from_index(index).
2011-02-09rtnl: Fix some uninitalised warningsKalle Valo1-7/+5
src/rtnl.c:578:8: error: 'src' may be used uninitialized in this function src/rtnl.c:610:8: error: 'src' may be used uninitialized in this function src/rtnl.c:1108:19: error: 'servers' may be used uninitialized in this function
2011-01-18Set GIOChannel to no encoding and no bufferingMarcel Holtmann1-0/+3
2011-01-18Use g_io_channel_read_chars instead of g_io_channel_readMarcel Holtmann1-5/+10
2010-12-23rtnl: Call technology_add_interface() only onceMarcel Holtmann1-3/+3
2010-12-21rtnl: Register all RDNSS search domainsSamuel Ortiz1-3/+13
2010-12-21rtnl: Add support for RFC6106 DNSSLDavid Woodhouse1-1/+60
2010-12-21rtnl: Refactor RDNSS support so we can support DNSSLDavid Woodhouse1-15/+28
Rather than registering the new nameserver as we hit the RDNSS option, gather all the information first and then register the nameservers after the loop. That way, we can gather the search domains while we're looping, and provide them when we register the nameservers.
2010-12-09rtnl: Call __connman_technology_add_interface() after rtnl->newlink()Martin Xu1-7/+6
The device is created and the underlying technology attached from the rtnl newlink hook, so __connman_technology_add_interface() needs to be called after it.
2010-12-08Add CONNMAN_DEVICE_TYPE_GADGET and CONNMAN_SERVICE_TYPE_GADGETMartin Xu1-0/+4
2010-12-03rtnl: Receive notification of RDNSS from IPv6 router advertisementsDavid Woodhouse1-1/+65
2010-10-15rtnl: Check for wireless extensions when missing DEVTYPESamuel Ortiz1-8/+28
Checking for wireless extensions is a bit more reliable than looking for a potentially missing wireless directory.
2010-10-15rtnl: Detect non cfg80211 based WiFi driversSamuel Ortiz1-0/+20
Those don't come with a proper uevent DEVTYPE label. ConnMan looks for a sysfs wireless directory in that case.
2010-10-08rtnl: Export device type detection routineSamuel Ortiz1-17/+39
Since ConnMan is now relying only on rtnl for device detection, the rtnl.c code should be responsible for providing device types. And this is done by parsing the device uevent DEVTYPE label.
2010-10-07rtnl: Remove unused operstate callbackSamuel Ortiz1-53/+0
2010-10-06Add interface name checks for Virtual Machine ManagerMarcel Holtmann1-0/+4
2010-10-04rtnl: support isimodem GPRS connectionsPekka Pessi1-0/+5
The isimodem GPRS connections (PHONET_PIPEs) have ARP header type 821.
2010-07-29Skip IPv6 link-local addresses reportingSamuel Ortiz1-0/+6
2010-07-29Add a family argument to the ipconfig routing functionsSamuel Ortiz1-2/+2
2010-07-29Track IPv6 address changes through rtnlSamuel Ortiz1-12/+62
2010-07-15Provide unique identifier along with the interface callbacksMarcel Holtmann1-3/+14
2010-07-15Fix Ethernet service type detectionMarcel Holtmann1-6/+12
2010-07-15Fix proper detection for pure Ethernet technology typesMarcel Holtmann1-4/+27
2010-07-15Add technology driver callbacks for adding/removing interfacesMarcel Holtmann1-4/+4
2010-07-15Monitor interface creation/removal and check DEVTYPEMarcel Holtmann1-0/+77
2010-06-30Centralize rntl update timersDaniel Wagner1-0/+74
Instead of creating a new rntl trigger for each Counter object move this part to the rtnl core. Only one update trigger will be registered at RTNL. The minimum interval will used for the timeout callback.
2010-06-16Support for ppp default route settingKalle Valo1-2/+12
When gateway is NULL, we need to properly set our connection and element string to 0.0.0.0 so that the interface is the default route.
2010-05-18Use helper for checking rtnl message validitySamuel Ortiz1-8/+18
2010-05-18Support RTPROT_KERNEL when adding/deleting routesSamuel Ortiz1-2/+4
RTM_*ROUTE messages can come with an RTPROT_KERNEL protocol when setting route after bringing the interface up.
2010-01-05Add support for exporting basic interface statisticsMarcel Holtmann1-16/+23
2010-01-01Update copyright informationMarcel Holtmann1-1/+1
2009-12-20Fix Ethernet address string representationMarcel Holtmann1-3/+12