summaryrefslogtreecommitdiffstats
path: root/src/vcl/sock_test_server.c
AgeCommit message (Expand)AuthorFilesLines
2018-12-23vcl: fix coverity warningsFlorin Coras1-1/+8
2018-12-04vcl: test refactor and improvementsFlorin Coras1-0/+1
2018-10-07vcl: cleanup and fixes for vcl test codeFlorin Coras1-40/+40
2018-09-20session/svm: add want_tx_event flag to fifoFlorin Coras1-0/+4
2018-03-26VCL: add IPv6 to socket_test.sh and make testDave Wallace1-14/+106
2018-03-14VCL: Handle epoll HUP events in sock_test_serverDave Wallace1-1/+10
2018-02-24LDP: Refactor epoll_ctl wrapper.Dave Wallace1-2/+156
2018-02-08VCL: remove vrf from vppcom api.Dave Wallace1-3/+1
2018-01-17LD_PRELOAD: stateless LDPDave Wallace1-70/+27
2017-12-15VCL-LDPRELOAD: Fix Coverity Warning CID 178776Dave Wallace1-23/+22
2017-11-25VCL: improve debug outputDave Wallace1-0/+2
2017-11-14VCL-LDPRELOAD: add sendfile/sendfile64 implementation.Dave Wallace1-1/+1
2017-11-07VCL-LDPRELOAD: enable accept4() wrapperDave Wallace1-0/+2
2017-10-24VCL-LDPRELOAD: statically link vppcom into libvcl-ldpreload.soDave Wallace1-0/+790
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.
 */

#ifndef __SIXRD_DPO_H__
#define __SIXRD_DPO_H__

#include <vnet/vnet.h>
#include <vnet/dpo/dpo.h>

/**
 * A representation of a 6RD DPO
 */
typedef struct sixrd_dpo_t
{
    /**
     * The dat-plane protocol
     */
    dpo_proto_t sd_proto;

    /**
     * the SIXRD domain index
     */
    u32 sd_domain;

    /**
     * Number of locks/users of the label
     */
    u16 sd_locks;
} sixrd_dpo_t;

extern void sixrd_dpo_create (dpo_proto_t dproto,
			      u32 domain_index,
			      dpo_id_t *dpo);

/*
 * Encapsulation violation for fast data-path access
 */
extern sixrd_dpo_t *sixrd_dpo_pool;
extern dpo_type_t sixrd_dpo_type;

static inline sixrd_dpo_t *
sixrd_dpo_get (index_t index)
{
    return (pool_elt_at_index(sixrd_dpo_pool, index));
}

extern void sixrd_dpo_module_init(void);

#endif