Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F163190268
D51991.id160558.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
478 B
Referenced Files
None
Subscribers
None
D51991.id160558.diff
View Options
diff --git a/sys/netinet/ip_icmp.c b/sys/netinet/ip_icmp.c
--- a/sys/netinet/ip_icmp.c
+++ b/sys/netinet/ip_icmp.c
@@ -391,7 +391,6 @@
nip->ip_hl = 5;
nip->ip_p = IPPROTO_ICMP;
nip->ip_tos = 0;
- nip->ip_off = 0;
if (V_error_keeptags)
m_tag_copy_chain(m, n, M_NOWAIT);
@@ -872,6 +871,8 @@
mac_netinet_icmp_replyinplace(m);
#endif
ip->ip_src = t;
+ /* ip->ip_tos will be reflected. */
+ ip->ip_off = htons(0);
ip->ip_ttl = V_ip_defttl;
if (optlen > 0) {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Jul 21, 9:56 PM (9 h, 13 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
35334738
Default Alt Text
D51991.id160558.diff (478 B)
Attached To
Mode
D51991: icmp: clear offset and flags when reflecting a packet
Attached
Detach File
Event Timeline
Log In to Comment