raw socket

Rudolf Cejka cejkar at fit.vutbr.cz
Wed Mar 10 09:11:53 CET 2004


Ondra Holecek wrote (2004/03/09):
> 	ipp->ip_len = htons(40);

Zkuste tady zrusit htons(). Zda se, ze pouziti ci nepouziti hton*()
je u hlavicek velka magie. Podivejte se napr. do
/usr/src/contrib/traceroute/traceroute.c a na BYTESWAP_IP_HDR.

-- 
Rudolf Cejka <cejkar at fit.vutbr.cz> http://www.fit.vutbr.cz/~cejkar
Brno University of Technology, Faculty of Information Technology
Bozetechova 2, 612 66  Brno, Czech Republic



More information about the Users-l mailing list