summaryrefslogtreecommitdiffstats
path: root/src/vnet/ipip
AgeCommit message (Expand)AuthorFilesLines
2018-08-22IPIP and SIXRD tunnels create API needs table-IDs not fib-indexesNeale Ranns5-59/+136
2018-08-10IP fragmentation to handle buffer chains.Ole Troan2-5/+14
2018-07-30SIXRD: fix post introduction of the directed subnet broadcastNeale Ranns1-11/+2
2018-07-23fix vector index range checksEyal Bari1-1/+1
2018-07-11avoid using thread local storage for thread indexDamjan Marion1-1/+1
2018-06-11MTU: Software interface / Per-protocol MTU supportOle Troan2-4/+2
2018-05-25VPP-1277: IPIP - Copy TOS/TC from inner packet to outer.Ole Troan5-18/+109
2018-05-04Harmonize vec/pool_get_aligned object sizes and alignment requestsDave Barach1-0/+3
2018-04-13Revert "MTU: Setting of MTU on software interface (instead of hardware interf...Damjan Marion2-5/+5
2018-04-13MTU: Setting of MTU on software interface (instead of hardware interface)Ole Troan2-5/+5
2018-04-12Fixes for 'make UNATTENDED=yes CC=clang CXX=clang verify'Neale Ranns1-1/+1
2018-04-05IPIP: version.h is not neededNeale Ranns1-1/+0
2018-03-19IPIP: Fix coverity error.Ole Troan1-0/+3
2018-03-14IPIP: Add IP{v4,v6} over IP{v4,v6} configured tunnel support.Ole Troan8-0/+2242
Property */ .highlight .nt { color: #bb0066; font-weight: bold } /* Name.Tag */ .highlight .nv { color: #336699 } /* Name.Variable */ .highlight .ow { color: #008800 } /* Operator.Word */ .highlight .w { color: #bbbbbb } /* Text.Whitespace */ .highlight .mb { color: #0000DD; font-weight: bold } /* Literal.Number.Bin */ .highlight .mf { color: #0000DD; font-weight: bold } /* Literal.Number.Float */ .highlight .mh { color: #0000DD; font-weight: bold } /* Literal.Number.Hex */ .highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */ .highlight .mo { color: #0000DD; font-weight: bold } /* Literal.Number.Oct */ .highlight .sa { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Affix */ .highlight .sb { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Backtick */ .highlight .sc { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Char */ .highlight .dl { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Delimiter */ .highlight .sd { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Doc */ .highlight .s2 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Double */ .highlight .se { color: #0044dd; background-color: #fff0f0 } /* Literal.String.Escape */ .highlight .sh { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Heredoc */ .highlight .si { color: #3333bb; background-color: #fff0f0 } /* Literal.String.Interpol */ .highlight .sx { color: #22bb22; background-color: #f0fff0 } /* Literal.String.Other */ .highlight .sr { color: #008800; background-color: #fff0ff } /* Literal.String.Regex */ .highlight .s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */ .highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */ .highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */ }
/*
 * Copyright (c) 2016 Cisco and/or its affiliates.
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at:
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
/**
 * @file
 * @brief Common utility functions for IPv4, IPv6 and L2 LISP-GPE tunnels.
 *
 */

#ifndef LISP_GPE_TUNNEL_H__
#define LISP_GPE_TUNNEL_H__

#include <vnet/lisp-gpe/lisp_gpe.h>
#include <vnet/lisp-gpe/lisp_gpe_packet.h>

/**
 * Forward declaration
 */
struct lisp_gpe_adjacency_t_;

/**
 * A Key for a tunnel
 */
typedef struct lisp_gpe_tunnel_key_t_
{
  ip_address_t rmt;
  ip_address_t lcl;
  u32 fib_index;
} lisp_gpe_tunnel_key_t;

/**
 * @brief A LISP GPE Tunnel.
 *
 * A tunnel represents an associatation between a local and remote RLOC.
 * As such it represents a unique LISP rewrite.
 */
typedef struct lisp_gpe_tunnel_t_
{
  /**
   * RLOC pair and rloc fib_index. This is the tunnel's key.
   */
  lisp_gpe_tunnel_key_t *key;

  /**
   * number of reference counting locks
   */
  u32 locks;

  /**
   * the FIB entry through which the remote rloc is reachable
   s */
  fib_node_index_t fib_entry_index;
} lisp_gpe_tunnel_t;

extern index_t lisp_gpe_tunnel_find_or_create_and_lock (const locator_pair_t *
							pair,
							u32 rloc_fib_index);

extern void lisp_gpe_tunnel_unlock (index_t lgti);

extern const lisp_gpe_tunnel_t *lisp_gpe_tunnel_get (index_t lgti);

extern u8 *lisp_gpe_tunnel_build_rewrite (const lisp_gpe_tunnel_t * lgt,
					  const struct lisp_gpe_adjacency_t_
					  *ladj,
					  lisp_gpe_next_protocol_e
					  payload_proto);
extern u8 *format_lisp_gpe_tunnel (u8 * s, va_list * args);

#endif

/*
 * fd.io coding-style-patch-verification: ON
 *
 * Local Variables:
 * eval: (c-set-style "gnu")
 * End:
 */