Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Sir I am trying to capture the IPv6 packet through libpcap utility.
I am sending the packet to the IPv6 host in my subnet , and want that
all the packets should be redirected to loopbackaddress, where it can
be captured.But the packets destined for the destination address are
not taking the loopback address.I have statically configured the
gateway of the destination as ::1.
Packet on local subnet are not routed through gateway, they are sent directly. But what are you trying to achieve? If you are root on localhost, run tcpdump or wireshark, catching well-formed outgoing IP packets is usually easy with such applications.
I am developing Fragroute for IPv6, for which i am redirecting the ipv6 packets to loopback address and then where i am manipulating the fields of the packet.And then resending them to there original destination.
But firstly I have to redirect them to the loopback address, can you please suggest something for this.Its urgent!!!
Look at what tcpdump does.. Use libpcap. You do not need to change gateway - it doesn't work. You can try to achieve something by weird firewall rules, but actually you need just to use libpcap and simply capture the packets.
Actually i have to send back the packets from eth0 interface to the loopback address.
Because if i capture the packet at eth0 interface then original packets will also be sent which i dont want,
I want that only the packets manipulated by me to be sent.
I am also searching for how to know the MAC address of the IPv6 destination, if anyone can please come out with this too..........
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.