Skip to content

How to use SockLevel for setsockopt and IP_MULTICAST_IF #1360

Open
@keepsimple1

Description

@keepsimple1

pub enum SockLevel {

I cannot find how SockLevel is used in the code. For example, setsockopt did not have a level argument:

pub fn setsockopt<O: SetSockOpt>(fd: RawFd, opt: O, val: &O::Val) -> Result<()> {

How can we use SockLevel? I have a use case that needs to do something like this (not real code):

setsockopt(IPPROTO_IP, IP_MULTICAST_IF, <value>);

I cannot find IP_MULTICAST_IF in Nix either. Did I miss it somewhere? Thanks.

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