Re: in_pcbbind() and in_broadcast/in_iawithaddr

2014-06-04 Thread Mike Belopuhov
On 3 June 2014 09:18, Martin Pieuchot wrote: > On 02/06/14(Mon) 15:45, Martin Pieuchot wrote: >> This diff is similar to the one that has been committed to handle the >> SOCK_RAW binding. I'd like to stop using in_iawithaddr() *and* >> in_broadcast(). Since these functions are just doing an iter

Re: in_pcbbind() and in_broadcast/in_iawithaddr

2014-06-03 Thread Jérémie Courrèges-Anglas
Martin Pieuchot writes: [...] > Update diff below, is this one ok? Looks correct; ok. [...] -- jca | PGP : 0x1524E7EE / 5135 92C1 AD36 5293 2BDF DDCC 0DFA 74AE 1524 E7EE

Re: in_pcbbind() and in_broadcast/in_iawithaddr

2014-06-03 Thread Martin Pieuchot
On 02/06/14(Mon) 15:45, Martin Pieuchot wrote: > This diff is similar to the one that has been committed to handle the > SOCK_RAW binding. I'd like to stop using in_iawithaddr() *and* > in_broadcast(). Since these functions are just doing an iteration on > all the addresses present in the RB-tree

in_pcbbind() and in_broadcast/in_iawithaddr

2014-06-02 Thread Martin Pieuchot
This diff is similar to the one that has been committed to handle the SOCK_RAW binding. I'd like to stop using in_iawithaddr() *and* in_broadcast(). Since these functions are just doing an iteration on all the addresses present in the RB-tree (or equivalent), let's use ifa_ifwithaddr() instead.