diff options
author | Ravi Kerur <ravi.kerur@viasat.com> | 2019-07-14 00:11:26 +0000 |
---|---|---|
committer | Ravi Kerur <ravi.kerur@viasat.com> | 2019-07-23 09:56:24 -0700 |
commit | 1ec160d4c99a8dc5b7117abb148f0f89403eab82 (patch) | |
tree | 6b46c0a4acc1cd141bbce7b56f52b0f7e9a881a9 /src | |
parent | 6b8234d93803598ab98c26a7724ede6c5ea51bca (diff) |
nDPI ovs changes.
Signed-off-by: Ravi Kerur <ravi.kerur@viasat.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/include/ndpi_typedefs.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/include/ndpi_typedefs.h b/src/include/ndpi_typedefs.h index 135d97574..9c08e738f 100644 --- a/src/include/ndpi_typedefs.h +++ b/src/include/ndpi_typedefs.h @@ -122,6 +122,20 @@ struct ndpi_ethhdr u_int16_t h_proto; /* data length (<= 1500) or type ID proto (>=1536) */ } PACK_OFF; +/* +++++++++++++++ ARP header +++++++++++++++ */ +PACK_ON +struct ndpi_arphdr { + u_int16_t ar_hrd;/* Format of hardware address. */ + u_int16_t ar_pro;/* Format of protocol address. */ + u_int8_t ar_hln;/* Length of hardware address. */ + u_int8_t ar_pln;/* Length of protocol address. */ + u_int16_t ar_op;/* ARP opcode (command). */ + u_char arp_sha[6];/* sender hardware address */ + u_int32_t arp_spa;/* sender protocol address */ + u_char arp_tha[6];/* target hardware address */ + u_int32_t arp_tpa;/* target protocol address */ +} PACK_OFF; + /* +++++++++++++++++++ LLC header (IEEE 802.2) ++++++++++++++++ */ PACK_ON |