Home
last modified time | relevance | path

Searched refs:strparser (Results 1 – 13 of 13) sorted by relevance

/Linux-v5.4/include/net/
Dstrparser.h40 struct strparser;
44 int (*parse_msg)(struct strparser *strp, struct sk_buff *skb);
45 void (*rcv_msg)(struct strparser *strp, struct sk_buff *skb);
46 int (*read_sock_done)(struct strparser *strp, int err);
47 void (*abort_parser)(struct strparser *strp, int err);
48 void (*lock)(struct strparser *strp);
49 void (*unlock)(struct strparser *strp);
64 struct strparser { struct
83 static inline void strp_pause(struct strparser *strp) in strp_pause() argument
89 void strp_unpause(struct strparser *strp);
[all …]
Dkcm.h91 struct strparser strp;
Dtls.h172 struct strparser strp;
/Linux-v5.4/net/strparser/
Dstrparser.c45 static void strp_abort_strp(struct strparser *strp, int err) in strp_abort_strp()
65 static void strp_start_timer(struct strparser *strp, long timeo) in strp_start_timer()
72 static void strp_parser_err(struct strparser *strp, int err, in strp_parser_err()
81 static inline int strp_peek_len(struct strparser *strp) in strp_peek_len()
101 struct strparser *strp = (struct strparser *)desc->arg.data; in __strp_recv()
325 int strp_process(struct strparser *strp, struct sk_buff *orig_skb, in strp_process()
341 struct strparser *strp = (struct strparser *)desc->arg.data; in strp_recv()
347 static int default_read_sock_done(struct strparser *strp, int err) in default_read_sock_done()
353 static int strp_read_sock(struct strparser *strp) in strp_read_sock()
374 void strp_data_ready(struct strparser *strp) in strp_data_ready()
[all …]
DMakefile2 obj-$(CONFIG_STREAM_PARSER) += strparser.o
/Linux-v5.4/Documentation/networking/
Dstrparser.txt1 Stream Parser (strparser)
6 The stream parser (strparser) is a utility that parses messages of an
13 The strparser works in one of two modes: receive callback or general
16 In receive callback mode, the strparser is called from the data_ready
20 In general mode, a sequence of skbs are fed to strparser from an
22 processed. This modes allows strparser to be applied to arbitrary
37 strp_init(struct strparser *strp, struct sock *sk,
41 strparser that is allocated by the upper layer. sk is the TCP
46 void strp_pause(struct strparser *strp)
51 void strp_unpause(struct strparser *strp)
[all …]
Dtls-offload.rst58 and the ``strparser`` mechanism is used to delineate the records. Upon read
/Linux-v5.4/net/
DMakefile39 obj-$(CONFIG_STREAM_PARSER) += strparser/
DKconfig368 source "net/strparser/Kconfig"
/Linux-v5.4/net/core/
Dskmsg.c681 static struct sk_psock *sk_psock_from_strp(struct strparser *strp) in sk_psock_from_strp()
741 static void sk_psock_strp_read(struct strparser *strp, struct sk_buff *skb) in sk_psock_strp_read()
759 static int sk_psock_strp_read_done(struct strparser *strp, int err) in sk_psock_strp_read_done()
764 static int sk_psock_strp_parse(struct strparser *strp, struct sk_buff *skb) in sk_psock_strp_parse()
/Linux-v5.4/include/linux/
Dskmsg.h70 struct strparser strp;
/Linux-v5.4/net/kcm/
Dkcmsock.c356 static void kcm_rcv_strparser(struct strparser *strp, struct sk_buff *skb) in kcm_rcv_strparser()
377 static int kcm_parse_func_strparser(struct strparser *strp, struct sk_buff *skb) in kcm_parse_func_strparser()
389 static int kcm_read_sock_done(struct strparser *strp, int err) in kcm_read_sock_done()
/Linux-v5.4/net/tls/
Dtls_sw.c1967 static int tls_read_size(struct strparser *strp, struct sk_buff *skb) in tls_read_size()
2029 static void tls_queue(struct strparser *strp, struct sk_buff *skb) in tls_queue()