Hi Ryu Developers,

I am Sebastian, a Final Year Project student. I am currently writing some code 
to extract DNS A Records from Ryu. For example, when I access a webpage 
www.google.com<http://www.google.com>, I want to be able to obtain this as a 
string in Ryu. I am able to extract it via raw packet using


@set_ev_cls(ofp_event.EventOFPPacketIn, MAIN_DISPATCHER)

def packet_in_handler(self,ev):

    msg=ev.msg

    dp=msg.datapath

    testprint=msg.data.decode('UTF-7', 'ignore')


but I am unable to obtain the full string. 
www.google.com<http://www.google.com> becomes wwwgooglecom with all the missing 
"." marks. Has anyone found a way to do this?


There is currently no API for DNS packets and I am unable to use DPKT for my 
project because I am doing a real time system and writing to a pcap file and 
opening it would take some time.


With Thanks,

Sebastian

------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to