File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
uefi-test-runner/src/proto/network Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -4,9 +4,9 @@ pub fn test() {
44 info ! ( "Testing Network protocols" ) ;
55
66 // Test idempotence of network stuff
7- for _ in 0 ..2 {
7+ for _ in 0 ..1 {
88 #[ cfg( feature = "pxe" ) ]
9- // pxe::test();
9+ pxe:: test ( ) ;
1010 snp:: test ( ) ;
1111 }
1212}
@@ -58,7 +58,7 @@ mod wire_helper {
5858 packet. set_header_len ( IPV4_HEADER_LEN as u8 ) ;
5959 packet. set_dscp ( 0 /* QOS */ ) ;
6060 packet. set_total_len ( ( IPV4_HEADER_LEN + payload. len ( ) ) as u16 ) ;
61- packet. set_ident ( 42 ) ;
61+ packet. set_ident ( 1 ) ;
6262 packet. set_dont_frag ( true ) ;
6363 packet. set_frag_offset ( 0 ) ;
6464 packet. set_hop_limit ( 42 /*TTL */ ) ;
Original file line number Diff line number Diff line change @@ -94,8 +94,8 @@ pub fn test() {
9494 // Arbitrary high-level payload.
9595 let payload: [ u8 ; 2 ] = 0x1337_u16 . to_ne_bytes ( ) ;
9696 // IPv4 can be arbitrary, not used for routing here.
97- let srd_addr_ipv4 = Ipv4Addr :: new ( 192 , 168 , 17 , 2 ) ;
98- let dst_addr_ipv4 = Ipv4Addr :: new ( 192 , 168 , 17 , 3 ) ;
97+ let srd_addr_ipv4 = Ipv4Addr :: new ( 192 , 168 , 17 , 15 ) ;
98+ let dst_addr_ipv4 = Ipv4Addr :: new ( 192 , 168 , 17 , 2 ) ;
9999 let frame = create_udp_ipv4_ethernet_packet (
100100 srd_addr_ipv4. into ( ) ,
101101 dst_addr_ipv4. into ( ) ,
You can’t perform that action at this time.
0 commit comments