Apache HTTPD
Classes | Macros | Typedefs | Functions | Variables
byterange_filter.c File Reference
#include "apr.h"
#include "apr_strings.h"
#include "apr_buckets.h"
#include "apr_lib.h"
#include "apr_signal.h"
#include "apr_want.h"
#include "util_filter.h"
#include "ap_config.h"
#include "httpd.h"
#include "http_config.h"
#include "http_core.h"
#include "http_protocol.h"
#include "http_main.h"
#include "http_request.h"
#include "http_vhost.h"
#include "http_log.h"
#include "apr_date.h"
#include "util_charset.h"
#include "util_ebcdic.h"
#include "util_time.h"
#include "mod_core.h"

Go to the source code of this file.

Classes

struct  indexes_t
 

Macros

#define APR_WANT_STDIO   /* for sscanf */
 
#define APR_WANT_STRFUNC
 
#define APR_WANT_MEMFUNC
 
#define AP_DEFAULT_MAX_RANGES   200
 
#define AP_DEFAULT_MAX_OVERLAPS   20
 
#define AP_DEFAULT_MAX_REVERSALS   20
 
#define MAX_PREALLOC_RANGES   100
 
#define BYTERANGE_FMT   "%" APR_OFF_T_FMT "-%" APR_OFF_T_FMT "/%" APR_OFF_T_FMT
 

Typedefs

typedef struct indexes_t indexes_t
 

Functions

static int ap_set_byterange (request_rec *r, apr_off_t clength, apr_array_header_t **indexes, int *overlaps, int *reversals)
 
static int use_range_x (request_rec *r)
 
static apr_status_t copy_brigade_range (apr_bucket_brigade *bb, apr_bucket_brigade *bbout, apr_off_t start, apr_off_t end)
 
static apr_status_t send_416 (ap_filter_t *f, apr_bucket_brigade *tmpbb)
 
apr_status_t ap_byterange_filter (ap_filter_t *f, apr_bucket_brigade *bb)
 

Variables

static int *const aplog_module_index = &( http_module.module_index)
 

Macro Definition Documentation

◆ AP_DEFAULT_MAX_OVERLAPS

#define AP_DEFAULT_MAX_OVERLAPS   20

Definition at line 62 of file byterange_filter.c.

◆ AP_DEFAULT_MAX_RANGES

#define AP_DEFAULT_MAX_RANGES   200

Definition at line 59 of file byterange_filter.c.

◆ AP_DEFAULT_MAX_REVERSALS

#define AP_DEFAULT_MAX_REVERSALS   20

Definition at line 65 of file byterange_filter.c.

◆ APR_WANT_MEMFUNC

#define APR_WANT_MEMFUNC

Definition at line 30 of file byterange_filter.c.

◆ APR_WANT_STDIO

#define APR_WANT_STDIO   /* for sscanf */

Definition at line 28 of file byterange_filter.c.

◆ APR_WANT_STRFUNC

#define APR_WANT_STRFUNC

Definition at line 29 of file byterange_filter.c.

◆ BYTERANGE_FMT

#define BYTERANGE_FMT   "%" APR_OFF_T_FMT "-%" APR_OFF_T_FMT "/%" APR_OFF_T_FMT

Definition at line 316 of file byterange_filter.c.

◆ MAX_PREALLOC_RANGES

#define MAX_PREALLOC_RANGES   100

Definition at line 68 of file byterange_filter.c.

Typedef Documentation

◆ indexes_t

Function Documentation

◆ ap_set_byterange()

static int ap_set_byterange ( request_rec r,
apr_off_t  clength,
apr_array_header_t **  indexes,
int overlaps,
int reversals 
)
static

Definition at line 80 of file byterange_filter.c.

◆ copy_brigade_range()

static apr_status_t copy_brigade_range ( apr_bucket_brigade bb,
apr_bucket_brigade bbout,
apr_off_t  start,
apr_off_t  end 
)
static

Definition at line 318 of file byterange_filter.c.

◆ send_416()

static apr_status_t send_416 ( ap_filter_t f,
apr_bucket_brigade tmpbb 
)
static

Definition at line 415 of file byterange_filter.c.

◆ use_range_x()

static int use_range_x ( request_rec r)
static

Definition at line 308 of file byterange_filter.c.

Variable Documentation

◆ aplog_module_index

int* const aplog_module_index = &( http_module.module_index)
static

Definition at line 70 of file byterange_filter.c.