return s;
}
-static uword
-pppoe_input (vlib_main_t * vm,
+VLIB_NODE_FN (pppoe_input_node) (vlib_main_t * vm,
vlib_node_runtime_t * node,
vlib_frame_t * from_frame)
{
t0 = pool_elt_at_index (pem->sessions,
result0.fields.session_index);
- /* Pop Eth and PPPPoE header */
+ /* Pop Eth and PPPoE header */
vlib_buffer_advance(b0, sizeof(*h0)+sizeof(*pppoe0));
next0 = (ppp_proto0==PPP_PROTOCOL_ip4)?
t1 = pool_elt_at_index (pem->sessions,
result1.fields.session_index);
- /* Pop Eth and PPPPoE header */
+ /* Pop Eth and PPPoE header */
vlib_buffer_advance(b1, sizeof(*h1)+sizeof(*pppoe1));
next1 = (ppp_proto1==PPP_PROTOCOL_ip4)?
t0 = pool_elt_at_index (pem->sessions,
result0.fields.session_index);
- /* Pop Eth and PPPPoE header */
+ /* Pop Eth and PPPoE header */
vlib_buffer_advance(b0, sizeof(*h0)+sizeof(*pppoe0));
next0 = (ppp_proto0==PPP_PROTOCOL_ip4)?
};
VLIB_REGISTER_NODE (pppoe_input_node) = {
- .function = pppoe_input,
.name = "pppoe-input",
/* Takes a vector of packets. */
.vector_size = sizeof (u32),
.format_trace = format_pppoe_rx_trace,
};
-VLIB_NODE_FUNCTION_MULTIARCH (pppoe_input_node, pppoe_input)
-