summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoryangwei <[email protected]>2023-11-07 10:23:41 +0800
committeryangwei <[email protected]>2023-11-07 10:23:41 +0800
commitb7df12a8b2b93318c37c5c7bf91677eb2be85ce9 (patch)
treec677c29e164487635b550f167178ab32e1c1bdad
parent2ba23e15b027155db0a9ac739503f87c524f91dc (diff)
🌈 style(test_app source code): 移除对于废弃接口的调用
-rw-r--r--test/test_app_sapp.c57
1 files changed, 0 insertions, 57 deletions
diff --git a/test/test_app_sapp.c b/test/test_app_sapp.c
index 5844861..d0778ed 100644
--- a/test/test_app_sapp.c
+++ b/test/test_app_sapp.c
@@ -1782,63 +1782,6 @@ char test_send_pkt(struct streaminfo *stream,void **pme, int thread_seq,const vo
return APP_STATE_GIVEME;
}
-char test_send_iplayer_pkt(struct streaminfo *stream,void **pme, int thread_seq,const void *raw_pkt)
-{
- //struct ip *iphdr;
- /* ICMP request, from 10.10.6.108 to 10.0.6.59 */
- char snd_pkt_data[] =
- {
- 0x45,0x00,0x00,0x54,0x00,0x00,0x40,0x00,
- 0x40,0x01,0x19,0xF9,0x0A,0x0A,0x06,0x6C,
- 0x0A,0x00,0x06,0x3B,
- 0x08,0x00,0xC2,0x6A,0x18,0x8B,0x00,0x07,
- 0xE5,0xB8,0xA8,0x54,0x00,0x00,0x00,0x00,
- 0x22,0x5C,0x06,
- 0x00,0x00,0x00,0x00,0x00,
- 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- 0x00,0x00,0xAA,0xBB,0xCC,0xDD,0xEE,0xFF
- };
-
- //MESA_sendpacket_iplayer(stream->threadnum, (char *)snd_pkt_data, sizeof(snd_pkt_data), 0);
-
- return APP_STATE_GIVEME;
-}
-
-char test_sendfake_ipv4_pkt(struct streaminfo *stream,void **pme, int thread_seq,const void *raw_pkt)
-{
- /* ICMP request, from 10.10.6.108 to 10.0.6.59 */
- char snd_pkt_payload[] =
- {
- 0x08,0x00,0xD9,0x71,0x18,0x8B,0x00,0x07,
- 0xE5,0xB8,0xA8,0x54,0x00,0x00,0x00,0x00,
- 0x11,0x22,0x33,0x44,0x55,0x66,0x77,0x88,
- 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- 0x00,0x00,0xAA,0xBB,0xCC,0xDD,0xEE,0xFF
- };
-
- //MESA_fakepacket_send_ipv4(stream->threadnum, 128, 1, 0x0A0A066C, 0x0A00063B, snd_pkt_payload, sizeof(snd_pkt_payload), 0);
-
- return APP_STATE_GIVEME;
-}
-
-char test_sendfake_tcp_pkt(struct streaminfo *stream,void **pme, int thread_seq,const void *raw_pkt)
-{
- //MESA_fakepacket_send_tcp(stream->threadnum, 0x0A0A066C, 0x0A00063B, 0x1111,0x2222, 0x12345678, 0x87654321, 0x10, "TCP payload test", strlen("TCP payload test"), 0);
- return APP_STATE_GIVEME;
-}
-
-char test_sendfake_udp_pkt(struct streaminfo *stream,void **pme, int thread_seq,const void *raw_pkt)
-{
- //MESA_fakepacket_send_udp(stream->threadnum, 0x0A0A066C, 0x0A00063B, 0x1111,0x2222, "UDP payload test", strlen("UDP payload test"), 0);
- return APP_STATE_GIVEME;
-}
-
static void test_inject_tcp_pkt_with_this_hdr(struct streaminfo *stream,void **pme, int thread_seq,const void *raw_pkt)
{