/* Generated by the protocol buffer compiler.  DO NOT EDIT! */
/* Generated from: sit.proto */

/* Do not generate deprecated warnings for self */
#ifndef PROTOBUF_C__NO_DEPRECATED
#define PROTOBUF_C__NO_DEPRECATED
#endif

#include "sit.pb-c.h"
void   sit_entry__init
                     (SitEntry         *message)
{
  static const SitEntry init_value = SIT_ENTRY__INIT;
  *message = init_value;
}
size_t sit_entry__get_packed_size
                     (const SitEntry *message)
{
  assert(message->base.descriptor == &sit_entry__descriptor);
  return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message));
}
size_t sit_entry__pack
                     (const SitEntry *message,
                      uint8_t       *out)
{
  assert(message->base.descriptor == &sit_entry__descriptor);
  return protobuf_c_message_pack ((const ProtobufCMessage*)message, out);
}
size_t sit_entry__pack_to_buffer
                     (const SitEntry *message,
                      ProtobufCBuffer *buffer)
{
  assert(message->base.descriptor == &sit_entry__descriptor);
  return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer);
}
SitEntry *
       sit_entry__unpack
                     (ProtobufCAllocator  *allocator,
                      size_t               len,
                      const uint8_t       *data)
{
  return (SitEntry *)
     protobuf_c_message_unpack (&sit_entry__descriptor,
                                allocator, len, data);
}
void   sit_entry__free_unpacked
                     (SitEntry *message,
                      ProtobufCAllocator *allocator)
{
  if(!message)
    return;
  assert(message->base.descriptor == &sit_entry__descriptor);
  protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator);
}
static const ProtobufCFieldDescriptor sit_entry__field_descriptors[16] =
{
  {
    "link",
    1,
    PROTOBUF_C_LABEL_OPTIONAL,
    PROTOBUF_C_TYPE_UINT32,
    offsetof(SitEntry, has_link),
    offsetof(SitEntry, link),
    NULL,
    NULL,
    0,             /* flags */
    0,NULL,NULL    /* reserved1,reserved2, etc */
  },
  {
    "local",
    2,
    PROTOBUF_C_LABEL_REPEATED,
    PROTOBUF_C_TYPE_UINT32,
    offsetof(SitEntry, n_local),
    offsetof(SitEntry, local),
    NULL,
    NULL,
    0,             /* flags */
    0,NULL,NULL    /* reserved1,reserved2, etc */
  },
  {
    "remote",
    3,
    PROTOBUF_C_LABEL_REPEATED,
    PROTOBUF_C_TYPE_UINT32,
    offsetof(SitEntry, n_remote),
    offsetof(SitEntry, remote),
    NULL,
    NULL,
    0,             /* flags */
    0,NULL,NULL    /* reserved1,reserved2, etc */
  },
  {
    "ttl",
    4,
    PROTOBUF_C_LABEL_OPTIONAL,
    PROTOBUF_C_TYPE_UINT32,
    offsetof(SitEntry, has_ttl),
    offsetof(SitEntry, ttl),
    NULL,
    NULL,
    0,             /* flags */
    0,NULL,NULL    /* reserved1,reserved2, etc */
  },
  {
    "tos",
    5,
    PROTOBUF_C_LABEL_OPTIONAL,
    PROTOBUF_C_TYPE_UINT32,
    offsetof(SitEntry, has_tos),
    offsetof(SitEntry, tos),
    NULL,
    NULL,
    0,             /* flags */
    0,NULL,NULL    /* reserved1,reserved2, etc */
  },
  {
    "pmtudisc",
    6,
    PROTOBUF_C_LABEL_OPTIONAL,
    PROTOBUF_C_TYPE_BOOL,
    offsetof(SitEntry, has_pmtudisc),
    offsetof(SitEntry, pmtudisc),
    NULL,
    NULL,
    0,             /* flags */
    0,NULL,NULL    /* reserved1,reserved2, etc */
  },
  {
    "proto",
    7,
    PROTOBUF_C_LABEL_OPTIONAL,
    PROTOBUF_C_TYPE_UINT32,
    offsetof(SitEntry, has_proto),
    offsetof(SitEntry, proto),
    NULL,
    NULL,
    0,             /* flags */
    0,NULL,NULL    /* reserved1,reserved2, etc */
  },
  {
    "flags",
    8,
    PROTOBUF_C_LABEL_OPTIONAL,
    PROTOBUF_C_TYPE_UINT32,
    offsetof(SitEntry, has_flags),
    offsetof(SitEntry, flags),
    NULL,
    NULL,
    0,             /* flags */
    0,NULL,NULL    /* reserved1,reserved2, etc */
  },
  {
    "encap_type",
    9,
    PROTOBUF_C_LABEL_OPTIONAL,
    PROTOBUF_C_TYPE_UINT32,
    offsetof(SitEntry, has_encap_type),
    offsetof(SitEntry, encap_type),
    NULL,
    NULL,
    0,             /* flags */
    0,NULL,NULL    /* reserved1,reserved2, etc */
  },
  {
    "encap_flags",
    10,
    PROTOBUF_C_LABEL_OPTIONAL,
    PROTOBUF_C_TYPE_UINT32,
    offsetof(SitEntry, has_encap_flags),
    offsetof(SitEntry, encap_flags),
    NULL,
    NULL,
    0,             /* flags */
    0,NULL,NULL    /* reserved1,reserved2, etc */
  },
  {
    "encap_sport",
    11,
    PROTOBUF_C_LABEL_OPTIONAL,
    PROTOBUF_C_TYPE_UINT32,
    offsetof(SitEntry, has_encap_sport),
    offsetof(SitEntry, encap_sport),
    NULL,
    NULL,
    0,             /* flags */
    0,NULL,NULL    /* reserved1,reserved2, etc */
  },
  {
    "encap_dport",
    12,
    PROTOBUF_C_LABEL_OPTIONAL,
    PROTOBUF_C_TYPE_UINT32,
    offsetof(SitEntry, has_encap_dport),
    offsetof(SitEntry, encap_dport),
    NULL,
    NULL,
    0,             /* flags */
    0,NULL,NULL    /* reserved1,reserved2, etc */
  },
  {
    "rd_prefixlen",
    13,
    PROTOBUF_C_LABEL_OPTIONAL,
    PROTOBUF_C_TYPE_UINT32,
    offsetof(SitEntry, has_rd_prefixlen),
    offsetof(SitEntry, rd_prefixlen),
    NULL,
    NULL,
    0,             /* flags */
    0,NULL,NULL    /* reserved1,reserved2, etc */
  },
  {
    "rd_prefix",
    14,
    PROTOBUF_C_LABEL_REPEATED,
    PROTOBUF_C_TYPE_UINT32,
    offsetof(SitEntry, n_rd_prefix),
    offsetof(SitEntry, rd_prefix),
    NULL,
    NULL,
    0,             /* flags */
    0,NULL,NULL    /* reserved1,reserved2, etc */
  },
  {
    "relay_prefixlen",
    15,
    PROTOBUF_C_LABEL_OPTIONAL,
    PROTOBUF_C_TYPE_UINT32,
    offsetof(SitEntry, has_relay_prefixlen),
    offsetof(SitEntry, relay_prefixlen),
    NULL,
    NULL,
    0,             /* flags */
    0,NULL,NULL    /* reserved1,reserved2, etc */
  },
  {
    "relay_prefix",
    16,
    PROTOBUF_C_LABEL_REPEATED,
    PROTOBUF_C_TYPE_UINT32,
    offsetof(SitEntry, n_relay_prefix),
    offsetof(SitEntry, relay_prefix),
    NULL,
    NULL,
    0,             /* flags */
    0,NULL,NULL    /* reserved1,reserved2, etc */
  },
};
static const unsigned sit_entry__field_indices_by_name[] = {
  11,   /* field[11] = encap_dport */
  9,   /* field[9] = encap_flags */
  10,   /* field[10] = encap_sport */
  8,   /* field[8] = encap_type */
  7,   /* field[7] = flags */
  0,   /* field[0] = link */
  1,   /* field[1] = local */
  5,   /* field[5] = pmtudisc */
  6,   /* field[6] = proto */
  13,   /* field[13] = rd_prefix */
  12,   /* field[12] = rd_prefixlen */
  15,   /* field[15] = relay_prefix */
  14,   /* field[14] = relay_prefixlen */
  2,   /* field[2] = remote */
  4,   /* field[4] = tos */
  3,   /* field[3] = ttl */
};
static const ProtobufCIntRange sit_entry__number_ranges[1 + 1] =
{
  { 1, 0 },
  { 0, 16 }
};
const ProtobufCMessageDescriptor sit_entry__descriptor =
{
  PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC,
  "sit_entry",
  "SitEntry",
  "SitEntry",
  "",
  sizeof(SitEntry),
  16,
  sit_entry__field_descriptors,
  sit_entry__field_indices_by_name,
  1,  sit_entry__number_ranges,
  (ProtobufCMessageInit) sit_entry__init,
  NULL,NULL,NULL    /* reserved[123] */
};
