Skip to content

Type cast skb->_skb_refdst to struct dst_entry*? #627

@iBug

Description

@iBug

While inspecting routing decisions, I tried to print ((struct dst_entry*)skb->_skb_refdst)->dev->ifindex and got

--output-skb-metadata must start with skb

Any chance this gets implemented? For example, allowing skb_dst(skb) would be the perfect solution as the actual struct dst_entry* pointer is hidden behind a bit manipulation (you need to remove the "norefcount" bit).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions