title: How to check options for scapy functions
body: <p>Currently doing some python programming and I've come across a problem I can't find an answer for. Could be bad Googling... anyhow, I have things such as this</p>
  <pre><code>#  Construct the DNS packet
          DNSpkt = DNS(
              id=pkt[DNS].id, # use same id from captured packet
              qd=pkt[DNS].qd, # copy the question section from packet
              aa=1,       # Set flag for authoritative message
              qr=1,       # Set flag for reply message
              qdcount=1,      # one question  
              ancount=1,  # one answer
              an=Anssec)  # my bogus answer is set in reply
  </code></pre>
  <p>I would like to know how I can view the options a function like DNS takes. There's other ones as well,</p>
  <pre><code>IPpkt =  IP(dst=pkt[IP].src, src=pkt[IP].dst)
  UDPpkt   =  UDP(dport=pkt[UDP].sport, sport=53)
  </code></pre>
  <p>For example, IP has dst and src as an option. I'd like to know how I would know that if all I saw was IP(). I'd like to know what the options take as well. For example, dst takes an ipv4 address. Please correct me on any terms I'm using as I believe that's the reason I can't find an answer for my question. Thank you for your time.</p>