Skip to content

Commit b07cc7e

Browse files
Rallarembolivar-nordic
authored andcommitted
[nrf noup]: Add LTE family and protocol.
Add AF_LTE family and NPROTO_AT protocol define for nRF91 in net_ip.h. Signed-off-by: Håkon Alseth <[email protected]> Signed-off-by: Robert Lubos <[email protected]> Signed-off-by: Marti Bolivar <[email protected]> (cherry picked from commit 821c2cb) (cherry picked from commit f507dc6) Signed-off-by: Martí Bolívar <[email protected]>
1 parent d58857b commit b07cc7e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

include/net/net_ip.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ extern "C" {
4545
#define PF_PACKET 3 /**< Packet family. */
4646
#define PF_CAN 4 /**< Controller Area Network. */
4747
#define PF_NET_MGMT 5 /**< Network management info. */
48+
#define PF_LTE 102 /**< Specific to LTE. */
4849

4950
/* Address families. */
5051
#define AF_UNSPEC PF_UNSPEC /**< Unspecified address family. */
@@ -53,6 +54,7 @@ extern "C" {
5354
#define AF_PACKET PF_PACKET /**< Packet family. */
5455
#define AF_CAN PF_CAN /**< Controller Area Network. */
5556
#define AF_NET_MGMT PF_NET_MGMT /**< Network management info. */
57+
#define AF_LTE PF_LTE /**< Specific to LTE. */
5658

5759
/** Protocol numbers from IANA/BSD */
5860
enum net_ip_protocol {
@@ -74,6 +76,11 @@ enum net_ip_protocol_secure {
7476
IPPROTO_DTLS_1_2 = 273, /**< DTLS 1.2 protocol */
7577
};
7678

79+
/* Protocol numbers for LTE protocols */
80+
enum net_lte_protocol {
81+
NPROTO_AT = 513,
82+
};
83+
7784
/** Socket type */
7885
enum net_sock_type {
7986
SOCK_STREAM = 1, /**< Stream socket type */

0 commit comments

Comments
 (0)