Symbian
Symbian Developer Library

SYMBIAN OS V9.4

Feedback

[Index] [Previous] [Next]

#include <in.h>
Link against: libc.lib

IPPROTO_IP

Interface status: externallyDefinedApi

IPPROTO_IP 0x100

Description

Internet protocol.

[Top]


IPPROTO_ICMP

Interface status: externallyDefinedApi

IPPROTO_ICMP 1

Description

Control message protocol.

[Top]


IPPROTO_TCP

Interface status: externallyDefinedApi

IPPROTO_TCP 6

Description

tcp KProtocolInetTcp

[Top]


IPPROTO_UDP

Interface status: externallyDefinedApi

IPPROTO_UDP 17

Description

user datagram protocol KProtocolInetUdp

[Top]


INADDR_ANY

Interface status: externallyDefinedApi

INADDR_ANY (u_int32_t)0x00000000

Description

IPv4 local host address.

[Top]


INADDR_BROADCAST

Interface status: externallyDefinedApi

INADDR_BROADCAST (u_int32_t)0xffffffff

Description

IPv4 broadcast address.

[Top]


SOL_IP

SOL_IP 0x100

Description

options for IP level KSolInetIp

[Top]


SOL_TCP

SOL_TCP 0x106

Description

options for TCP level KSolInetTcp

[Top]


TCP_NODELAY

TCP_NODELAY 0x304

Description

User-settable options (used with setsockopt). don't delay send to coalesce packets KSoTcpNoDelay

[Top]


TCP_MAXSEG

TCP_MAXSEG 0x303

Description

User-settable options (used with setsockopt). set maximum segment size KSoTcpMaxSegSize

[Top]


IPPROTO_HOPOPTS

IPPROTO_HOPOPTS 0

Description

IP6 hop-by-hop options

[Top]


IPPROTO_IGMP

IPPROTO_IGMP 2

Description

group mgmt protocol

[Top]


IPPROTO_GGP

IPPROTO_GGP 3

Description

gateway2 (deprecated)

[Top]


IPPROTO_IPV4

IPPROTO_IPV4 4

Description

IPv4 encapsulation

[Top]


IPPROTO_IPIP

IPPROTO_IPIP IPPROTO_IPV4

Description

for compatibility

[Top]


IPPROTO_ST

IPPROTO_ST 7

Description

Stream protocol II

[Top]


IPPROTO_EGP

IPPROTO_EGP 8

Description

exterior gateway protocol

[Top]


IPPROTO_PIGP

IPPROTO_PIGP 9

Description

private interior gateway

[Top]


IPPROTO_RCCMON

IPPROTO_RCCMON 10

Description

BBN RCC Monitoring

[Top]


IPPROTO_NVPII

IPPROTO_NVPII 11

Description

network voice protocol

[Top]


IPPROTO_PUP

IPPROTO_PUP 12

Description

pup

[Top]


IPPROTO_ARGUS

IPPROTO_ARGUS 13

Description

Argus

[Top]


IPPROTO_EMCON

IPPROTO_EMCON 14

Description

EMCON

[Top]


IPPROTO_XNET

IPPROTO_XNET 15

Description

Cross Net Debugger

[Top]


IPPROTO_CHAOS

IPPROTO_CHAOS 16

Description

Chaos

[Top]


IPPROTO_MUX

IPPROTO_MUX 18

Description

Multiplexing

[Top]


IPPROTO_MEAS

IPPROTO_MEAS 19

Description

DCN Measurement Subsystems

[Top]


IPPROTO_HMP

IPPROTO_HMP 20

Description

Host Monitoring

[Top]


IPPROTO_PRM

IPPROTO_PRM 21

Description

Packet Radio Measurement

[Top]


IPPROTO_IDP

IPPROTO_IDP 22

Description

xns idp

[Top]


IPPROTO_TRUNK1

IPPROTO_TRUNK1 23

Description

Trunk-1

[Top]


IPPROTO_TRUNK2

IPPROTO_TRUNK2 24

Description

Trunk-2

[Top]


IPPROTO_LEAF1

IPPROTO_LEAF1 25

Description

Leaf-1

[Top]


IPPROTO_LEAF2

