linux/net/phonet/pep-gprs.c

// SPDX-License-Identifier: GPL-2.0-only
/*
 * File: pep-gprs.c
 *
 * GPRS over Phonet pipe end point socket
 *
 * Copyright (C) 2008 Nokia Corporation.
 *
 * Author: Rémi Denis-Courmont
 */

#include <linux/kernel.h>
#include <linux/netdevice.h>
#include <linux/if_ether.h>
#include <linux/if_arp.h>
#include <net/sock.h>

#include <linux/if_phonet.h>
#include <net/tcp_states.h>
#include <net/phonet/gprs.h>

#include <trace/events/sock.h>

#define GPRS_DEFAULT_MTU

struct gprs_dev {};

static __be16 gprs_type_trans(struct sk_buff *skb)
{}

static void gprs_writeable(struct gprs_dev *gp)
{}

/*
 * Socket callbacks
 */

static void gprs_state_change(struct sock *sk)
{}

static int gprs_recv(struct gprs_dev *gp, struct sk_buff *skb)
{}

static void gprs_data_ready(struct sock *sk)
{}

static void gprs_write_space(struct sock *sk)
{}

/*
 * Network device callbacks
 */

static int gprs_open(struct net_device *dev)
{}

static int gprs_close(struct net_device *dev)
{}

static netdev_tx_t gprs_xmit(struct sk_buff *skb, struct net_device *dev)
{}

static const struct net_device_ops gprs_netdev_ops =;

static void gprs_setup(struct net_device *dev)
{}

/*
 * External interface
 */

/*
 * Attach a GPRS interface to a datagram socket.
 * Returns the interface index on success, negative error code on error.
 */
int gprs_attach(struct sock *sk)
{}

void gprs_detach(struct sock *sk)
{}