Hi

I follow this web page(
http://www.tcpipguide.com/free/t_DNSMessageHeaderandQuestionSectionFormat.htm)
to implement the parser.

I'll write a test program as soon as possible.


Yi

2015-04-15 17:53 GMT+08:00 Matthew Hayes <matthew_john_ha...@hotmail.com>:

> Hi Yi,
>
> I've had a go at getting your dns.py code running, but can't get it
> working yet.
>
> I created the dns.py file in ryu/ryu/lib/packet, with your code in it, and
> updated nmeta tc_policy.py to import it:
>
> from ryu.lib.packet import dns
> <snip>
>             if pkt_udp:
>                 if pkt_udp.src_port == 53 or pkt_udp.dst_port == 53:
>                     pkt_dns = pkt.get_protocol(dns.dns)
>                     if pkt_dns:
>                         print "TakeshiTseng dns worked...!"
>                     else:
>                         print "TakeshiTseng dns failed, pkt_dns is %s" %
> pkt_dns
> <snip>
>
> The output when a UDP DNS packet-in event occurs is:
>     dns_experimental_TakeshiTseng.dns failed, pkt_dns is None
>
> Any idea why it isn't parsing valid DNS packets?
>
> Regards,
>
> Matt.
>
> ------------------------------
> From: a86487...@gmail.com
> Date: Mon, 13 Apr 2015 19:20:59 +0800
> To: matthew_john_ha...@hotmail.com
> CC: ryu-devel@lists.sourceforge.net
>
> Subject: Re: [Ryu-devel] Parsing DNS packets with Ryu?
>
> Hi
>
> I wrote DNS packet parser, but I don't know how to test it.
>
> I would appreciate it if someone can help me to test it.
>
> https://github.com/TakeshiTseng/ryu/blob/dns/ryu/lib/packet/dns.py
>
>
> Yi
>
> 2015-04-13 16:08 GMT+08:00 Matthew Hayes <matthew_john_ha...@hotmail.com>:
>
> Thank you to those who replied to my question re DNS parsing. I've since
> used the dpkt library to do the DNS decode, and it is working fine.
>
> FYI, this was for a Ryu app called nmeta that does policy-based traffic
> classification, see:
>
>     http://mattjhayes.github.io/nmeta/
>
> I have some observations on how the LLDP module could be improved, but
> will send as a separate email.
>
> Thanks,
>
> Matt
>
> ------------------------------
> From: linton...@gmail.com
> Date: Mon, 16 Mar 2015 14:09:18 +0800
> To: ryu-devel@lists.sourceforge.net
> Subject: Re: [Ryu-devel] Parsing DNS packets with Ryu?
>
> Hi, Matthew Hayes
>
> There is no DNS parser lib in Ryu but you can use dpkt (
> https://pypi.python.org/pypi/dpkt)
> to parsing DNS packet.
>
>
> Cheers,
>
> Che-Wei Lin <http://about.me/linton.tw>,  John Lin
> Institute of Communication Engineering,
> National Tsing Hua University
> [image: ??? on about.me]
> E-mail: linton...@gmail.com
> Blog: linton.tw
> Mobile: +886-952-301-269
>
>
> ------------------------------------------------------------------------------
> Dive into the World of Parallel Programming The Go Parallel Website,
> sponsored by Intel and developed in partnership with Slashdot Media, is
> your hub for all things parallel software development, from weekly thought
> leadership blogs to news, videos, case studies, tutorials and more. Take a
> look and join the conversation now. http://goparallel.sourceforge.net/
> _______________________________________________ Ryu-devel mailing list
> Ryu-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/ryu-devel
>
>
> ------------------------------------------------------------------------------
> BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
> Develop your own process in accordance with the BPMN 2 standard
> Learn Process modeling best practices with Bonita BPM through live
> exercises
> http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual-
> event?utm_
> source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF
> _______________________________________________
> Ryu-devel mailing list
> Ryu-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/ryu-devel
>
>
>
>
> --
>
> -----
> Yi Tseng (a.k.a Takeshi)
> Taiwan National Chiao Tung University
> Department of Computer Science
>
> -----
>
> ------------------------------------------------------------------------------
> BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT Develop your
> own process in accordance with the BPMN 2 standard Learn Process modeling
> best practices with Bonita BPM through live exercises
> http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual-
> event?utm_
> source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF
> _______________________________________________ Ryu-devel mailing list
> Ryu-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/ryu-devel
>
>
> ------------------------------------------------------------------------------
> BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
> Develop your own process in accordance with the BPMN 2 standard
> Learn Process modeling best practices with Bonita BPM through live
> exercises
> http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual-
> event?utm_
> source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF
> _______________________________________________
> Ryu-devel mailing list
> Ryu-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/ryu-devel
>
>


-- 

-----
Yi Tseng (a.k.a Takeshi)
Taiwan National Chiao Tung University
Department of Computer Science

-----
------------------------------------------------------------------------------
BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
Develop your own process in accordance with the BPMN 2 standard
Learn Process modeling best practices with Bonita BPM through live exercises
http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF
_______________________________________________
Ryu-devel mailing list
Ryu-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to