Support #4088
closed
  
    
    
  
SCPacketTuple() not return correct protocol type
 
        
        Added by Arafat Ali about 5 years ago.
        Updated over 3 years ago.
        
  
  
  
  Description
  
  with this declaration
ipver, srcip, dstip, proto, sp, dp = SCPacketTuple()
	I want to get the correct value from variable proto. It should return a text like "http" or "tcp" but this just return a number like "6.0". Is this a known bug ? I'm using version 6.0.0 (latest)
   
 
 
  
  
    
    
    
    Confirmed. The Lua support code, for this, and the flow variation among others use lua_pushnumber which copies the value to Lua as a float. We should be using lua_pushinteger.
 
   
  
  
  
  
    
    
    
    
       - Related to Task #4182: lua: Use lua_pushinteger for pushing integer types as integers instead of floats added
 
   
  
  
    
    
    
    
       - Tracker changed from Bug to Support
- Target version deleted (6.0.1)
- Affected Versions deleted (6.0.0beta1)
Moving to support ticket for now.
	#4182 has been created to address the float vs integer issue, but will not be done during Suricata 6.0.
 
   
  
  
    
    
    
    
       - Status changed from New to Closed
 
   
  
 
  
  
 
Also available in:  Atom
  PDF