Hi. TI
I am using AM3358 Starter Kit in Switch mode.
SW Version : ti-processor-sdk-linux-am335x-evm-06.01.00.08
I am testing with the following configuration.
When UDP packet is sent from PC2 to PC1 through Switch.
The skb data was parsed at the next point in cpsw_rx_handler () in the cpsw.c file.
The content of the parsed data is as follows:
cpsw_rx_handler()
skb->len:60, data_len:0, mac_len:0, hdr_len:0
skb->mac_header:0xffff, &skb->network_header:0x0, transport_header:0xffff
skb->inner_mac_header:0x0, &skb->inner_network_header:0x0, inner_transport_header:0x0
skb->headers_start[0]:0x0, &skb->headers_end[0]:0xc30b93c2
&skb->head[] : 0xc30b9340 / size : 70
&skb->data[] : 0xc30b9386 / size : 60
&skb->tail[] : 0xc30b93c2 / size : 1470
&skb->end[] : 0xc30b9340
&skb->head[0]:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00
&skb->head[30]:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00
&skb->data[0]:ff:ff:ff:ff:ff:ff:e0:d5:5e:b4:75:a8:08:06:00:01:08:00:06:04:00:01:e0:d5:5e:b4:75:a8:c0:a8
&skb->data[30]:0a:71:00:00:00:00:00:00:c0:a8:0a:72:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00
&skb->tail[0]:87:a3:9e:e7:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00
&skb->tail[30]:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00
&skb->end[00] :00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00
&skb->end[30] :00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:01:00:00:00:00:00:00:00
I checked source_address, source_ip and destination_ip at skb->data.
source_mac_address : e0:d5:5e:b4:75:a8
source_ip : c0:a8:0a:71 (192.168.10.113)
destnation_ip : c0:a8:0a:72 (192.168.10.114)
Q1. Where can I check the contents of the User Data?
Q2. How can I check the value of 0x87a39ee7 in &skb->tail?
Q3. What part of a file should I parse to see data in cpsw, such as the data from Wireshark?
Here is what I captured with wireshark on PC2:
Thank you in advance.
Regards.
Simon.