OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
full:tun_header
(Results
1 - 3
of
3
) sorted by null
/external/android-clat/
clatd.c
349
struct tun_pi *
tun_header
= (struct tun_pi *) buf;
local
350
if (readlen < (ssize_t) sizeof(*
tun_header
)) {
355
uint16_t proto = ntohs(
tun_header
->proto);
361
if(
tun_header
->flags != 0) {
362
logmsg(ANDROID_LOG_WARN, "%s: unexpected flags = %d", __func__,
tun_header
->flags);
365
packet = (uint8_t *) (
tun_header
+ 1);
366
readlen -= sizeof(*
tun_header
);
translate.h
45
void fill_tun_header(struct tun_pi *
tun_header
, uint16_t proto);
translate.c
108
*
tun_header
- tunnel header, already allocated
111
void fill_tun_header(struct tun_pi *
tun_header
, uint16_t proto) {
112
tun_header
->flags = 0;
113
tun_header
->proto = htons(proto);
Completed in 572 milliseconds