Re: IP option IP_RECVTTL question

2011-02-03 Thread Peter J. Philipp
On Thu, Feb 03, 2011 at 01:51:47PM +0100, Otto Moerbeek wrote: > >cmsg_len = CMSG_LEN(sizeof(struct in_addr)) > >cmsg_level = IPPROTO_IP > >cmsg_type = IP_RECVTTL > > > > And if I'm not mistaken the size of struct in_addr is 4. > > This looks like a documentati

Re: IP option IP_RECVTTL question

2011-02-03 Thread Otto Moerbeek
On Thu, Feb 03, 2011 at 12:24:37PM +0100, Peter J. Philipp wrote: > Hi, > > I wrote a DNS server and I'm collecting TTL information from the remote > nameservers that query my daemon. Everything works well, when I view the > logs I see: > > Feb 3 10:43:48 uranus wildcarddnsd[5705]: request on

IP option IP_RECVTTL question

2011-02-03 Thread Peter J. Philipp
Hi, I wrote a DNS server and I'm collecting TTL information from the remote nameservers that query my daemon. Everything works well, when I view the logs I see: Feb 3 10:43:48 uranus wildcarddnsd[5705]: request on descriptor 14 interface "em0" from XXX.XXX.XXX.XX (ttl=113, region=255) for "ce