• Marek Vavruša's avatar
    lua/bpf: support for NET_OFF for dissector · 9704add7
    Marek Vavruša authored
    the packet can now use indirect addressing mode
    using NET_OFF to read from network protocol off
    
    it has convenience dissectors for IPv4 and IPv6,
    that can be used like:
    
    ```
    local net = pkt.net_off
    if net.ver == 4 then
        local ip = net.ip
    else
        local ip6 = net.ip6
    end
    ```
    9704add7
proto.lua 15.7 KB