|
FD.io VPP
v21.06-3-gbb25fbf28
Vector Packet Processing
|
Go to the documentation of this file.
32 #include <pppoe/pppoe.api_enum.h>
33 #include <pppoe/pppoe.api_types.h>
35 #define REPLY_MSG_ID_BASE pem->msg_id_base
50 rv = VNET_API_ERROR_NO_SUCH_INNER_FIB;
53 decap_fib_index = p[0];
57 .decap_fib_index = decap_fib_index,
85 rmp->_vl_msg_id =
ntohs (VL_API_PPPOE_SESSION_DETAILS);
156 #include <pppoe/pppoe.api.c>
u32 decap_fib_index
FIB indices - inner IP packet lookup here.
vnet_interface_main_t * im
reply for create PPPOE control plane interface
static vl_api_registration_t * vl_api_client_index_to_registration(u32 index)
#define REPLY_MACRO2(t, body)
#define clib_memcpy(d, s, n)
ip4_main_t ip4_main
Global ip4 main structure.
static void vl_api_send_msg(vl_api_registration_t *rp, u8 *elem)
int vnet_pppoe_add_del_session(vnet_pppoe_add_del_session_args_t *a, u32 *sw_if_indexp)
Create PPPOE control plane interface.
static u8 ip46_address_is_ip4(const ip46_address_t *ip46)
vl_api_interface_index_t sw_if_index
vlib_main_t * vm
X-connect all packets from the HOST to the PHY.
vl_api_interface_index_t sw_if_index
ip46_type_t ip_address_decode(const vl_api_address_t *in, ip46_address_t *out)
Decode/Encode for struct/union types.
static void setup_message_id_table(api_main_t *am)
#define pool_foreach(VAR, POOL)
Iterate through pool.
#define vec_len(v)
Number of elements in vector (rvalue-only, NULL tolerant)
vl_api_mac_address_t client_mac
u32 ft_table_id
Table ID (hash key) for this FIB.
static void vl_api_pppoe_add_del_session_t_handler(vl_api_pppoe_add_del_session_t *mp)
An API client registration, only in vpp/vlib.
vl_api_interface_index_t encap_if_index
static clib_error_t * pppoe_api_hookup(vlib_main_t *vm)
static void vl_api_pppoe_session_dump_t_handler(vl_api_pppoe_session_dump_t *mp)
static void send_pppoe_session_details(pppoe_session_t *t, vl_api_registration_t *reg, u32 context)
vl_api_interface_index_t sw_if_index
VLIB_API_INIT_FUNCTION(pppoe_api_hookup)
struct fib_table_t_ * fibs
vl_api_interface_index_t sw_if_index
vl_api_mac_address_t local_mac
vl_api_mac_address_t client_mac
Set or delete an PPPOE session.
u32 * session_index_by_sw_if_index
dump details of an PPPOE session
struct fib_table_t_ * fibs
Vector of FIBs.
vl_api_address_t client_ip
clib_memset(h->entries, 0, sizeof(h->entries[0]) *entries)
void ip_address_encode(const ip46_address_t *in, ip46_type_t type, vl_api_address_t *out)
static void vl_api_pppoe_add_del_cp_t_handler(vl_api_pppoe_add_del_cp_t *mp)
reply for set or delete an PPPOE session
int pppoe_add_del_cp(u32 cp_if_index, u8 is_add)
pppoe_session_t * sessions
vl_api_interface_index_t sw_if_index
vl_api_address_t client_ip
void * vl_msg_api_alloc(int nbytes)