mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-15 01:01:56 -04:00
qcacmn: Add support to log IP addr of the wow wakeup packet
Add support to log the IP header source and destination address for the first Rx packet received after host wakeup. Change-Id: Ie8cf71c8ce913378687ad2c79ab9d5f46c0c2419 CRs-Fixed: 1106593
This commit is contained in:
parent
1033b6bcf5
commit
a46056182a
1 changed files with 9 additions and 2 deletions
|
|
@ -212,9 +212,11 @@ struct mon_rx_status {
|
|||
#define ARP_REQUEST (1)
|
||||
#define ARP_RESPONSE (2)
|
||||
|
||||
/* IPV4 Related Mask */
|
||||
/* IPV4 header fields offset values */
|
||||
#define IPV4_PKT_LEN_OFFSET 16
|
||||
#define IPV4_TCP_SEQ_NUM_OFFSET 38
|
||||
#define IPV4_SRC_ADDR_OFFSET 26
|
||||
#define IPV4_DST_ADDR_OFFSET 30
|
||||
#define IPV4_SRC_PORT_OFFSET 34
|
||||
#define IPV4_DST_PORT_OFFSET 36
|
||||
|
||||
|
|
@ -224,9 +226,14 @@ struct mon_rx_status {
|
|||
#define ICMP_REQUEST 0x08
|
||||
#define ICMP_RESPONSE 0x00
|
||||
|
||||
/* IPV6 Related Mask */
|
||||
#define IPV6_ADDR_STR "%02x%02x:%02x%02x:%02x%02x:%02x%02x:%02x%02x:%02x%02x:"\
|
||||
"%02x%02x:%02x%02x"
|
||||
|
||||
/* IPV6 header fields offset values */
|
||||
#define IPV6_PKT_LEN_OFFSET 18
|
||||
#define IPV6_TCP_SEQ_NUM_OFFSET 58
|
||||
#define IPV6_SRC_ADDR_OFFSET 22
|
||||
#define IPV6_DST_ADDR_OFFSET 38
|
||||
#define IPV6_SRC_PORT_OFFSET 54
|
||||
#define IPV6_DST_PORT_OFFSET 56
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue