Mercurial > hg > nginx
annotate src/event/quic/bpf/makefile @ 8994:e00295b76395 quic
QUIC: revised ngx_quic_handle_datagram() error codes.
The NGX_DECLINED is replaced with NGX_DONE to match closer to return code
of ngx_quic_handle_packet() and ngx_quic_close_connection() rc argument.
The ngx_quic_close_connection() rc code is used only when quic connection
exists, thus anything goes if qc == NULL.
The ngx_quic_handle_datagram() does not return NG_OK in cases when quic
connection is not yet created.
author | Vladimir Homutov <vl@nginx.com> |
---|---|
date | Tue, 01 Feb 2022 14:35:31 +0300 |
parents | 7df607cb2d11 |
children |
rev | line source |
---|---|
8676 | 1 CFLAGS=-O2 -Wall |
2 | |
3 LICENSE=BSD | |
4 | |
5 PROGNAME=ngx_quic_reuseport_helper | |
6 RESULT=ngx_event_quic_bpf_code | |
7 DEST=../$(RESULT).c | |
8 | |
9 all: $(RESULT) | |
10 | |
11 $(RESULT): $(PROGNAME).o | |
12 LICENSE=$(LICENSE) PROGNAME=$(PROGNAME) bash ./bpfgen.sh $< > $@ | |
13 | |
14 DEFS=-DPROGNAME=\"$(PROGNAME)\" \ | |
15 -DLICENSE_$(LICENSE) \ | |
16 -DLICENSE=\"$(LICENSE)\" \ | |
17 | |
18 $(PROGNAME).o: $(PROGNAME).c | |
19 clang $(CFLAGS) $(DEFS) -target bpf -c $< -o $@ | |
20 | |
21 install: $(RESULT) | |
22 cp $(RESULT) $(DEST) | |
23 | |
24 clean: | |
25 @rm -f $(RESULT) *.o | |
26 | |
27 debug: $(PROGNAME).o | |
28 llvm-objdump -S -no-show-raw-insn $< | |
29 | |
30 .DELETE_ON_ERROR: |