IPPROTO_LEAF2 26

Description

Leaf-2

[Top]


IPPROTO_RDP

IPPROTO_RDP 27

Description

Reliable Data

[Top]


IPPROTO_IRTP

IPPROTO_IRTP 28

Description

Reliable Transaction

[Top]


IPPROTO_TP

IPPROTO_TP 29

Description

tp-4 w class negotiation

[Top]


IPPROTO_BLT

IPPROTO_BLT 30

Description

Bulk Data Transfer

[Top]


IPPROTO_NSP

IPPROTO_NSP 31

Description

Network Services

[Top]


IPPROTO_INP

IPPROTO_INP 32

Description

Merit Internodal

[Top]


IPPROTO_SEP

IPPROTO_SEP 33

Description

Sequential Exchange

[Top]


IPPROTO_3PC

IPPROTO_3PC 34

Description

Third Party Connect

[Top]


IPPROTO_IDPR

IPPROTO_IDPR 35

Description

InterDomain Policy Routing

[Top]


IPPROTO_XTP

IPPROTO_XTP 36

Description

XTP

[Top]


IPPROTO_DDP

IPPROTO_DDP 37

Description

Datagram Delivery

[Top]


IPPROTO_CMTP

IPPROTO_CMTP 38

Description

Control Message Transport

[Top]


IPPROTO_TPXX

IPPROTO_TPXX 39

Description

TP++ Transport

[Top]


IPPROTO_IL

IPPROTO_IL 40

Description

IL transport protocol

[Top]


IPPROTO_IPV6

IPPROTO_IPV6 41

Description

IP6 header

[Top]


IPPROTO_SDRP

IPPROTO_SDRP 42

Description

Source Demand Routing

[Top]


IPPROTO_ROUTING

IPPROTO_ROUTING 43

Description

IP6 routing header

[Top]


IPPROTO_FRAGMENT

IPPROTO_FRAGMENT 44

Description

IP6 fragmentation header

[Top]


IPPROTO_IDRP

IPPROTO_IDRP 45

Description

InterDomain Routing

[Top]


IPPROTO_RSVP

IPPROTO_RSVP 46

Description

resource reservation

[Top]


IPPROTO_GRE

IPPROTO_GRE 47

Description

General Routing Encap.

[Top]


IPPROTO_BHA

IPPROTO_BHA 49

Description

BHA

[Top]


IPPROTO_ESP

IPPROTO_ESP 50

Description

IP6 Encap Sec. Payload

[Top]


IPPROTO_AH

IPPROTO_AH 51

Description

IP6 Auth Header

[Top]


IPPROTO_INLSP

IPPROTO_INLSP 52

Description

Integ. Net Layer Security

[Top]


IPPROTO_SWIPE

IPPROTO_SWIPE 53

Description

IP with encryption

[Top]


IPPROTO_NHRP

IPPROTO_NHRP 54

Description

Next Hop Resolution

[Top]


IPPROTO_MOBILE

IPPROTO_MOBILE 55

Description

IP Mobility

[Top]


IPPROTO_TLSP

IPPROTO_TLSP 56

Description

Transport Layer Security

[Top]


IPPROTO_SKIP

IPPROTO_SKIP 57

Description

SKIP

[Top]


IPPROTO_ICMPV6

IPPROTO_ICMPV6 58

Description

ICMP6

[Top]


IPPROTO_NONE

IPPROTO_NONE 59

Description

IP6 no next header

[Top]


IPPROTO_DSTOPTS

IPPROTO_DSTOPTS 60

Description

IP6 destination option

[Top]


IPPROTO_AHIP

IPPROTO_AHIP 61

Description

any host internal protocol

[Top]


IPPROTO_CFTP

IPPROTO_CFTP 62

Description

CFTP

[Top]


IPPROTO_HELLO

IPPROTO_HELLO 63

Description

"hello" routing protocol

[Top]


IPPROTO_SATEXPAK

IPPROTO_SATEXPAK 64

Description

SATNET or Backroom EXPAK

[Top]


IPPROTO_KRYPTOLAN

IPPROTO_KRYPTOLAN 65

Description

Kryptolan

[Top]


