Re: set source addr of a IP packet

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

 



Thanh Tra LUU wrote:

Dear all,

Tell me if there is a way to send a packet whose IP address is chosen (by
us, for example ipspoofing) that does not use the IP_HDRINCL option.

It is quite strange to me when I read the source code of RSVP ISI, they
don't use the IP_HDRINCL for sending Path messages whose source address must
be the sender's address. I found that the source address is the interface
address through which Path message is sent. Maybe I mistook.

Thanks,

Nary Tra


-
: 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


You can use PF_PACKET sockets, and build the entire IP/[tcp|udp]/etc headers in user space.
Neil


--
/***************************************************
*Neil Horman
*Software Engineer
*Red Hat, Inc.
*nhorman@redhat.com
*gpg keyid: 1024D / 0x92A74FA1
*http://pgp.mit.edu
***************************************************/

-
: 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

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux