[dpdk-users] SSL-Packet
Matt Laswell
laswell at infinite.io
Wed Aug 1 15:14:38 CEST 2018
At a minimum, you're going to want to account for options in the TCP and IP
headers. A better way would be to do a little parsing of the IP header to
get the header length field, then using that to find the start of the TCP
header, etc.
--
Matt Laswell
infinite io, inc.
On Wed, Aug 1, 2018 at 5:20 AM, Konstantinos Schoinas <ece8537 at upnet.gr>
wrote:
> Hello,
>
> Can somebody tell me how to cast a tcp packet to an ssl packet?
>
> I tried these lines but i dont things they are completely right.
>
> Struct ssl_record {
> uint8_t type;
> uint16_t version;
> uint16_t length;
> }
>
>
> tcp = (struct tcp_hdr *)(ip + 1);
> ssl = (struct ssl_record *)(tcp + 1);
>
>
More information about the users
mailing list