Page MenuHomeFreeBSD

D58361.id182306.diff
No OneTemporary

D58361.id182306.diff

diff --git a/sys/net/if_geneve.c b/sys/net/if_geneve.c
--- a/sys/net/if_geneve.c
+++ b/sys/net/if_geneve.c
@@ -3131,10 +3131,8 @@
}
iphdr = mtodo(m, offset - sizeof(struct ip));
- if (ip_ecn_egress(ECN_COMPLETE, &info->ecn, &iphdr->ip_tos) == 0) {
- *m0 = NULL;
+ if (ip_ecn_egress(ECN_COMPLETE, &info->ecn, &iphdr->ip_tos) == 0)
return (ENOBUFS);
- }
if ((sc->gnv_flags & GENEVE_FLAG_TTL_INHERIT) != 0 && info->ttl > 0)
iphdr->ip_ttl = info->ttl;
@@ -3155,10 +3153,8 @@
ip6hdr = mtodo(m, offset - sizeof(struct ip6_hdr));
itos = (ntohl(ip6hdr->ip6_flow) >> IPV6_FLOWLABEL_LEN) & 0xff;
- if (ip_ecn_egress(ECN_COMPLETE, &info->ecn, &itos) == 0) {
- *m0 = NULL;
+ if (ip_ecn_egress(ECN_COMPLETE, &info->ecn, &itos) == 0)
return (ENOBUFS);
- }
ip6hdr->ip6_flow |= htonl((uint32_t)itos << IPV6_FLOWLABEL_LEN);
if ((sc->gnv_flags & GENEVE_FLAG_TTL_INHERIT) && (info->ttl > 0))

File Metadata

Mime Type
text/plain
Expires
Mon, Aug 3, 2:56 AM (3 h, 8 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
35333123
Default Alt Text
D58361.id182306.diff (925 B)

Event Timeline