Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F151063932
D7777.id20042.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
768 B
Referenced Files
None
Subscribers
None
D7777.id20042.diff
View Options
Index: head/sys/netinet/igmp.c
===================================================================
--- head/sys/netinet/igmp.c
+++ head/sys/netinet/igmp.c
@@ -543,10 +543,10 @@
m = m_get(M_WAITOK, MT_DATA);
p = mtod(m, struct ipoption *);
p->ipopt_dst.s_addr = INADDR_ANY;
- p->ipopt_list[0] = IPOPT_RA; /* Router Alert Option */
- p->ipopt_list[1] = 0x04; /* 4 bytes long */
- p->ipopt_list[2] = IPOPT_EOL; /* End of IP option list */
- p->ipopt_list[3] = 0x00; /* pad byte */
+ p->ipopt_list[0] = (char)IPOPT_RA; /* Router Alert Option */
+ p->ipopt_list[1] = 0x04; /* 4 bytes long */
+ p->ipopt_list[2] = IPOPT_EOL; /* End of IP option list */
+ p->ipopt_list[3] = 0x00; /* pad byte */
m->m_len = sizeof(p->ipopt_dst) + p->ipopt_list[1];
return (m);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Apr 6, 5:58 PM (2 h, 17 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
30990590
Default Alt Text
D7777.id20042.diff (768 B)
Attached To
Mode
D7777: Fix constant conversion warning in igmp
Attached
Detach File
Event Timeline
Log In to Comment