tcpdump mailing list archives
Re: Sending a packet to localhost?
From: Oliver Zheng <mailinglists+tcpdump () oliverzheng com>
Date: Mon, 23 Feb 2009 15:14:08 -0800
You can do that using a raw socket. Well, I do that with no problem. This code is from ctdb ( http://samba.ctdb.org common/system_linux.c ) and does just that. (this is part of the ctdb "tickle-ack" and "tcp socketkiller" which ctdb uses to make sure that failover and session recoveries are as fast as possible. It does this by injecting/spoofing carefully crafted TCP packets and sending them to the locally established socket.) ...
That is indeed what I'm trying to do - I'll try it when I get home. How does Libpcap do it then if it's not with raw sockets? - This is the tcpdump-workers list. Visit https://cod.sandelman.ca/ to unsubscribe.
Current thread:
- Sending a packet to localhost? Oliver Zheng (Feb 22)
- Re: Sending a packet to localhost? Tyler Littlefield (Feb 22)
- Re: Sending a packet to localhost? Oliver Zheng (Feb 23)
- Re: Sending a packet to localhost? Aaron Turner (Feb 23)
- Re: Sending a packet to localhost? Oliver Zheng (Feb 23)
- Re: Sending a packet to localhost? Aaron Turner (Feb 23)
- Re: Sending a packet to localhost? Guy Harris (Feb 23)
- Re: Sending a packet to localhost? Aaron Turner (Feb 23)
- Re: Sending a packet to localhost? Oliver Zheng (Feb 23)
- Re: Sending a packet to localhost? ronnie sahlberg (Feb 23)
- Re: Sending a packet to localhost? Oliver Zheng (Feb 23)
- Re: Sending a packet to localhost? Guy Harris (Feb 23)
- Re: Sending a packet to localhost? Tyler Littlefield (Feb 22)