Home
last modified time | relevance | path

Searched refs:ethernet_frame_ptr (Results 1 – 6 of 6) sorted by relevance

/NetX-Duo-v6.4.1/test/regression/interoperability_test/
Dnx_pcap_network_driver.c378 ULONG *ethernet_frame_ptr; in _nx_pcap_network_driver() local
509 ethernet_frame_ptr = (ULONG *) (packet_ptr -> nx_packet_prepend_ptr - 2); in _nx_pcap_network_driver()
512 *ethernet_frame_ptr = driver_req_ptr -> nx_ip_driver_physical_address_msw; in _nx_pcap_network_driver()
513 *(ethernet_frame_ptr+1) = driver_req_ptr -> nx_ip_driver_physical_address_lsw; in _nx_pcap_network_driver()
514 … *(ethernet_frame_ptr+2) = (interface_ptr -> nx_interface_physical_address_msw << 16) | in _nx_pcap_network_driver()
516 … *(ethernet_frame_ptr+3) = (interface_ptr -> nx_interface_physical_address_lsw << 16); in _nx_pcap_network_driver()
519 *(ethernet_frame_ptr+3) |= NX_ETHERNET_ARP; in _nx_pcap_network_driver()
521 *(ethernet_frame_ptr+3) |= NX_ETHERNET_ARP; in _nx_pcap_network_driver()
523 *(ethernet_frame_ptr+3) |= NX_ETHERNET_RARP; in _nx_pcap_network_driver()
527 *(ethernet_frame_ptr + 3) |= NX_ETHERNET_PPPOE_DISCOVERY; in _nx_pcap_network_driver()
[all …]
/NetX-Duo-v6.4.1/test/regression/netxduo_test/
Dnetx_rarp_multiple_interfaces_test.c190 ULONG *ethernet_frame_ptr; in fake_rarp_response_packet() local
259 ethernet_frame_ptr = (ULONG *) (my_packet -> nx_packet_prepend_ptr - 2); in fake_rarp_response_packet()
262 *ethernet_frame_ptr = 0x00000011; in fake_rarp_response_packet()
263 *(ethernet_frame_ptr+1) = 0x22334456; in fake_rarp_response_packet()
264 *(ethernet_frame_ptr+2) = (0x00000011 << 16) | (0x22334457 >> 16); in fake_rarp_response_packet()
265 *(ethernet_frame_ptr+3) = ((0x22334457 & 0xFFFF) << 16); in fake_rarp_response_packet()
266 *(ethernet_frame_ptr+3) |= NX_ETHERNET_RARP; in fake_rarp_response_packet()
269 NX_CHANGE_ULONG_ENDIAN(*(ethernet_frame_ptr)); in fake_rarp_response_packet()
270 NX_CHANGE_ULONG_ENDIAN(*(ethernet_frame_ptr+1)); in fake_rarp_response_packet()
271 NX_CHANGE_ULONG_ENDIAN(*(ethernet_frame_ptr+2)); in fake_rarp_response_packet()
[all …]
Dnetx_rarp_basic_processing_test.c348 ULONG *ethernet_frame_ptr; in fake_rarp_response_packet() local
417 ethernet_frame_ptr = (ULONG *) (my_packet -> nx_packet_prepend_ptr - 2); in fake_rarp_response_packet()
420 *ethernet_frame_ptr = 0x00000011; in fake_rarp_response_packet()
421 *(ethernet_frame_ptr+1) = 0x22334456; in fake_rarp_response_packet()
422 *(ethernet_frame_ptr+2) = (0x00000011 << 16) | (0x22334457 >> 16); in fake_rarp_response_packet()
423 *(ethernet_frame_ptr+3) = ((0x22334457 & 0xFFFF) << 16); in fake_rarp_response_packet()
424 *(ethernet_frame_ptr+3) |= NX_ETHERNET_RARP; in fake_rarp_response_packet()
427 NX_CHANGE_ULONG_ENDIAN(*(ethernet_frame_ptr)); in fake_rarp_response_packet()
428 NX_CHANGE_ULONG_ENDIAN(*(ethernet_frame_ptr+1)); in fake_rarp_response_packet()
429 NX_CHANGE_ULONG_ENDIAN(*(ethernet_frame_ptr+2)); in fake_rarp_response_packet()
[all …]
/NetX-Duo-v6.4.1/common/src/
Dnx_link.c910 ULONG *ethernet_frame_ptr; in nx_link_ethernet_header_add() local
940 ethernet_frame_ptr = (ULONG *)(packet_ptr -> nx_packet_prepend_ptr - 2); in nx_link_ethernet_header_add()
943 *ethernet_frame_ptr = physical_address_msw; in nx_link_ethernet_header_add()
944 NX_CHANGE_ULONG_ENDIAN(*(ethernet_frame_ptr)); in nx_link_ethernet_header_add()
945 *(++ethernet_frame_ptr) = physical_address_lsw; in nx_link_ethernet_header_add()
946 NX_CHANGE_ULONG_ENDIAN(*(ethernet_frame_ptr)); in nx_link_ethernet_header_add()
947 *(++ethernet_frame_ptr) = (interface_ptr -> nx_interface_physical_address_msw << 16) | in nx_link_ethernet_header_add()
949 NX_CHANGE_ULONG_ENDIAN(*(ethernet_frame_ptr)); in nx_link_ethernet_header_add()
950 *(++ethernet_frame_ptr) = (interface_ptr -> nx_interface_physical_address_lsw << 16); in nx_link_ethernet_header_add()
954 *(ethernet_frame_ptr) |= NX_LINK_ETHERNET_TPID; in nx_link_ethernet_header_add()
[all …]
Dnx_ram_network_driver.c168 ULONG *ethernet_frame_ptr; in _nx_ram_network_driver() local
411 ethernet_frame_ptr = (ULONG *)(packet_ptr -> nx_packet_prepend_ptr - 2); in _nx_ram_network_driver()
414 *ethernet_frame_ptr = driver_req_ptr -> nx_ip_driver_physical_address_msw; in _nx_ram_network_driver()
415 *(ethernet_frame_ptr + 1) = driver_req_ptr -> nx_ip_driver_physical_address_lsw; in _nx_ram_network_driver()
416 *(ethernet_frame_ptr + 2) = (interface_ptr -> nx_interface_physical_address_msw << 16) | in _nx_ram_network_driver()
418 …*(ethernet_frame_ptr + 3) = (interface_ptr -> nx_interface_physical_address_lsw << 16) | ether_ty… in _nx_ram_network_driver()
421 NX_CHANGE_ULONG_ENDIAN(*(ethernet_frame_ptr)); in _nx_ram_network_driver()
422 NX_CHANGE_ULONG_ENDIAN(*(ethernet_frame_ptr + 1)); in _nx_ram_network_driver()
423 NX_CHANGE_ULONG_ENDIAN(*(ethernet_frame_ptr + 2)); in _nx_ram_network_driver()
424 NX_CHANGE_ULONG_ENDIAN(*(ethernet_frame_ptr + 3)); in _nx_ram_network_driver()
/NetX-Duo-v6.4.1/test/regression/test/
Dnx_ram_network_driver_test_1500.c448 ULONG *ethernet_frame_ptr; in _nx_ram_network_driver_internal() local
820 ethernet_frame_ptr = (ULONG *) (packet_ptr -> nx_packet_prepend_ptr - 2); in _nx_ram_network_driver_internal()
823 *ethernet_frame_ptr = driver_req_ptr -> nx_ip_driver_physical_address_msw; in _nx_ram_network_driver_internal()
824 *(ethernet_frame_ptr+1) = driver_req_ptr -> nx_ip_driver_physical_address_lsw; in _nx_ram_network_driver_internal()
825 *(ethernet_frame_ptr+2) = (interface_ptr -> nx_interface_physical_address_msw << 16) | in _nx_ram_network_driver_internal()
827 *(ethernet_frame_ptr+3) = (interface_ptr -> nx_interface_physical_address_lsw << 16); in _nx_ram_network_driver_internal()
830 *(ethernet_frame_ptr+3) |= NX_ETHERNET_ARP; in _nx_ram_network_driver_internal()
832 *(ethernet_frame_ptr+3) |= NX_ETHERNET_ARP; in _nx_ram_network_driver_internal()
834 *(ethernet_frame_ptr+3) |= NX_ETHERNET_RARP; in _nx_ram_network_driver_internal()
837 *(ethernet_frame_ptr+3) |= NX_ETHERNET_IPV6; in _nx_ram_network_driver_internal()
[all …]