Re: PRU_BIND in raw ip

2014-06-02 Thread Mike Belopuhov
On 28 May 2014 13:36, Martin Pieuchot wrote: > On 28/05/14(Wed) 09:30, Jérémie Courrèges-Anglas wrote: >> Martin Pieuchot writes: >> >> > Diff below replace in_iawithaddr() + in_broadcast() -> ifa_ifwithaddr(), >> > that does the same for IPv4 since broadcast addresses are added to the >> > tree.

Re: PRU_BIND in raw ip

2014-06-02 Thread Jérémie Courrèges-Anglas
Martin Pieuchot writes: > On 28/05/14(Wed) 09:30, Jérémie Courrèges-Anglas wrote: >> Martin Pieuchot writes: >> >> > Diff below replace in_iawithaddr() + in_broadcast() -> ifa_ifwithaddr(), >> > that does the same for IPv4 since broadcast addresses are added to the >> > tree. >> >> This preven

Re: PRU_BIND in raw ip

2014-05-28 Thread Martin Pieuchot
On 28/05/14(Wed) 09:30, Jérémie Courrèges-Anglas wrote: > Martin Pieuchot writes: > > > Diff below replace in_iawithaddr() + in_broadcast() -> ifa_ifwithaddr(), > > that does the same for IPv4 since broadcast addresses are added to the > > tree. > > This prevents listeners to bind on 255.255.255

Re: PRU_BIND in raw ip

2014-05-28 Thread Jérémie Courrèges-Anglas
Martin Pieuchot writes: > Diff below replace in_iawithaddr() + in_broadcast() -> ifa_ifwithaddr(), > that does the same for IPv4 since broadcast addresses are added to the > tree. This prevents listeners to bind on 255.255.255.255, something allowed with the current code. Thoughts? > ok? > > I

PRU_BIND in raw ip

2014-05-27 Thread Martin Pieuchot
Diff below replace in_iawithaddr() + in_broadcast() -> ifa_ifwithaddr(), that does the same for IPv4 since broadcast addresses are added to the tree. ok? Index: netinet/raw_ip.c === RCS file: /home/ncvs/src/sys/netinet/raw_ip.c,v ret