@@ -500,7 +500,7 @@ static int udp_jump_to_layer(const char *raw_data, int raw_layer_type, int expe
skip_len = l2tp_jump_to_layer ( raw_data + sizeof ( struct mesa_udp_hdr ) , ADDR_TYPE_UDP , expect_layer_type ) ;
} else {
/* <20> <> <EFBFBD> <EFBFBD> UDP<44> <50> <EFBFBD> Ͳ<EFBFBD> ֧<EFBFBD> <D6A7> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ת */
snprintf ( _g_mesa_jump_layer_last_error , PIPE_BUF , " MESA_net_ jump_to_ layer_greedy() not support layer type:%d " , expect_layer_type ) ;
snprintf ( _g_mesa_jump_layer_last_error , PIPE_BUF , " MESA_jump_layer_greedy() not support layer type:%d " , expect_layer_type ) ;
return - 1 ;
}
if ( skip_len < 0 ) {
@@ -1244,7 +1244,7 @@ extern "C" {
Non-NULL: the pointer to expect layer;
NULL: not found expect layer.
*/
const void * MESA_net_ jump_to_ layer ( const void * raw_data , int raw_layer_type , int expect_layer_type )
const void * MESA_jump_layer ( const void * raw_data , int raw_layer_type , int expect_layer_type )
{
int ret ;
@@ -1321,7 +1321,7 @@ const void *MESA_net_jump_to_layer(const void *raw_data, int raw_layer_type, in
break ;
default :
snprintf ( _g_mesa_jump_layer_last_error , PIPE_BUF , " MESA_net_ jump_to_ layer(): unsupport raw_layer_type:%d in MESA_net_ jump_to_ layer()! " , raw_layer_type ) ;
snprintf ( _g_mesa_jump_layer_last_error , PIPE_BUF , " MESA_jump_layer(): unsupport raw_layer_type:%d in MESA_jump_layer()! " , raw_layer_type ) ;
return NULL ;
}
@@ -1333,15 +1333,15 @@ const void *MESA_net_jump_to_layer(const void *raw_data, int raw_layer_type, in
}
/*
<09> <> MESA_net_ jump_to_ layer()<29> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> :
MESA_net_ jump_to_ layer()<29> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> 㿪ʼ , <20> ҵ<EFBFBD> <D2B5> <EFBFBD> һ <EFBFBD> <D2BB> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> IJ<EFBFBD> <C4B2> <EFBFBD> <EFBFBD> ˳<EFBFBD> ;
MESA_net_ jump_to_ layer_greedy()<29> <> һ ֱ<D2BB> <D6B1> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ڲ<EFBFBD> Э<EFBFBD> <D0AD> ͷ, <20> ʺ<EFBFBD> <CABA> <EFBFBD> <EFBFBD> <EFBFBD> ģʽ .
<09> <> MESA_jump_layer()<29> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> :
MESA_jump_layer()<29> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> 㿪ʼ , <20> ҵ<EFBFBD> <D2B5> <EFBFBD> һ <EFBFBD> <D2BB> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> IJ<EFBFBD> <C4B2> <EFBFBD> <EFBFBD> ˳<EFBFBD> ;
MESA_jump_layer_greedy()<29> <> һ ֱ<D2BB> <D6B1> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ڲ<EFBFBD> Э<EFBFBD> <D0AD> ͷ, <20> ʺ<EFBFBD> <CABA> <EFBFBD> <EFBFBD> <EFBFBD> ģʽ .
return value:
Non-NULL: the pointer to expect layer;
NULL: not found expect layer.
*/
const void * MESA_net_ jump_to_ layer_greedy ( const void * raw_data , int raw_layer_type , int expect_layer_type )
const void * MESA_jump_layer_greedy ( const void * raw_data , int raw_layer_type , int expect_layer_type )
{
int skip_len ;
const void * expect_layer ;
@@ -1369,7 +1369,7 @@ const void *MESA_net_jump_to_layer_greedy(const void *raw_data, int raw_layer_ty
expect_layer_type = __ADDR_TYPE_IP_PAIR_V6 ;
}
expect_layer = MESA_net_ jump_to_ layer ( new_next_layer_data , new_raw_layer_type , expect_layer_type ) ;
expect_layer = MESA_jump_layer ( new_next_layer_data , new_raw_layer_type , expect_layer_type ) ;
while ( expect_layer ) {
success_layer = expect_layer ;
@@ -1414,11 +1414,11 @@ const void *MESA_net_jump_to_layer_greedy(const void *raw_data, int raw_layer_ty
break ;
default :
snprintf ( _g_mesa_jump_layer_last_error , PIPE_BUF , " MESA_net_ jump_to_ layer_greedy() not support layer type:%d \n " , expect_layer_type ) ;
snprintf ( _g_mesa_jump_layer_last_error , PIPE_BUF , " MESA_jump_layer_greedy() not support layer type:%d \n " , expect_layer_type ) ;
goto done ;
}
expect_layer = MESA_net_ jump_to_ layer ( new_next_layer_data , new_raw_layer_type , expect_layer_type ) ;
expect_layer = MESA_jump_layer ( new_next_layer_data , new_raw_layer_type , expect_layer_type ) ;
}
done :