def ipproto_to_str(t):
 if (t in _ipproto_to_str):
  return _ipproto_to_str[t]
 else:
  return ('%02x' % (t,))

def ipproto_to_str ( t ) : if ( t in _ipproto_to_str ) : return _ipproto_to_str [ t ] else : return ( '%02x' % ( t , ) )
given a numeric ip protocol number .