code: def srflood(x, promisc=None, filter=None, iface=None, nofilter=None, *args, **kargs):  # noqa: E501
      
      s = conf.L3socket(promisc=promisc, filter=filter, iface=iface, nofilter=nofilter)  # noqa: E501
      r = sndrcvflood(s, x, *args, **kargs)
      s.close()
      return r
docs: Flood and receive packets at layer 3
  prn:      function applied to packets received
  unique:   only consider packets whose print
  nofilter: put 1 to avoid use of BPF filters
  filter:   provide a BPF filter
  iface:    listen answers only on the given interface