On Tue, Apr 24, 2012 at 10:44:52AM +0200, Nikola Pajkovsky wrote:
Vitezslav Samel <vitezslav(a)samel.cz> writes:
> Move these functions into more appropriate file.
>
> Signed-off-by: Vitezslav Samel <vitezslav(a)samel.cz>
> ---
> src/ifaces.c | 24 ++++++++++++++++++++++++
> src/ifaces.h | 4 +++-
> src/iptraf-ng-compat.h | 3 ---
> src/wrapper.c | 24 ------------------------
> 4 files changed, 27 insertions(+), 28 deletions(-)
maybe better name is
int dev_bind_ifname(...)
int dev_bind_ifindex(...)
I was thinking about it very much when I was creating this patch:
we are binding SOCKET to an INTERFACE. And your proposed names are not that
good in describing this.
Vita