code: def has_flags(self, *flags):
          
  
          mask = sum(flags)
          return (self.bits & mask) == mask
docs: Check if flags are set on this packet.
  
          returns boolean if all passed flags is set
  
          Example::
  
              >>> pkt = tcp.tcp(bits=(tcp.TCP_SYN | tcp.TCP_ACK))
              >>> pkt.has_flags(tcp.TCP_SYN, tcp.TCP_ACK)
              True