fehQlibs 26
Qlibs
Loading...
Searching...
No Matches
Functions | Variables
socket_if.c File Reference

interface handling for LLU More...

#include <sys/types.h>
#include <sys/param.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <net/if.h>
#include "socket_if.h"
Include dependency graph for socket_if.c:

Go to the source code of this file.

Functions

uint32 socket_getifidx (const char *ifname)
 
const char * socket_getifname (uint32 scope_id)
 

Variables

const unsigned char V4loopback [4] = {127,0,0,1}
 
const unsigned char V4localnet [4] = {0,0,0,0}
 
const unsigned char V4mappedprefix [12] = {0,0,0,0, 0,0,0,0, 0,0,0xff,0xff}
 
const unsigned char V6localnet [16] = {0,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,0}
 
const unsigned char V6loopback [16] = {0,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,1}
 

Detailed Description

interface handling for LLU

Authors
fefe, feh ucspi-tcp6

Definition in file socket_if.c.

Function Documentation

◆ socket_getifidx()

uint32 socket_getifidx ( const char *  ifname)

Definition at line 22 of file socket_if.c.

◆ socket_getifname()

const char * socket_getifname ( uint32  scope_id)

Definition at line 29 of file socket_if.c.

Variable Documentation

◆ V4localnet

const unsigned char V4localnet[4] = {0,0,0,0}

Definition at line 16 of file socket_if.c.

◆ V4loopback

const unsigned char V4loopback[4] = {127,0,0,1}

Definition at line 15 of file socket_if.c.

◆ V4mappedprefix

const unsigned char V4mappedprefix[12] = {0,0,0,0, 0,0,0,0, 0,0,0xff,0xff}

Definition at line 18 of file socket_if.c.

◆ V6localnet

const unsigned char V6localnet[16] = {0,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,0}

Definition at line 19 of file socket_if.c.

◆ V6loopback

const unsigned char V6loopback[16] = {0,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,1}

Definition at line 20 of file socket_if.c.