Processing Reverse Bound Traffic

Reply-message packets coming back from a server into the router are processed by the jnx_gw_data_process_ipip_packet() function in /src/sbin/jnx-gateway-data/jnx-gateway-data_packet.c.

As already described, this function is branched from jnx_gw_data_process_packet() (see Packet Processing Details).

jnx_gw_data_process_ipip_packet() handles the incoming IP-in-IP packet as follows:

Sending the IP-IP Packet

The function sends the packet by calling the jbuf_setvrf() and the msp_data_send() functions as it did for GRE packets in Sending the Packet.

  /* Set the outgoing VRF in the PKT BUFF */
   jbuf_setvrf(pkt_ctxt->pkt_buf, pkt_ctxt->ipip_sub_tunnel->egress_vrf);

    if (msp_data_send(pkt_ctxt->dhandle, pkt_ctxt->pkt_buf,
                     MSP_MSG_TYPE_PACKET) != MSP_OK) {

        pkt_ctxt->stat_type = JNX_GW_DATA_CONG_DROP;
        return JNX_GW_DATA_DROP_PKT;
    }
  

2007-2009 Juniper Networks, Inc. All rights reserved. The information contained herein is confidential information of Juniper Networks, Inc., and may not be used, disclosed, distributed, modified, or copied without the prior written consent of Juniper Networks, Inc. in an express license. This information is subject to change by Juniper Networks, Inc. Juniper Networks, the Juniper Networks logo, and JUNOS are registered trademarks of Juniper Networks, Inc. in the United States and other countries. All other trademarks, service marks, registered trademarks, or registered service marks are the property of their respective owners.
Generated on Sun May 30 20:26:47 2010 for Juniper Networks Partner Solution Development Platform JUNOS SDK 10.2R1 by Doxygen 1.4.5