fix: Waddress (#298)

* fix: Waddress
This commit is contained in:
Konstantin Lebedev
2022-11-30 15:38:53 +05:00
committed by GitHub
parent f49a6c8ada
commit a4a3f52912
13 changed files with 42 additions and 79 deletions

View File

@@ -116,7 +116,7 @@ static int __nat25_add_pppoe_tag(struct sk_buff *skb, struct pppoe_tag *tag)
/* have a room for new tag */
memmove(((unsigned char *)ph->tag + data_len), (unsigned char *)ph->tag, ntohs(ph->length));
ph->length = htons(ntohs(ph->length) + data_len);
memcpy((unsigned char *)ph->tag, tag, data_len);
memcpy((unsigned char *)ph->tag, tag, tag->tag_len);
return data_len;
}