Re: Parsing TCP Header Options In XDP/BPF

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Christian Deacon <gamemann@xxxxxxxxxxx> writes:

> Hi everyone,
>
>
> I wasn't sure whether to submit this under XDP's mailing list or BPF's. 
> However, since it's an XDP program, I figured I'd start here. The issue 
> has to do with the BPF verifier, though.
>
>
> I am trying to parse TCP header options within XDP/BPF. In my case, I 
> want to locate the 'timestamps' option and read/write to the sender and 
> receive timestamps (the option's data, which is eight bytes in total I 
> believe).

We're doing just this in the 'pping' utility, see code here:
https://github.com/xdp-project/bpf-examples/blob/master/pping/pping_kern.c#L83

-Toke




[Index of Archives]     [Linux Networking Development]     [Fedora Linux Users]     [Linux SCTP]     [DCCP]     [Gimp]     [Yosemite Campsites]

  Powered by Linux