[RFC] Handle ipv6 connections 23/178723/3
authorPaweł Szewczyk <p.szewczyk@samsung.com>
Fri, 11 May 2018 11:27:55 +0000 (13:27 +0200)
committerManish Rathod <manish.r@samsung.com>
Fri, 25 May 2018 06:53:11 +0000 (06:53 +0000)
commit1616555971c03a8604c257a9a458f806f8fd1bc5
treee873f0b37888de5ec75a5e38685a2813a953fee9
parentb79fd65c70e87a655961ebebfa3ec2a834675a2f
[RFC] Handle ipv6 connections

It was assumed that connection to sdbd over tcp uses ipv4. Now it is
possible to receive ipv6 connection as well (not only IPv4-mapped, but a
real one). This requires ipv6 address validation in plugin API.

This commit adds such API, with default implementation to block all ipv6
addresses. It should be implemented according to security policy on
given platform.

Change-Id: I056c63485e2d6e23269091822a231d7b9b817048
Signed-off-by: Paweł Szewczyk <p.szewczyk@samsung.com>
src/default_plugin_basic.c
src/default_plugin_main.c
src/sdbd_plugin.h
src/transport_local.c