IPPROTO_RVD

IPPROTO_RVD 66

Description

Remote Virtual Disk

[Top]


IPPROTO_IPPC

IPPROTO_IPPC 67

Description

Pluribus Packet Core

[Top]


IPPROTO_ADFS

IPPROTO_ADFS 68

Description

Any distributed FS

[Top]


IPPROTO_SATMON

IPPROTO_SATMON 69

Description

Satnet Monitoring

[Top]


IPPROTO_VISA

IPPROTO_VISA 70

Description

VISA Protocol

[Top]


IPPROTO_IPCV

IPPROTO_IPCV 71

Description

Packet Core Utility

[Top]


IPPROTO_CPNX

IPPROTO_CPNX 72

Description

Comp. Prot. Net. Executive

[Top]


IPPROTO_CPHB

IPPROTO_CPHB 73

Description

Comp. Prot. HeartBeat

[Top]


IPPROTO_WSN

IPPROTO_WSN 74

Description

Wang Span Network

[Top]


IPPROTO_PVP

IPPROTO_PVP 75

Description

Packet Video Protocol

[Top]


IPPROTO_BRSATMON

IPPROTO_BRSATMON 76

Description

BackRoom SATNET Monitoring

[Top]


IPPROTO_ND

IPPROTO_ND 77

Description

Sun net disk proto (temp.)

[Top]


IPPROTO_WBMON

IPPROTO_WBMON 78

Description

WIDEBAND Monitoring

[Top]


IPPROTO_WBEXPAK

IPPROTO_WBEXPAK 79

Description

WIDEBAND EXPAK

[Top]


IPPROTO_EON

IPPROTO_EON 80

Description

ISO cnlp

[Top]


IPPROTO_VMTP

IPPROTO_VMTP 81

Description

VMTP

[Top]


IPPROTO_SVMTP

IPPROTO_SVMTP 82

Description

Secure VMTP

[Top]


IPPROTO_VINES

IPPROTO_VINES 83

Description

Banyon VINES

[Top]


IPPROTO_TTP

IPPROTO_TTP 84

Description

TTP

[Top]


IPPROTO_IGP

IPPROTO_IGP 85

Description

NSFNET-IGP

[Top]


IPPROTO_DGP

IPPROTO_DGP 86

Description

dissimilar gateway prot.

[Top]


IPPROTO_TCF

IPPROTO_TCF 87

Description

TCF

[Top]


IPPROTO_IGRP

IPPROTO_IGRP 88

Description

Cisco or GXS IGRP

[Top]


IPPROTO_OSPFIGP

IPPROTO_OSPFIGP 89

Description

OSPFIGP

[Top]


IPPROTO_SRPC

IPPROTO_SRPC 90

Description

Strite RPC protocol

[Top]


IPPROTO_LARP

IPPROTO_LARP 91

Description

Locus Address Resoloution

[Top]


IPPROTO_MTP

IPPROTO_MTP 92

Description

Multicast Transport

[Top]


IPPROTO_AX25

IPPROTO_AX25 93

Description

AX.25 Frames

[Top]


IPPROTO_IPEIP

IPPROTO_IPEIP 94

Description

IP encapsulated in IP

[Top]


IPPROTO_MICP

IPPROTO_MICP 95

Description

Mobile Int.ing control

[Top]


IPPROTO_SCCSP

IPPROTO_SCCSP 96

Description

Semaphore Comm. security

[Top]


IPPROTO_ETHERIP

IPPROTO_ETHERIP 97

Description

Ethernet IP encapsulation

[Top]


IPPROTO_ENCAP

IPPROTO_ENCAP 4

Description

encapsulation header

[Top]


IPPROTO_APES

IPPROTO_APES 99

Description

any private encr. scheme

[Top]


IPPROTO_GMTP

IPPROTO_GMTP 100

Description

GMTP

[Top]


IPPROTO_PIM

IPPROTO_PIM 103

Description

Protocol Independent Mcast

[Top]


IPPROTO_CARP

IPPROTO_CARP 112

Description

CARP

[Top]


IPPROTO_PGM

IPPROTO_PGM 113

Description

PGM

[Top]


IPPROTO_PFSYNC

