mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-08-23 06:35:57 +00:00
remove unnecessary lines from last added test case
This commit is contained in:
parent
8c04009357
commit
fca38fda1a
|
@ -129,11 +129,6 @@ START_TEST(test_tcp_listen_passive_open)
|
||||||
lpcb->local_port, NULL, 0, 12345, 54321, TCP_SYN);
|
lpcb->local_port, NULL, 0, 12345, 54321, TCP_SYN);
|
||||||
EXPECT(p != NULL);
|
EXPECT(p != NULL);
|
||||||
if (p != NULL) {
|
if (p != NULL) {
|
||||||
struct tcp_hdr* tcphdr;
|
|
||||||
pbuf_remove_header(p, sizeof(struct ip_hdr));
|
|
||||||
tcphdr = (struct tcp_hdr *)p->payload;
|
|
||||||
TCPH_FLAGS_SET(tcphdr, TCP_SYN);
|
|
||||||
pbuf_add_header(p, sizeof(struct ip_hdr));
|
|
||||||
/* pass the segment to tcp_input */
|
/* pass the segment to tcp_input */
|
||||||
test_tcp_input(p, &netif);
|
test_tcp_input(p, &netif);
|
||||||
/* check if counters are as expected */
|
/* check if counters are as expected */
|
||||||
|
@ -146,11 +141,6 @@ START_TEST(test_tcp_listen_passive_open)
|
||||||
EXPECT(p != NULL);
|
EXPECT(p != NULL);
|
||||||
EXPECT(p->next == NULL);
|
EXPECT(p->next == NULL);
|
||||||
if ((p != NULL) && (p->next == NULL)) {
|
if ((p != NULL) && (p->next == NULL)) {
|
||||||
struct tcp_hdr* tcphdr;
|
|
||||||
pbuf_remove_header(p, sizeof(struct ip_hdr));
|
|
||||||
tcphdr = (struct tcp_hdr *)p->payload;
|
|
||||||
TCPH_FLAGS_SET(tcphdr, TCP_SYN);
|
|
||||||
pbuf_add_header(p, sizeof(struct ip_hdr));
|
|
||||||
p->len -= 2;
|
p->len -= 2;
|
||||||
p->tot_len -= 2;
|
p->tot_len -= 2;
|
||||||
/* pass the segment to tcp_input */
|
/* pass the segment to tcp_input */
|
||||||
|
|
Loading…
Reference in New Issue
Block a user