Hi,
Hai i am doing a research in networking. I have a code for 2.4 kernel. I am porting this to 2.6. I am using sock_sendmsg for sending the packet. I can able to send an unicast packet using sock_sendmsg.But not able to send a broadcast packet.In 2.4 The struct socket having the broadcast bit like below
sock->sk->broadcast=1;
And it is having the ttl in the protinfo structure like below.
sock->sk->protinfo.af_inet.ttl=ttl;
For compilation i have commented this. I am suspecting this will be the problem for failure of sock_sendmsg. It is is returning -13. For unicast packet it is working perfectly.
Anybody Help plz.......... Thanks
Regards
Gomathi
