code: def sr1flood(x, promisc=None, filter=None, iface=None, nofilter=0, *args, **kargs):  # noqa: E501
      
      s = conf.L3socket(promisc=promisc, filter=filter, nofilter=nofilter, iface=iface)  # noqa: E501
      ans, _ = sndrcvflood(s, x, *args, **kargs)
      s.close()
      if len(ans) > 0:
          return ans[0][1]
      else:
          return None
docs: Flood and receive packets at layer 3 and return only the first answer
  prn:      function applied to packets received
  verbose:  set verbosity level
  nofilter: put 1 to avoid use of BPF filters
  filter:   provide a BPF filter
  iface:    listen answers only on the given interface