Reset Extendend Length flag when encoding BGP attributes

This commit is contained in:
Simon Marsh 2021-03-27 14:29:55 +00:00
parent e6133456c1
commit 18853a82c6
Signed by: burble
GPG Key ID: 0FCCD13AE1CF7ED8

View File

@ -118,7 +118,7 @@ bgp_set_attr(ea_list **attrs, struct linpool *pool, uint code, uint flags, uintp
static inline int
bgp_put_attr_hdr3(byte *buf, uint code, uint flags, uint len)
{
*buf++ = flags;
*buf++ = flags & ~BAF_EXT_LEN;
*buf++ = code;
*buf++ = len;
return 3;