[PATCH 0/2] DNS queries without domain part fail

2014-07-04 Thread Jukka Rissanen
Hi, The commit fa7141ae55aad fixed the dns queries without domain part. Unfortunately there was a bug in that commit which is now fixed by patch 1. The labels in the dns query were uncompressed which changes the label length bytes into dots. These dots need to be converted back to length bytes but

[PATCH 1/2] dnsproxy: Uncompressed label was not set to internal format

2014-07-04 Thread Jukka Rissanen
The label was uncompressed by dn_expand() which changes label lengths to dots but the dots were not set back to length bytes later. --- src/dnsproxy.c | 13 +++-- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/src/dnsproxy.c b/src/dnsproxy.c index 7232b98..77aabd7 100644 --

[PATCH 2/2] dnsproxy: Remove domain part from answers

2014-07-04 Thread Jukka Rissanen
If user resolver tries to resolve a name without domain part, then glibc gethostbyname() expects that returned answers do not contain any domain name either. The getaddrinfo() works differently and accepts FQDN in answers. --- src/dnsproxy.c | 72 +++

[PATCH] dnsproxy: Use defined error codes instead of plain numbers for rcode

2014-07-04 Thread Jukka Rissanen
The DNS return codes (rcode) are defined in arpa/nameser.h so use them instead of hard coded values. --- src/dnsproxy.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/dnsproxy.c b/src/dnsproxy.c index 2bf1690..538f9bf 100644 --- a/src/dnsproxy.c +++ b/src/dnsproxy.

Re: [PATCH] dnsproxy: Prefer results with domain name while domain_append is true

2014-07-04 Thread Jukka Rissanen
Hi Pasi, On to, 2014-07-03 at 15:14 +0300, pasi.sjoh...@jolla.com wrote: > From: Pasi Sjöholm > > If domain_append is set and forward_dns_reply() processes the response > for query without the domain name earlier than the response for one > with the domain name set we need to make sure that the

[PATCH] doc: Add informations about the experimental P2P Peer services support

2014-07-04 Thread Tomasz Bursztyka
As soon as p2p technology is present, whether it is enabled or not, it will be possible to register and un-register P2P Peer services. These will be served once p2p technology gets enabled. When scanning for Peers is possible, Peer objects will show the proposed services of those if some are pres

Static IP on unconnected wired port?

2014-07-04 Thread Mike Purvis
Hey all, I have a platform where I'd like an ethernet port to come up with a static IP, much as it does with /etc/network/interfaces containing: auto p5p1 iface p5p1 inet static address 192.168.54.1 netmask 255.255.255.0 This is essential so that a user can set a static IP on their laptop, a