Re: Load Balancing for AF_INET Raw Sockets

2015-12-17 Thread Eric Dumazet
On Thu, 2015-12-17 at 11:40 +0530, Prashant Upadhyaya wrote: > On Tue, Dec 15, 2015 at 8:09 PM, Eric Dumazet wrote: > > On Tue, 2015-12-15 at 18:26 +0530, Prashant Upadhyaya wrote: > >> Hi, > >> > >> I open a raw socket for listening to all the UDP packets in a raw fashion > >> -- > >> > >> socke

Re: Load Balancing for AF_INET Raw Sockets

2015-12-17 Thread Prashant Upadhyaya
On Tue, Dec 15, 2015 at 6:26 PM, Prashant Upadhyaya wrote: > Hi, > > I open a raw socket for listening to all the UDP packets in a raw fashion -- > > socket(AF_INET, SOCK_RAW, IPPROTO_UDP); > > Then I use recvfrom to read the packets over the socket. > > The above works mighty fine. > I want to fi

Re: Load Balancing for AF_INET Raw Sockets

2015-12-16 Thread Prashant Upadhyaya
On Tue, Dec 15, 2015 at 8:09 PM, Eric Dumazet wrote: > On Tue, 2015-12-15 at 18:26 +0530, Prashant Upadhyaya wrote: >> Hi, >> >> I open a raw socket for listening to all the UDP packets in a raw fashion -- >> >> socket(AF_INET, SOCK_RAW, IPPROTO_UDP); >> >> Then I use recvfrom to read the packets

Re: Load Balancing for AF_INET Raw Sockets

2015-12-15 Thread Eric Dumazet
On Tue, 2015-12-15 at 18:26 +0530, Prashant Upadhyaya wrote: > Hi, > > I open a raw socket for listening to all the UDP packets in a raw fashion -- > > socket(AF_INET, SOCK_RAW, IPPROTO_UDP); > > Then I use recvfrom to read the packets over the socket. > > The above works mighty fine. > I want

Load Balancing for AF_INET Raw Sockets

2015-12-15 Thread Prashant Upadhyaya
Hi, I open a raw socket for listening to all the UDP packets in a raw fashion -- socket(AF_INET, SOCK_RAW, IPPROTO_UDP); Then I use recvfrom to read the packets over the socket. The above works mighty fine. I want to find out if it is possible to 'load balance' the UDP flows by opening up multi