IPPROTO_PFSYNC 240

Description

PFSYNC

[Top]


IPPROTO_MAX

IPPROTO_MAX 0x101

Description

Maximum value for IPPROTO options

[Top]


IPPROTO_DONE

IPPROTO_DONE 257

Description

last return value of _input(), meaning all job for this pkt is done.

[Top]


IPPROTO_SPACER

IPPROTO_SPACER 32767

Description

Defined to avoid confusion. The master value is defined by PROTO_SPACER in sys//protosw.h.

[Top]


IPPORT_RESERVED

IPPORT_RESERVED 1024

Description

Ports < IPPORT_RESERVED are reserved for privileged processes (e.g. root). (IP_PORTRANGE_LOW)

[Top]


IPPORT_HIFIRSTAUTO

IPPORT_HIFIRSTAUTO 49152

Description

Default local port range, used by both IP_PORTRANGE_DEFAULT and IP_PORTRANGE_HIGH.

[Top]


IPPORT_HILASTAUTO

IPPORT_HILASTAUTO 65535

Description

Default local port range, used by both IP_PORTRANGE_DEFAULT and IP_PORTRANGE_HIGH.

[Top]


IPPORT_RESERVEDSTART

IPPORT_RESERVEDSTART 600

Description

Scanning for a free reserved port return a value below IPPORT_RESERVED, but higher than IPPORT_RESERVEDSTART. Traditionally the start value was 512, but that conflicts with some well-known-services that firewalls may have a fit if we use.

[Top]


IPPORT_MAX

IPPORT_MAX 65535

Description

Defines MAX value

[Top]


IN_CLASSA

IN_CLASSA (i) (((u_int32_t)(i) & 0x80000000) == 0)

Description

Definitions of bits in internet address integers. On subnets, the decomposition of addresses to host and net parts is done according to subnet mask, not the masks here.

Parameters

i

[Top]


IN_CLASSA_NET

IN_CLASSA_NET 0xff000000

Description

Definitions of bits in internet address integers. On subnets, the decomposition of addresses to host and net parts is done according to subnet mask, not the masks here.

[Top]


IN_CLASSA_NSHIFT

IN_CLASSA_NSHIFT 24

Description

Definitions of bits in internet address integers. On subnets, the decomposition of addresses to host and net parts is done according to subnet mask, not the masks here.

[Top]


IN_CLASSA_HOST

IN_CLASSA_HOST 0x00ffffff

Description

Definitions of bits in internet address integers. On subnets, the decomposition of addresses to host and net parts is done according to subnet mask, not the masks here.

[Top]


IN_CLASSA_MAX

IN_CLASSA_MAX 128

Description

Definitions of bits in internet address integers. On subnets, the decomposition of addresses to host and net parts is done according to subnet mask, not the masks here.

[Top]


IN_CLASSB

IN_CLASSB (i) (((u_int32_t)(i) & 0xc0000000) == 0x80000000)

Description

Definitions of bits in internet address integers. On subnets, the decomposition of addresses to host and net parts is done according to subnet mask, not the masks here.

Parameters

i

[Top]


IN_CLASSB_NET

IN_CLASSB_NET 0xffff0000

Description

Definitions of bits in internet address integers. On subnets, the decomposition of addresses to host and net parts is done according to subnet mask, not the masks here.

[Top]


IN_CLASSB_NSHIFT

IN_CLASSB_NSHIFT 16

Description

Definitions of bits in internet address integers. On subnets, the decomposition of addresses to host and net parts is done according to subnet mask, not the masks here.

[Top]


IN_CLASSB_HOST

IN_CLASSB_HOST 0x0000ffff

Description

Definitions of bits in internet address integers. On subnets, the decomposition of addresses to host and net parts is done according to subnet mask, not the masks here.

[Top]


IN_CLASSB_MAX

IN_CLASSB_MAX 65536

Description

Definitions of bits in internet address integers. On subnets, the decomposition of addresses to host and net parts is done according to subnet mask, not the masks here.

[Top]


IN_CLASSC

IN_CLASSC (i) (((u_int32_t)(i) & 0xe0000000) == 0xc0000000)

Description

