Skip to content

Instantly share code, notes, and snippets.

@necto
Last active October 29, 2019 03:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save necto/adc7072000f4003cb2ee003692f78225 to your computer and use it in GitHub Desktop.
Save necto/adc7072000f4003cb2ee003692f78225 to your computer and use it in GitHub Desktop.
if received_on_port == EXT_DEVICE and flow_emap.has(internal_flow):
return ([...],[ether(h1, saddr=..., daddr=...), ipv4(h2, cksum=...), tcpudp(h3)])
else:
pass
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment