hey all, i am facing strange problem. before 2 days sender program which is given on website was working fine. I was doing some other work and now if i am checking it and try to sniff the packet then it is showing no packet.
Scenario.
I have two system My lab and my laptop
My lab system is having ip 192.168.1.1 and hw_addr is 70:f3:95:0c:db:50
My laptop ip is 192.168.1.2 and hw_addr is dc:0e:a1:6b:38:26.
When I am writing this in basic sender program given in website like (i am running program in my lab pc)
NetworkInterface iface = NetworkInterface::default_interface();
NetworkInterface::Info info = iface.addresses();
EthernetII eth(iface, "dc:0e:a1:6b:38:26", info.hw_addr);
eth /= IP("192.168.1.2", info.ip_addr);
eth /= TCP(13, 15);
eth /= RawPDU("I'm a payload!");
PacketSender sender;
sender.send(eth);
can any one tell what i am missing, not before two days and now.
On Monday, March 18, 2013 12:11:07 AM UTC+5:30, Ralph Das wrote: