monitube2-data_packet.h File Reference

Relating to processing packets in the fast path. More...

Go to the source code of this file.

Data Structures

struct  flow_entry_s


typedef flow_entry_s flow_entry_t


status_t pullup_bytes (struct jbuf **pkt_buf, uint16_t num_bytes)
void process_packet (struct jbuf *jb, flow_entry_t *flow, uint16_t ssid)

Detailed Description

Relating to processing packets in the fast path.

These functions and types will manage the packet processing in the data path

Definition in file monitube2-data_packet.h.

Typedef Documentation

typedef struct flow_entry_s flow_entry_t

flow entry information structure

Function Documentation

void process_packet ( struct jbuf *  jb,
flow_entry_t flow,
uint16_t  ssid 

Process an IP packet that is UDP, and the UDP header must be available in the bytes following the IP address.

[in] jb The received jbuf for this packet
[in] flow The flow state
[in] ssid The service set id

Definition at line 314 of file monitube2-data_packet.c.

References flow_entry_s::age_ts, checksum_adjust(), DLOG, get_current_time(), flow_entry_s::m_vrf, flow_entry_s::maddr, pullup_bytes(), flow_entry_s::rate, and update_stats_for_flow().

Referenced by monitube_data_hdlr().

status_t pullup_bytes ( struct jbuf **  pkt_buf,
uint16_t  num_bytes 

Ensure or pullup enough data into the first jbuf of the chain in order to analyze it better where the bytes are contiguous

[in] pkt_buf The packet in jbuf format (chain of jbufs)
[in] num_bytes The number of contiguous bytes of data required in the first jbuf
Returns the result of the jbuf_pullup on the pkt_buf upon SUCCESS; otherwise pkt_buf remains unchanged and EFAIL is returned

Definition at line 281 of file monitube2-data_packet.c.

References DLOG.

Referenced by monitube_data_hdlr(), and process_packet().

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:27:09 2010 for SDK Your Net Corporation Monitube2 IPTV Monitoring Example: monitube2-plugin 1.0 by Doxygen 1.5.1