binding to a port in raw socket

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi there,

I am facing a problem in binding to a port while receiving data in
raw socket. I have bounded my application to a particular port
( say 6000 ) in UDP socket, but My application is receiving all the UDP
packets irrespective of the port number.
Although the man page of raw(7) clearly states that

" A raw socket can be bound to a specific local address using the
bind(2) call. If it isn't bound all packets with the specified IP
protocol are received. "

My socket is of type (PF_INET,SOCK_RAW,IPPROTO_UDP). Thanks in advance
for valuable response.

thanks & regards
sudhakar

-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux