L4Re Operating System Framework
Interface and Usage Documentation
Toggle main menu visibility
Main Page
Related Pages
Topics
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
h
i
k
m
o
p
r
s
t
u
w
Functions
a
b
c
k
m
r
s
t
w
Variables
Typedefs
Enumerations
Enumerator
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
Data Fields
All
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
~
Functions
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
~
Variables
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Typedefs
_
a
b
c
d
e
f
g
i
k
m
n
o
p
r
s
t
v
w
Enumerations
a
c
d
e
f
i
m
n
p
q
r
s
t
v
Enumerator
a
b
c
d
e
f
g
i
k
l
m
n
o
p
r
s
t
u
w
x
Related Symbols
Files
File List
Globals
All
_
a
b
d
e
f
g
l
m
n
o
p
r
s
Functions
_
b
e
f
g
l
o
p
Typedefs
e
g
l
p
Enumerations
e
l
p
Enumerator
a
d
e
f
l
n
p
r
s
Macros
_
e
g
l
m
p
s
Examples
▼
L4Re Operating System Framework
Overview
►
Introduction
►
Tutorial
►
Programming for L4Re
►
L4Re Servers
uvmm_dtg The device tree generator for Uvmm
Bootstrap, the L4 kernel bootstrapper
Deprecated List
►
Topics
►
Namespaces
►
Data Structures
▼
Files
►
File List
►
Globals
►
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Modules
Pages
Loading...
Searching...
No Matches
filter.h
1
/*
2
* Copyright (C) 2016-2017, 2023-2024 Kernkonzept GmbH.
3
* Author(s): Jean Wolter <jean.wolter@kernkonzept.com>
4
*
5
* License: see LICENSE.spdx (in this directory or the directories above)
6
*/
7
#pragma once
8
9
#include "request.h"
10
#include <l4/bid_config.h>
11
24
#ifdef CONFIG_VNS_PORT_FILTER
25
bool
filter(
const
uint8_t *buf,
size_t
size);
26
#else
27
inline
bool
filter(
const
uint8_t *,
size_t
)
28
{
29
// default implementation filtering out no packets, see filter.cc for
30
// other examples
31
return
false
;
32
}
33
#endif
34
43
inline
bool
filter_request(
Virtio_net_request
const
&req)
44
{
45
size_t
size;
46
const
uint8_t *buf = req.
buffer
(&size);
47
return
filter(buf, size);
48
}
Virtio_net_request
Abstraction for a network request.
Definition
request.h:36
Virtio_net_request::buffer
const uint8_t * buffer(size_t *size) const
Get the location and size of the current buffer.
Definition
request.h:90
pkg
virtio-net-switch
server
switch
filter.h
Generated on Mon Mar 3 2025 23:08:49 for L4Re Operating System Framework by
1.9.8