Re: route(4) manual and sockaddrs; ROUNDUP()

2019-07-15 Thread Vadim Penzin
On 7/15/19 12:45 PM, Claudio Jeker wrote: On Mon, Jul 15, 2019 at 11:08:53AM +0300, Vadim Penzin wrote: On 7/15/19 10:28 AM, Claudio Jeker wrote: On Sun, Jul 14, 2019 at 01:15:40PM +0300, Vadim Penzin wrote: Since `sa_len' describes the size of a `sockaddr' (or one of its derivatives) /in

Re: route(4) manual and sockaddrs; ROUNDUP()

2019-07-15 Thread Claudio Jeker
On Mon, Jul 15, 2019 at 11:08:53AM +0300, Vadim Penzin wrote: > > > On 7/15/19 10:28 AM, Claudio Jeker wrote: > > On Sun, Jul 14, 2019 at 01:15:40PM +0300, Vadim Penzin wrote: > > > > > Since `sa_len' describes the size of a `sockaddr' (or one of its > > > > > derivatives) /including/ `sa_len' (m

Re: route(4) manual and sockaddrs; ROUNDUP()

2019-07-15 Thread Vadim Penzin
On 7/15/19 10:28 AM, Claudio Jeker wrote: On Sun, Jul 14, 2019 at 01:15:40PM +0300, Vadim Penzin wrote: Since `sa_len' describes the size of a `sockaddr' (or one of its derivatives) /including/ `sa_len' (maybe I am wrong, but this is my interpretation of the comment `total length' that appear

Re: route(4) manual and sockaddrs; ROUNDUP()

2019-07-15 Thread Claudio Jeker
On Sun, Jul 14, 2019 at 01:15:40PM +0300, Vadim Penzin wrote: > > > Since `sa_len' describes the size of a `sockaddr' (or one of its > > > derivatives) /including/ `sa_len' (maybe I am wrong, but this is my > > > interpretation of the comment `total length' that appears near the > > > definition of

Re: route(4) manual and sockaddrs; ROUNDUP()

2019-07-14 Thread Vadim Penzin
Since `sa_len' describes the size of a `sockaddr' (or one of its derivatives) /including/ `sa_len' (maybe I am wrong, but this is my interpretation of the comment `total length' that appears near the definition of `struct sockaddr' in ), `sa_len' just cannot be zero. Yes, it can not be zero.

Re: route(4) manual and sockaddrs; ROUNDUP()

2019-04-27 Thread Vadim Penzin
Well, the manual shall tell the truth, whatever it is: Messages are formed by a header followed by a small number of sockaddr structures of variable length. The size of every sockaddr structure can be computed by rounding the value of the `sa_len' field of the current structure up

Re: route(4) manual and sockaddrs; ROUNDUP()

2019-04-26 Thread Claudio Jeker
On Fri, Apr 26, 2019 at 01:55:52PM +0300, Vadim Penzin wrote: > Greetings, > > > 1. The manual of route(4) explains the structure of its messages thus: > > `Messages are formed by a header followed by a small number of > sockaddr structures (which are variable length), interpreted by >

route(4) manual and sockaddrs; ROUNDUP()

2019-04-26 Thread Vadim Penzin
Greetings, 1. The manual of route(4) explains the structure of its messages thus: `Messages are formed by a header followed by a small number of sockaddr structures (which are variable length), interpreted by position, and delimited by the length entry in the sockaddr.' (That phras