linux/net/ceph/decode.c

// SPDX-License-Identifier: GPL-2.0
#include <linux/ceph/ceph_debug.h>

#include <linux/inet.h>

#include <linux/ceph/decode.h>
#include <linux/ceph/messenger.h>  /* for ceph_pr_addr() */

static int
ceph_decode_entity_addr_versioned(void **p, void *end,
				  struct ceph_entity_addr *addr)
{}

static int
ceph_decode_entity_addr_legacy(void **p, void *end,
			       struct ceph_entity_addr *addr)
{}

int
ceph_decode_entity_addr(void **p, void *end, struct ceph_entity_addr *addr)
{}
EXPORT_SYMBOL();

/*
 * Return addr of desired type (MSGR2 or LEGACY) or error.
 * Make sure there is only one match.
 *
 * Assume encoding with MSG_ADDR2.
 */
int ceph_decode_entity_addrvec(void **p, void *end, bool msgr2,
			       struct ceph_entity_addr *addr)
{}
EXPORT_SYMBOL();

static int get_sockaddr_encoding_len(sa_family_t family)
{}

int ceph_entity_addr_encoding_len(const struct ceph_entity_addr *addr)
{}

void ceph_encode_entity_addr(void **p, const struct ceph_entity_addr *addr)
{}