Skip to content

Commit 4051c2f

Browse files
Update rtw_br_ext.c
1 parent 9a3185b commit 4051c2f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

core/rtw_br_ext.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ static __inline__ int __nat25_add_pppoe_tag(struct sk_buff *skb, struct pppoe_ta
100100
struct pppoe_hdr *ph = (struct pppoe_hdr *)(skb->data + ETH_HLEN);
101101
int data_len;
102102

103-
data_len = tag->tag_len + TAG_HDR_LEN;
103+
data_len = ntohs(tag->tag_len) + TAG_HDR_LEN;
104104
if (skb_tailroom(skb) < data_len) {
105105
_DEBUG_ERR("skb_tailroom() failed in add SID tag!\n");
106106
return -1;

0 commit comments

Comments
 (0)