mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
put ip_len in correct order for ip_output().
This prevents a panic when ipfw generates packets on its own (such as reject or keepalives for dynamic rules). Reported by: Chagin Dmitry
This commit is contained in:
parent
445e33e4ac
commit
eb6842e2a9
1 changed files with 2 additions and 1 deletions
|
|
@ -1002,7 +1002,8 @@ ipfw_send_pkt(struct mbuf *replyto, struct ipfw_flow_id *id, u_int32_t seq,
|
|||
h->ip_hl = sizeof(*h) >> 2;
|
||||
h->ip_tos = IPTOS_LOWDELAY;
|
||||
h->ip_off = 0;
|
||||
h->ip_len = htons(len);
|
||||
/* ip_len must be in host format for ip_output */
|
||||
h->ip_len = len;
|
||||
h->ip_ttl = V_ip_defttl;
|
||||
h->ip_sum = 0;
|
||||
break;
|
||||
|
|
|
|||
Loading…
Reference in a new issue