Python: Send IGMP packets with Scapy
Question: I would like to send IGMP packets using scapy, specifically IGMP Leave, IGMP
Membership report. Is it possible to do so?

**UPDATE:**

I was able to eventually generate them. Had to do the following:

1) Install scapy v.2.2.0 as it's described here (including minor alteration in
setup.py): [scapy's contrib is missing after installing scapy on both windows
and fedora](http://stackoverflow.com/questions/17412909/scapys-contrib-is-
missing-after-installing-scapy-on-both-windows-and-fedora)

2) You need to use file from contribution package (features not added to the
core of scapy):

    
    
    import scapy.contrib.igmp
    igmpPacket = scapy.contrib.igmp.IGMP()
    


Answer: Yes, it is possible to send IGMP packets. After googling a bit, I came up with
some useful links that can help you in some direction. On github there exists
a [IGMP](https://github.com/d1b/scapy/blob/master/scapy/contrib/igmp.py) and
[IGMPv3](http://bb.secdev.org/scapy/src/0d201eca59df/scapy/contrib/igmpv3.py)
implementation in scapy. Here is an interesting [mailing
list](http://search.gmane.org/?query=igmp&group=gmane.comp.security.scapy.general)
too. Also, this [post](http://blog.mmmonk.net/2012/01/quick-scapy-example-for-
linux-kernel.html) has an other interesting stuff related to IGMP.

