Lines Matching +full:addr +full:- +full:mode
1 .. SPDX-License-Identifier: GPL-2.0
9 ------------
19 - USB with the CDC Phonet interface,
20 - infrared,
21 - Bluetooth,
22 - an RS232 serial port (with a dedicated "FBUS" line discipline),
23 - the SSI bus with some TI OMAP processors.
27 --------------
32 uint8_t pn_media; /* Media type (link-layer identifier) */
36 uint16_t pn_length; /* Big-endian message byte length (minus 6) */
41 On Linux, the link-layer header includes the pn_media byte (see below).
42 The next 7 bytes are part of the network-layer header.
44 The device ID is split: the 6 higher-order bits constitute the device
45 address, while the 2 lower-order bits are used for multiplexing, as are
46 the 8-bit object identifiers. As such, Phonet can be considered as a
51 own 6-bit address.
55 ----------
57 Phonet links are always point-to-point links. The link layer header
62 link-layer header operations structure is provided. It sets the
70 requires IFF_TUN mode, _without_ the IFF_NO_PI flag. In this case,
71 there is no link-layer header, so there is no Phonet media type byte.
73 Note that Phonet interfaces are not allowed to re-order packets, so
78 -------------
94 Low-level datagram protocol
95 ---------------------------
104 struct sockaddr_pn addr = { .spn_family = AF_PHONET, };
106 socklen_t addrlen = sizeof(addr);
110 bind(fd, (struct sockaddr *)&addr, sizeof(addr));
113 sendto(fd, msg, msglen, 0, (struct sockaddr *)&addr, sizeof(addr));
115 (struct sockaddr *)&addr, &addrlen);
117 This protocol follows the SOCK_DGRAM connection-less semantics.
123 ---------------------
125 A Phonet datagram socket can be subscribed to any number of 8-bits
139 --------------------
142 with end-to-end congestion control. It uses the passive listening
173 e.g. the Nokia Slim Modem in the ST-Ericsson U8500 platform::
194 block until write becomes possible again, unless non-blocking mode
209 be reliably poll()'d or read() from while in this mode.
212 is a read-only integer value. It contains the
217 is a read-only integer value. It contains the underlying
223 -------
228 Carlos Chinea and Rémi Denis-Courmont.