Definitions of bits in internet address integers. On subnets, the decomposition of addresses to host and net parts is done according to subnet mask, not the masks here.

Parameters

i

[Top]


IN_CLASSC_NET

IN_CLASSC_NET 0xffffff00

Description

Definitions of bits in internet address integers. On subnets, the decomposition of addresses to host and net parts is done according to subnet mask, not the masks here.

[Top]


IN_CLASSC_NSHIFT

IN_CLASSC_NSHIFT 8

Description

Definitions of bits in internet address integers. On subnets, the decomposition of addresses to host and net parts is done according to subnet mask, not the masks here.

[Top]


IN_CLASSC_HOST

IN_CLASSC_HOST 0x000000ff

Description

Definitions of bits in internet address integers. On subnets, the decomposition of addresses to host and net parts is done according to subnet mask, not the masks here.

[Top]


IN_CLASSD

IN_CLASSD (i) (((u_int32_t)(i) & 0xf0000000) == 0xe0000000)

Description

Definitions of bits in internet address integers. On subnets, the decomposition of addresses to host and net parts is done according to subnet mask, not the masks here.

Parameters

i

[Top]


IN_CLASSD_NET

IN_CLASSD_NET 0xf0000000

Description

Definitions of bits in internet address integers. On subnets, the decomposition of addresses to host and net parts is done according to subnet mask, not the masks here.

[Top]


IN_CLASSD_NSHIFT

IN_CLASSD_NSHIFT 28

Description

Definitions of bits in internet address integers. On subnets, the decomposition of addresses to host and net parts is done according to subnet mask, not the masks here.

[Top]


IN_CLASSD_HOST

IN_CLASSD_HOST 0x0fffffff

Description

Definitions of bits in internet address integers. On subnets, the decomposition of addresses to host and net parts is done according to subnet mask, not the masks here.

[Top]


IN_MULTICAST

IN_MULTICAST (i) IN_CLASSD(i)

Description

Definitions of bits in internet address integers. On subnets, the decomposition of addresses to host and net parts is done according to subnet mask, not the masks here.

Parameters

i

[Top]


IN_EXPERIMENTAL

IN_EXPERIMENTAL (i) (((u_int32_t)(i) & 0xf0000000) == 0xf0000000)

Description

Definitions of bits in internet address integers. On subnets, the decomposition of addresses to host and net parts is done according to subnet mask, not the masks here.

Parameters

i

[Top]


IN_BADCLASS

IN_BADCLASS (i) (((u_int32_t)(i) & 0xf0000000) == 0xf0000000)

Description

Definitions of bits in internet address integers.

Parameters

i

[Top]


INADDR_LOOPBACK

INADDR_LOOPBACK (u_int32_t)0x7f000001

Description

Definitions of bits in internet address integers. On subnets, the decomposition of addresses to host and net parts is done according to subnet mask, not the masks here.

[Top]


INADDR_NONE

INADDR_NONE 0xffffffff

Description

Definitions of bits in internet address integers.

[Top]


INADDR_UNSPEC_GROUP

INADDR_UNSPEC_GROUP (u_int32_t)0xe0000000

Description

Definitions of bits in internet address integers.

[Top]


INADDR_ALLHOSTS_GROUP

INADDR_ALLHOSTS_GROUP (u_int32_t)0xe0000001

Description

Definitions of bits in internet address integers.

[Top]


INADDR_MAX_LOCAL_GROUP

INADDR_MAX_LOCAL_GROUP (u_int32_t)0xe00000ff

Description

Definitions of bits in internet address integers.

[Top]


IN_LOOPBACKNET

IN_LOOPBACKNET 127

Description

Definitions of bits in internet address integers. On subnets, the decomposition of addresses to host and net parts is done according to subnet mask, not the masks here.

[Top]


IP_OPTIONS

IP_OPTIONS 0x306

Description

Options for use with [gs]etsockopt at the IP level. First word of comment is data type; bool is stored in int. buf or ip_opts; set or get IP options

[Top]


IP_HDRINCL

IP_HDRINCL 0x308

Description

int; header is included with data

[Top]


IP_TOS

IP_TOS 0x309

Description

