src: Move socket struct mem allocs from udp_flood.c to common_socket

Signed-off-by: Jesper Dangaard Brouer <brouer@redhat.com>
src: move helpers up in common_socket.c

As Bind() uses helper sockaddr_len().

Signed-off-by: Jesper Dangaard Brouer <brouer@redhat.com>
src: fix some compile warnings

Signed-off-by: Jesper Dangaard Brouer <brouer@redhat.com>
src: prepare udp_sink for batch proccessing of packets

Signed-off-by: Jesper Dangaard Brouer <brouer@redhat.com>
src: playing with premature optimizations

These optimization seems premature as I cannot measure any
real improvements (using perf stat).

Signed-off-by: Jesper Dangaard Brouer <brouer@redhat.com>
src: udp_sink implemented recvmsg call

Signed-off-by: Jesper Dangaard Brouer <brouer@redhat.com>
src: udp_flood fix option "-m"

Signed-off-by: Jesper Dangaard Brouer <brouer@redhat.com>