Next: , Previous: bpipe_dpktf_type, Up: Data Packet Field Manipulations   [Contents]


A.3.16 bpipe_dpktf

Return an access handle for a data packet field.

Synopsis

#include <bpipe/bpipe.h>

DpktField *bpipe_dpktf(
  BPipe *bpipe,
  const char *name
);

Parameters

BPipe *bpipe

the binary pipe with which the field is associated

const char *name

the name of the field

Description

This routine is used to obtain an access handle for a data packet field required by routines which extract data from the data packet field structure.

Returns

It returns a pointer to the data packet field’s structure. It returns NULL if the field doesn’t exist.