Options for use with [gs]etsockopt at the IP level. First word of comment is data type; bool is stored in int. int; IP type of service and preced.

[Top]


IP_TTL

IP_TTL 0x310

Description

Options for use with [gs]etsockopt at the IP level. First word of comment is data type; bool is stored in int. int; IP type of service and preced.

[Top]


IP_RECVOPTS

IP_RECVOPTS -1

Description

Options for use with [gs]etsockopt at the IP level. First word of comment is data type; bool is stored in int. bool; receive all IP opts w dgram

[Top]


IP_RECVRETOPTS

IP_RECVRETOPTS -2

Description

Options for use with [gs]etsockopt at the IP level. First word of comment is data type; bool is stored in int. bool; receive IP opts for response

[Top]


IP_RECVDSTADDR

IP_RECVDSTADDR -3

Description

Options for use with [gs]etsockopt at the IP level. First word of comment is data type; bool is stored in int. bool; receive IP dst addr wdgram

[Top]


IP_RETOPTS

IP_RETOPTS -4

Description

Options for use with [gs]etsockopt at the IP level. First word of comment is data type; bool is stored in int. ip_opts; set or get IP options

[Top]


IP_MULTICAST_IF

IP_MULTICAST_IF -5

Description

set or get IP multicast interface

[Top]


IP_MULTICAST_TTL

IP_MULTICAST_TTL -6

Description

set or get IP multicast timetolive

[Top]


IP_MULTICAST_LOOP

IP_MULTICAST_LOOP -7

Description

u_char; set or get IP multicast loopback

[Top]


IP_ADD_MEMBERSHIP

IP_ADD_MEMBERSHIP 0x46d

Description

ip_mreqip_mreq; add an IP group membership

[Top]


IP_DROP_MEMBERSHIP

IP_DROP_MEMBERSHIP 0x46e

Description

ip_mreqip_mreq; drop an IP group membership

[Top]


IP_RSVP_ON

IP_RSVP_ON 15

Description

enable RSVP in kernel

[Top]


IP_RSVP_OFF

IP_RSVP_OFF 16

Description

disable RSVP in kernel

[Top]


IP_RSVP_VIF_ON

IP_RSVP_VIF_ON 17

Description

set RSVP per-vif socket

[Top]


IP_RSVP_VIF_OFF

IP_RSVP_VIF_OFF 18

Description

unset RSVP per-vif socket

[Top]


IP_PORTRANGE

IP_PORTRANGE 19

Description

int; range to choose for unspec port

[Top]


IP_RECVIF

IP_RECVIF 20

Description

bool; receive reception if w dgram

[Top]


IP_IPSEC_POLICY

IP_IPSEC_POLICY 21

Description

int; set or get security policy

[Top]


IP_FAITH

IP_FAITH 22

Description

bool; accept FAITH'ed connections

[Top]


IP_ONESBCAST

IP_ONESBCAST 23

Description

bool: send all-ones broadcast

[Top]


IP_FW_TABLE_ADD

IP_FW_TABLE_ADD 40

Description

add entry

[Top]


IP_FW_TABLE_DEL

IP_FW_TABLE_DEL 41

Description

delete entry

[Top]


IP_FW_TABLE_FLUSH

IP_FW_TABLE_FLUSH 42

Description

flush table

[Top]


IP_FW_TABLE_GETSIZE

IP_FW_TABLE_GETSIZE 43

Description

get table size

[Top]


IP_FW_TABLE_LIST

IP_FW_TABLE_LIST 44

Description

list table contents

[Top]


IP_FW_ADD

IP_FW_ADD 50

Description

add a firewall rule to chain

[Top]


IP_FW_DEL

IP_FW_DEL 51

Description

delete a firewall rule from chain

[Top]


IP_FW_FLUSH

IP_FW_FLUSH 52

Description

flush firewall rule chain

[Top]


IP_FW_ZERO

IP_FW_ZERO 53

Description

clear single or all firewall counter(s)

[Top]


IP_FW_GET

IP_FW_GET 54

Description

get entire firewall rule chain

[Top]


IP_FW_RESETLOG

IP_FW_RESETLOG 55

Description

reset logging counters

[Top]


IP_DUMMYNET_CONFIGURE

