Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

cmpt_get_endpoint_cid(3) [hpux man page]

cmpt_get_peer_cid(3)					     Library Functions Manual					      cmpt_get_peer_cid(3)

NAME
cmpt_get_peer_cid(), cmpt_get_endpoint_cid() - get the compartment IDs for INET domain communications. SYNOPSIS
Parameters s INET domain socket or stream. DESCRIPTION
The and functions return the compartments associated with an INET domain transport endpoint (a socket or a stream). The function returns the compartment ID (cid) associated with the transport endpoint s. The cid of a transport endpoint is set to the process's cid at the time of creation, and does not change even when it is transferred between processes or the creating process changes its compartment. The function returns the compartment ID of the peer that the transport endpoint s is communicating with. For loopback communications, the cid is the one associated with the peer transport endpoint. For communications over a network interface, the peer cid is the one associ- ated with the network interface where communications are being received. For TCP communications, the peer cid is persistent once a connec- tion is established. For other protocols, the peer cid may change for each packet that is received. The function returns an error if a connection is not established (for TCP) or no communication has been received (for all other protocols). RETURN VALUE
and return the following values: Successful completion. The function returns a valid compartment ID. Function failed. is set to indicate the error from the underlying system call. ERRORS
See ioctl(2) for errors indicated by DEPENDENCIES
These functions are a part of the library. SEE ALSO
compartments(4), compartments(5). cmpt_get_peer_cid(3)

Check Out this Related Man Page

cmpt_get_ifcid(3)					     Library Functions Manual						 cmpt_get_ifcid(3)

NAME
cmpt_get_ifcid(), cmpt_get_addrcid() - get the compartment IDs associated with a network interfaces SYNOPSIS
Parameters ifname Pointer to network interface name string. family Address family of the ipaddress specified. Currently, the AF_INET and AF_INET6 address families are supported. addr Points to a buffer holding an IPv4 address if the family argument is AF_INET or an IPv6 address if the family is AF_INET6. The address should be in numeric format in the network byte order. Numeric format is the binary value that goes into a socket address structure. The binary value is the hex representation of the IPv4/IPv6 address. This binary value resides in the structure for IPv4 address and in the structure for IPv6 address. (See inet(3N) for more details.) mask Network mask in the CIDR representation. DESCRIPTION
The function returns the compartment ID associated with a network interface. The function returns the compartment ID of the tuple as set by a previous invocation of the command. RETURN VALUE
The functions and return the following values: Successful completion. n is the compartment of the interface or the tuple. Function failed. may be set to indicate the error. ERRORS
If any of the following conditions occur, and fails and sets Compartmentalization feature is not supported. The process does not have the appropriate privilege. See privileges(5). Specified interface or the address tuple has no compartment mapping. Specified mask or family is invalid. DEPENDENCIES
These functions are a part of the library. SEE ALSO
compartments(4), compartments(5), privileges(5). cmpt_get_ifcid(3)
Man Page

5 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

bash/grep/awk/sed: How to extract every appearance of text between two specific strings

I have a text wich looks like this: clid=2 cid=6 client_database_id=35 client_nickname=Peter client_type=0|clid=3 cid=22 client_database_id=57 client_nickname=Paul client_type=0|clid=5 cid=22 client_database_id=7 client_nickname=Mary client_type=0|clid=6 cid=22 client_database_id=6... (3 Replies)
Discussion started by: Pioneer1976
3 Replies

2. UNIX for Dummies Questions & Answers

fatal: Read from socket failed: Connection reset by peer

I get this error when I log in through console: "fatal: Read from socket failed: Connection reset by peer". Can you tell me what this is and why it happens, and how to stop it? Thank you. (1 Reply)
Discussion started by: iamnew2solaris
1 Replies

3. Web Development

How to: IFNULL(SELECT ...,0)

Hi all, Wondering is this possible: SELECT id AS cid, name, phone, url, streettype, IFNULL((SELECT ROUND(AVG(stars)*2, 1) / 2 FROM " . $dbconf{'prefix'} . "reviews WHERE location=cid) AS avgstars,0), ... OR should it be: SELECT id AS cid, name, phone, url, streettype, (SELECT ... (0 Replies)
Discussion started by: STOIE
0 Replies

4. UNIX for Dummies Questions & Answers

Hosts file

What are the xid and cid numbers in a host file used for on solaris? If possible can I get a detailed link on the configuration of hosts file explaining xid and cid. :o (1 Reply)
Discussion started by: usm4n
1 Replies

5. What is on Your Mind?

Increased paranoia of communication companies post NSA revelations

Hi all, I work in the communications field and often have to carry out data gathering/analysis on customer's platforms for issue diagnosis. In the last 2 months I have noticed a huge increase in distrust from African, Middle Eastern and Asian communication system operators of any data... (0 Replies)
Discussion started by: Skrynesaver
0 Replies