]> git.ipfire.org Git - thirdparty/haproxy.git/commit
REORG: dgram: rename proto_udp to dgram
authorWilly Tarreau <w@1wt.eu>
Thu, 11 Jun 2020 07:23:02 +0000 (09:23 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 11 Jun 2020 08:18:59 +0000 (10:18 +0200)
commit7c18b54106ec21273aea3fe59ba23280e86821f5
tree5ec21fbe730befbe33a3167beca0c970682b0ed4
parente5793916f00bf677382ef0ba3a4b163c20421937
REORG: dgram: rename proto_udp to dgram

The set of files proto_udp.{c,h} were misleadingly named, as they do not
provide anything related to the UDP protocol but to datagram handling
instead, since currently all UDP processing is hard-coded where it's used
(dns, logs). They are to UDP what connection.{c,h} are to proto_tcp. This
was causing confusion about how to insert UDP socket management code,
so let's rename them right now to dgram.{c,h} which more accurately
matches what's inside since every function and type is already prefixed
with "dgram_".
Makefile
include/haproxy/dgram-t.h [moved from include/haproxy/proto_udp-t.h with 88% similarity]
include/haproxy/dgram.h [moved from include/haproxy/proto_udp.h with 78% similarity]
include/haproxy/dns-t.h
src/check.c
src/dgram.c [moved from src/proto_udp.c with 90% similarity]
src/dns.c
src/tools.c