summaryrefslogtreecommitdiff
path: root/src/rtnl.c
AgeCommit message (Collapse)AuthorFilesLines
2018-01-23Updated connman to version 1.35Seonah Moon1-4/+12
Change-Id: I13526fbf80296a79be15548fc226a308941ac9ec Signed-off-by: Taesub Kim <taesub.kim@samsung.com>
2018-01-08Imported Upstream version 1.35upstream/1.35Seonah Moon1-4/+6
Change-Id: I174854914d9fd06a813270b57d1f7bc2bac63c6a Signed-off-by: Seonah Moon <seonah1.moon@samsung.com>
2017-12-07Process RDNSS option for IPv6 if connecting or connected.Niraj Kumar Goit1-9/+12
Process RDNSS option for IPv6 if network is connecting or connected and set IPv6 DNS address in the system. Change-Id: I28bb7be76a60003364030d09aabfca27886531f3 Signed-off-by: Niraj Kumar Goit <niraj.g@samsung.com>
2017-03-28Fix to prevent RA message processingSeonah Moon1-9/+31
Added fix to prevent RA message processing pass by kernel via RTM_NEDNDUSEROPT if ipv6 DNS method is set as manual. Change-Id: Ibee486071e5a235a1426028f107e105920499c6e Signed-off-by: Seonah Moon <seonah1.moon@samsung.com>
2017-03-14Apply DNS configuration methodsubmit/tizen/20170322.011410accepted/tizen/wearable/20170322.235735accepted/tizen/unified/20170322.235830accepted/tizen/tv/20170322.235708accepted/tizen/mobile/20170322.235633accepted/tizen/ivi/20170322.235801accepted/tizen/common/20170322.153711Seonah Moon1-3/+16
Change-Id: If16e739fde7e9d736c66015ab1efa982e49d3482 Signed-off-by: Seonah Moon <seonah1.moon@samsung.com>
2017-01-25Remove Profile Build Dependency (1/2): do it at runtimeMyungJoo Ham1-2/+2
- This is for Tizen 4.0. : Tizen 4.0 Configurability and Build Blocks require to remove all profile-depending build options in spec files. (No More profile macros) - It is recommended to distinguish features/profiles at runtime. unless it incurs too much overhead, which requires you to create multiple binaries and subpackages. - Now it reads if it is TV based on the /etc/ conf file. Change-Id: Id9d2f6e9db7814ab06f5d166ef2299a1a8aacb51 Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
2016-06-09[SPIN] rtnl: remove old wext interfaceNiraj Kumar Goit1-0/+5
Change-Id: I05c4d16965d974af8fd3d83546c9690f3d8def51 Signed-off-by: Niraj Kumar Goit <niraj.g@samsung.com>
2016-04-26Imported Upstream version 1.29upstream/1.29taesubkim1-13/+26
Change-Id: I2958446c35966d9ed72df0120b80561be7d89f54 Signed-off-by: Taesub Kim <taesub.kim@samsung.com>
2015-08-07Base Code merged to SPIN 2.4submit/tizen/20150810.034432hyunuktak1-13/+110
Signed-off-by: hyunuktak <hyunuk.tak@samsung.com> Change-Id: I84a42375b5c59739e4caca1f726699ea7647ef17
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