diff options
author | Yacan Liu <liuyacan@corp.netease.com> | 2022-09-20 14:19:19 +0800 |
---|---|---|
committer | Florin Coras <florin.coras@gmail.com> | 2022-09-20 16:56:40 +0000 |
commit | f5e0a17c9cca09822296a0ed3196fde36c1ca5f8 (patch) | |
tree | b71e6578c70a82cb5af4e0d9e8f6e76c30d7ff95 /extras/packetforge/parsegraph/edges/arpv4_after_macvlan.json | |
parent | c872cec3f0b31f7baf36dd50d75c285f0d0f4bec (diff) |
vcl: align the RST behaviour with kernel
When ESTABLISHED TCP connection is terminated by an RST packet,
EPOLLHUP + EPOLLRDHUP would be updeliever by VCL. If not using
VPP, app would receive EPOLLHUP + EPOLLERR + EPOLLIN(if requested) +
EPOLLRDHUP(if requested).
libevent will interpret the two cases as different EV combinations.
Below is the code snippet for libevent v2.12:
if (what & EPOLLERR) {
ev = EV_READ | EV_WRITE;
} else if ((what & EPOLLHUP) && !(what & EPOLLRDHUP)) {
ev = EV_READ | EV_WRITE;
} else {
if (what & EPOLLIN)
ev |= EV_READ;
if (what & EPOLLOUT)
ev |= EV_WRITE;
if (what & EPOLLRDHUP)
ev |= EV_CLOSED;
}
Type: fix
Signed-off-by: Yacan Liu <liuyacan@corp.netease.com>
Change-Id: Ice3d2861183b6ea499f66b727bbe175eeae5cb05
Diffstat (limited to 'extras/packetforge/parsegraph/edges/arpv4_after_macvlan.json')
0 files changed, 0 insertions, 0 deletions