1#ifndef _OSMO_NETIF_IPA_H_
2#define _OSMO_NETIF_IPA_H_
4#include <osmocom/gsm/protocol/ipaccess.h>
5#include <osmocom/gsm/ipa.h>
14} __attribute__ ((packed));
19} __attribute__ ((packed));
24} __attribute__ ((packed));
26#define OSMO_IPA_MSGB_CB(__msg) ((struct osmo_ipa_msgb_cb *)&((__msg)->cb[0]))
27#define osmo_ipa_msgb_cb_proto(__x) OSMO_IPA_MSGB_CB(__x)->proto
28#define osmo_ipa_msgb_cb_proto_ext(__x) OSMO_IPA_MSGB_CB(__x)->proto_ext
30struct msgb *osmo_ipa_msg_alloc(
int headroom);
31struct msgb *osmo_ipa_ext_msg_alloc(
size_t headroom);
33void osmo_ipa_msg_push_header(
struct msgb *msg, uint8_t proto);
35int osmo_ipa_process_msg(
struct msgb *msg);
40int osmo_ipa_rcvmsg_base(
struct msgb *msg,
struct osmo_fd *bfd,
int server);
41int osmo_ipa_parse_unitid(
const char *str,
struct ipaccess_unit *unit_data);
43int ipaccess_send_pong(
int fd);
44int ipaccess_send_id_ack(
int fd);
45int ipaccess_send_id_req(
int fd);
49struct msgb *ipa_cli_id_resp(
struct osmo_ipa_unit *dev, uint8_t *data,
int len);
50struct msgb *ipa_cli_id_ack(
void);
52int osmo_ipa_parse_msg_id_resp(
struct msgb *msg,
struct ipaccess_unit *unit_data);
54int osmo_ipa_segmentation_cb(
struct msgb *msg);
Definition: ipa_unit.c:27