Skip to content

Is there a API for get Route for a packet? #131

Open
@szguoxz

Description

@szguoxz

I mean:
fn GetRoute(packet: &[u8]) -> Route

I couldn't find it.
Or something simple without parse the packet:
fn GetRoute(src: SocketAddr, dst: SocketAddr) -> Route

Of course, it will have to consider ip rule, routing tables ... etc. The kernel got it done, but somehow no where to access it.

Do we have it in the crate?

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