Page MenuHomeFreeBSD

D7777.1794752058.diff
No OneTemporary

Authored By
Unknown
Size
768 B
Referenced Files
None
Subscribers
None

D7777.1794752058.diff

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

Mime Type
text/plain
Expires
Sun, Nov 15, 2:14 PM (12 h, 47 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41743850
Default Alt Text
D7777.1794752058.diff (768 B)

Event Timeline