Skip to content

IP_PKTINFO #519

@kazu-yamamoto

Description

@kazu-yamamoto

On Unix:

data IPv4PktInfo = IPv4PktInfo Int HostAddress HostAddress deriving (Eq)

On Windows:

data IPv4PktInfo = IPv4PktInfo ULONG HostAddress deriving (Eq)

This difference makes cross-platform usage impossible.

On Unix, in_pktinfo is defined as follows:

struct in_pktinfo {
    unsigned int   ipi_ifindex;  /* Interface index */
    struct in_addr ipi_spec_dst; /* Local address */
    struct in_addr ipi_addr;     /* Header Destination address */
};

Metadata

Metadata

Assignees

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