summaryrefslogtreecommitdiff
path: root/src/inet.c
AgeCommit message (Collapse)AuthorFilesLines
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-29core: 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
2011-03-25inet: MTU and tunnel setup functions added.Jukka Rissanen1-2/+69
2011-03-17inet: Fix inconsistent use of strdup and g_freeDaniel Wagner1-3/+3
Reported by: DJ Cozatt <ygdrasil@comcast.net>
2011-01-26inet: IPv6 network route setting APISamuel Ortiz1-5/+18
2010-12-31memoryleak: device name was not freedJukka Rissanen1-0/+1
2010-12-21inet: Add connman_inet_[add|del]_network_route()Daniel Wagner1-3/+22
connman_inet_[add|del]_host_route() are now wrappers around connman_inet_[add|del]_network_route()
2010-12-08Add CONNMAN_DEVICE_TYPE_GADGET and CONNMAN_SERVICE_TYPE_GADGETMartin Xu1-0/+2
2010-12-08inet: Add connman_inet_[add|remove]_to_bridge() routinesMartin Xu1-0/+59
2010-11-06Remove unused device->control valueMarcel Holtmann1-3/+2
2010-11-04Remove unneeded enum connman_device_modeMarcel Holtmann1-8/+0
2010-11-03inet: Add peer argument to address modification routineSamuel Ortiz1-7/+21
Some point to point interfaces need to specify their peer address.
2010-10-12Using netlink to set and clear ipv6 addressesCristiano Fernandes1-47/+28
2010-10-12Using netlink to set and clear ipv4 addressesCristiano Fernandes1-83/+121
Using netlink to set and clear ipv4 configuration avoids connman from sending multiple IPv4 signals through DBus with the wrong configuration, since the configuration are set all at once triggering only one netlink event.
2010-10-08inet: Remove __connman_inet_get_device_typeSamuel Ortiz1-99/+1
The routine is replaced by __connman_rtnl_get_device_type.
2010-10-06Add interface name checks for Virtual Machine ManagerMarcel Holtmann1-0/+2
2010-10-04Remove dependency on udevMarcel Holtmann1-2/+0
2010-07-29Initial IPv6 supportMartin Xu1-0/+229
Only manual/fixed setting supported for now.
2010-07-12No host route needed for nameservers on the same subnetSamuel Ortiz1-0/+47
2010-07-12Factorize host route setting routineSamuel Ortiz1-53/+7
2010-06-16Support for ppp default route settingKalle Valo1-0/+45
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-03-07Remove unneeded plugin for Ericsson MBM supportMarcel Holtmann1-14/+0
2010-03-07Remove unneeded plugin for Option HSO supportMarcel Holtmann1-5/+0
2010-02-11Fix VPN issue when setting up host routeMohamed Abbas1-0/+51
2010-02-11Check for ipaddress local and broadcast pointersMartin Xu1-1/+12
If local is NULL we return an error. If broadcast is NULL, we use the local address prefix to build a broadcast one.
2010-02-02Rename mac80211 routines and fields to cfg80211Samuel Ortiz1-1/+1
The mac80211 boolean and inet routines names are a bit misleading since what we really want to check is if the underlying wifi driver is cfg80211 compliant. The mac80211 drivers form a subset of that, as some full MAC cards also are fully cfg80211 compliant.
2010-01-05Use common set of INET routing helpersMarcel Holtmann1-5/+53