summaryrefslogtreecommitdiff
path: root/src/inet.c
AgeCommit message (Collapse)AuthorFilesLines
2018-08-24[connman] Added Tizen Wi-Fi Meshsubmit/tizen/20180824.072908refs/changes/69/186569/10Nishant Chaprana1-18/+75
Change-Id: Iec2ec99fb7d4fc6d9c0539e5a9e7c903e1969580 Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
2018-08-16[Fix][icmpv6_recv] No need to free data using xs_cleanup(), data is already ↵refs/changes/50/186850/1Nishant Chaprana1-3/+2
freed in icmpv6_event() Change-Id: I19b028f5a93f7a4efbcf6e7c92113c363d7bb534 Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
2018-01-23Updated connman to version 1.35refs/changes/94/166794/2Seonah Moon1-28/+329
Change-Id: I13526fbf80296a79be15548fc226a308941ac9ec Signed-off-by: Taesub Kim <taesub.kim@samsung.com>
2018-01-08Imported Upstream version 1.35upstream/1.35refs/changes/22/166122/1Seonah Moon1-31/+336
Change-Id: I174854914d9fd06a813270b57d1f7bc2bac63c6a Signed-off-by: Seonah Moon <seonah1.moon@samsung.com>
2017-10-10[CID-32053] Remove dead coderefs/changes/90/154490/1hyunuktak1-1/+0
Change-Id: I27db8650a701d9c7986636077bf041fdfa72a319 Signed-off-by: hyunuktak <hyunuk.tak@samsung.com>
2017-05-04Fix svace issues (WGID-207858, 208122, 208137, 208138)submit/tizen/20170504.080025accepted/tizen/unified/20170504.114207refs/changes/28/128028/3chleun.moon1-1/+4
Change-Id: I31373fbb6ad79517e63f4023c1f4bac2f63424e5 Signed-off-by: cheoleun <chleun.moon@samsung.com>
2017-04-25Added some logs for debuggingrefs/changes/83/126883/1Seonah Moon1-0/+3
Change-Id: I3a133fa6aebd28dea42f7dfd9ecb42d04c45f291 Signed-off-by: Seonah Moon <seonah1.moon@samsung.com>
2017-02-23[connman] Merged IPv6 related code.refs/changes/70/115570/6Seonah Moon1-0/+31
1. Added code to set IPv6 gateway addess. 2. Fix IPv6 issue in case of auto-configuration. Change-Id: Ie0e1d53dd269a09600d2f08e66d73cefd6dd3c29 Signed-off-by: Seonah Moon <seonah1.moon@samsung.com>
2016-06-10[upstream] Fix memory leak when realloc fails.refs/changes/07/73807/2Niraj Kumar Goit1-0/+7
Change-Id: I9d34aa90a0ad2265339b3a05302bbe5b5f1ba211 Signed-off-by: Niraj Kumar Goit <niraj.g@samsung.com>
2015-08-07Base Code merged to SPIN 2.4submit/tizen/20150810.034432refs/changes/38/45538/1hyunuktak1-3/+57
Signed-off-by: hyunuktak <hyunuk.tak@samsung.com> Change-Id: I84a42375b5c59739e4caca1f726699ea7647ef17
2014-10-29Imported Upstream version 1.26upstream/1.26Zhang zhengguang1-61/+2
2014-07-17Imported Upstream version 1.24upstream/1.24Zhang zhengguang1-205/+794
2013-04-05inet: Get an address from a given interface and address familyJukka Rissanen1-0/+55
The returned address is used when we need to have a listening socket tied to specific interface and address, and do not want to bind to any address.
2013-01-08inet: Fix error handling when bridging interfacesForest Bond1-18/+22
Functions that add and remove interfaces to and from bridges now return an appropriate error code.
2013-01-08inet: Fix error handling when adding/removing routesForest Bond1-84/+152
Functions that add and remove routes now return an appropriate error code. EEXIST and ESRCH are ignored when adding and removing routes (respectively) to reduce spurious error messages in the logs.
2012-12-20core: Use glib memory functionsDaniel Wagner1-3/+3
Use for all memory allocation/dealocation operation the glib functions. This allows us to use g_mem_profile().
2012-11-23device: Move device creation func into device.cJukka Rissanen1-173/+0
The device creation function should be part of device.c and not inet.c. After this change the inet.c can be used by separate vpn daemon.
2012-11-13inet: Fix resource leakDanny Jeongseok Seo1-3/+1
The socket was not closed when err < 0 is true.
2012-10-01inet: Cleanup rtnl callback data properlyJukka Rissanen1-7/+1
The inet_rtnl_cb_data struct allocated in __connman_inet_rtnl_talk() was not deallocated if we expected data from kernel.
2012-09-25inet: Add function to check if IPv6 is supported by kernelJukka Rissanen1-0/+12
2012-09-04Use g_slist_prepend() where appropriatePatrik Flykt1-1/+1
Convert usage of g_slist_append() to g_slist_prepend() where appropriate. gdbus, dnsproxy, resolver, rtnl, session and session unit test have ordering requirements and thus not touched.
2012-08-29inet: Properly remove IPv4 address and set interface downPatrik Flykt1-3/+5
The interface was not properly set down and thus the services were not removed. Fixes BMC#25659
2012-08-17inet: Clear IP addresses when interface is set downPatrik Flykt1-2/+8
Clear interface IPv4 address by setting it to 0.0.0.0. IPv6 addresses are cleared automatically when the IFF_DYNAMIC flag is set at the time the interface is brought down. By removing the IP address and netmask, netlink properly reports new addresses assigned by DHCPv4.
2012-08-15inet: Add function to return route to a given hostJukka Rissanen1-0/+149
The netlink message handling is modified from iproute.c in iproute2 package.
2012-07-09inet: Return all running interfacesJukka Rissanen1-0/+78
Add a function that returns all (except loopback) interfaces that are up and running (have IP address). This information is used in following patch to clean up the routes that are left hanging around.
2012-06-28inet: Fix usage of getaddrinfo() return valuePatrik Flykt1-2/+0
Fixes BMC#25304
2012-06-14inet: Create helper function for IP address checkingPatrik Flykt1-0/+20
Create a helper function that checks if a given hostname is an IPv4 or IPv6 address. If it is, AF_INET or AF_INET6 is returned. On error the negative error value from getaddrinfo is returned.
2012-05-04inet: Add function that checks if the hostname is validJukka Rissanen1-0/+48
2012-05-04inet: Make sure that we only accept netlink messages from kernelJukka Rissanen1-10/+20
2012-04-28core: Update copyright informationMarcel Holtmann1-1/+1
2012-04-05inet: Build failure fixPatrik Flykt1-1/+1
"The format modifier for size_t is %zd." (Marcel, 20/12/2011)
2012-04-05inet: Refactor rtnl functions in 6to4.cJukka Rissanen1-12/+299
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.
2012-04-05net: Add functions to get dest address of P-t-P linkJukka Rissanen1-0/+94
These functions are needed when we need to setup a route to point-to-point link destination address. The route is needed if P-t-P link does not have a default route.
2012-03-19inet: Fix debugging printsJukka Rissanen1-7/+14
2012-03-01inet: Ensure data->channel exist before accessing itOtavio Salvador1-3/+5
Log of segfault: ... connmand[676]: src/network.c:check_dhcpv6() reply (nil) connmand[676]: src/network.c:check_dhcpv6() re-send router solicitation 3 connmand[676]: src/inet.c:__connman_inet_ipv6_send_rs() connmand[676]: Aborting (signal 11) [connmand]
2012-01-05inet: Get router advertisement prefix option information.Jukka Rissanen1-0/+50
2012-01-05inet: Return router advertisement packet length in callback.Jukka Rissanen1-3/+5
The length of the RA packet must be returned in callback, otherwise callback cannot check RA options. The prefix length RA option is needed in stateful DHCPv6 implementation.
2011-11-07inet: Cleanup the router solicitations handler properlyJukka Rissanen1-1/+5
2011-11-07inet: Fix file descriptor leak when comparing subnetsJukka Rissanen1-0/+3
2011-10-26core: Fix compilation in MeeGoJukka Rissanen1-6/+1
The _GNU_SOURCE needs to be defined so that O_CLOEXEC symbols can be found in system header files. The source does not compile without the patch in MeeGo 1.2
2011-10-25core: Add SOCK_CLOEXEC to socket()Daniel Wagner1-28/+28
Make sure all file descriptor are closed.
2011-10-25core: Add O_CLOEXEC to open()Daniel Wagner1-1/+1
Make sure all file descriptor are closed.
2011-10-20inet: Cleanup router solicitation callback properly after errorJukka Rissanen1-0/+1
The cleanup routine must be called after an error and after calling RS callback, otherwise the timeout is not removed in right time.
2011-06-27inet: Added support functions for setting and clearing IPv6 gateway address.Jukka Rissanen1-0/+92
2011-06-27inet: Fixed indentation.Jukka Rissanen1-1/+1
2011-06-27inet: Changed error prints to print the error string.Jukka Rissanen1-4/+8
2011-06-14inet: Standardize error codes and messagesGrant Erickson1-22/+33
Return and pass a consistent set of informative error codes and display a consistent set of error messages for connman_inet_modify_address and connman_{clear,set}_*_address.
2011-06-07element: Remove device codeDaniel Wagner1-1/+1
2011-04-20tethering: Add support to create private networks TUN interfaceGustavo F. Padovan1-0/+36
2011-03-25inet: Add routines to send IPv6 router solicitation message.Jukka Rissanen1-0/+313
IPv6 router solicitation handling is from MIPL project. Original code can be found at git://linux-ipv6.org/gitroot/mipv6-daemon.git and http://www.linux-ipv6.org/gitweb/gitweb.cgi?p=gitroot/mipv6-daemon.git;a=blob;f=src/ndisc.c