IP_DUMMYNET_CONFIGURE 60

Description

add or configure a dummynet pipe

[Top]


IP_DUMMYNET_DEL

IP_DUMMYNET_DEL 61

Description

delete a dummynet pipe from chain

[Top]


IP_DUMMYNET_FLUSH

IP_DUMMYNET_FLUSH 62

Description

flush dummynet

[Top]


IP_DUMMYNET_GET

IP_DUMMYNET_GET 64

Description

get entire dummynet pipes

[Top]


IP_RECVTTL

IP_RECVTTL 65

Description

bool; receive IP TTL w dgram

[Top]


IP_MINTTL

IP_MINTTL 66

Description

minimum TTL for packet or drop

[Top]


IP_DONTFRAG

IP_DONTFRAG 67

Description

don't fragment packet

[Top]


IP_DEFAULT_MULTICAST_TTL

IP_DEFAULT_MULTICAST_TTL 1

Description

Defaults and limits for options. normally limit m'casts to 1 hop

[Top]


IP_DEFAULT_MULTICAST_LOOP

IP_DEFAULT_MULTICAST_LOOP 1

Description

Defaults and limits for options. normally hear sends if a member

[Top]


Typedef uint8_t

Interface status: externallyDefinedApi

typedef __uint8_t uint8_t;

Description

denotes a unsigned integer type with a width of exactly 8 bits.

[Top]


Typedef sa_family_t

Interface status: externallyDefinedApi

typedef __sa_family_t sa_family_t;

Description

Address family type

[Top]


htonl(uint32_t)

Interface status: externallyDefinedApi

IMPORT_C uint32_t htonl(uint32_t);

Description

These routines convert 16 and 32 bit quantities between network byte order and host byte order. On machines which have a byte order which is the same as the network order, routines are defined as null macros.

These routines are most often used in conjunction with Internet addresses and ports as returned by gethostbyname and getservent .

Bugs:

On the VAX bytes are handled backwards from most everyone else in the world.

Parameters

uint32_tuint32_t

Note: This description also covers the following functions - htons(uint16_t)htons(uint16_t) ntohl ntohs

Return value

uint32_tuint32_t

See also:

[Top]


htons(uint16_t)

Interface status: externallyDefinedApi

IMPORT_C uint16_t htons(uint16_t);

Description

Parameters

uint16_tuint16_t

Refer to htonl(uint32_t)htonl(uint32_t) for the documentation

Return value

uint16_tuint16_t

See also:

[Top]


bindresvport(int,struct sockaddr_in *)

Interface status: externallyDefinedApi

IMPORT_C int bindresvport(int __sockfd, struct sockaddr_in *__sock_in);

Description

If sin is a pointer to a struct sockaddr_insockaddr_in the appropriate fields in the structure should be defined. Note that sin->sin_family must be initialized to the address family of the socket, passed by sd. If sin->sin_port is '0' an anonymous port (in the range 600-1023) will be chosen and, if bind is successful, the sin->sin_port will be updated to contain the allocated port.

If sin is the NULL pointer an anonymous port will be allocated (as above). However, there is no way for bindresvport to return the allocated port in this case.

The function prototype of bindresvport is biased to AF_INET socket.

Examples:

#include <sys/socket.h>
#include <netinet/in.h>
#include <unistd.h>
void BindResvPort()
{
   int sockfd;
   sockaddr_in selfAddr;
   sockfd = socket(AF_INET,SOCK_STREAM,IPPROTO_TCP);
       
   selfAddr.sin_family = AF_INET;
   selfAddr.sin_addr.s_addr = INADDR_ANY;
   selfAddr.sin_port = htons(100);
   bindresvport(sockfd, &selfAddr;);
   close(sockfd);
}

Parameters

int __sockfd

struct sockaddr_insockaddr_in *__sock_in

The bindresvport function is used to bind a socket descriptor to a privileged IP port, i.e. a port with a number in the range 0-1023.

Return value

int

The bindresvport(int,struct sockaddr_in *)bindresvport(int,struct sockaddr_in *) function returns the value 0 if successful. Otherwise it returns the value -1 and sets the global variable errno to indicate the error.