>>But, I find sending via a raw socket using SOCK_DGRAM not possible. I think u should use "SOCK_RAW" if u r planning for a "raw socket". and if u use "SOCK_DGRAM", it means u want "connectionless unreliable messages" i.e. datagrams... However, it is possible to bind a SOCK_DGRAM as well....check SO_BINDTODEVICE socket option..... Best answer.....man 7 socket, man socket... Avni :-) -----Original Message----- From: linux-net-owner@vger.kernel.org [mailto:linux-net-owner@vger.kernel.org]On Behalf Of Vasu Sent: Friday, 3 May 2002 1:49 AM To: linux-net Subject: raw send Hi, One more query .. I am using raw data send in a program. All I am doing is receiving data on a particular port, manipulating the packet by a raw receiving module, and trying to retransmit the packet to the interface, so that the data can be accessed by a different port, as manipulated by the raw receiver. But, I find sending via a raw socket using SOCK_DGRAM not possible. Do I need to bind my socket before sending via raw sockets ? Can someone please refer me to some good examples on sending data via raw sockets. Thanks a lot, Vasu. - : send the line "unsubscribe linux-net" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html *************************************************************************** This message is proprietary to Future Software Limited (FSL) and is intended solely for the use of the individual to whom it is addressed. It may contain privileged or confidential information and should not be circulated or used for any purpose other than for what it is intended. If you have received this message in error, please notify the originator immediately. If you are not the intended recipient, you are notified that you are strictly prohibited from using, copying, altering, or disclosing the contents of this message. FSL accepts no responsibility for loss or damage arising from the use of the information transmitted by this email including damage from virus. *************************************************************************** - : send the line "unsubscribe linux-net" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html