version 1.100, 2007/09/19 04:33:43 |
version 1.101, 2007/11/27 22:45:29 |
Line 384 rip_ctloutput(int op, struct socket *so, |
|
Line 384 rip_ctloutput(int op, struct socket *so, |
|
*m = m_intopt(so, |
*m = m_intopt(so, |
(inp->inp_flags & INP_NOHEADER) ? 1 : 0); |
(inp->inp_flags & INP_NOHEADER) ? 1 : 0); |
return 0; |
return 0; |
} else if (*m == NULL || (*m)->m_len < sizeof(int)) |
} else if (*m == NULL || (*m)->m_len != sizeof(int)) |
error = EINVAL; |
error = EINVAL; |
else if (*mtod(*m, int *)) { |
else if (*mtod(*m, int *)) { |
inp->inp_flags &= ~INP_HDRINCL; |
inp->inp_flags &= ~INP_HDRINCL; |
Line 400 rip_ctloutput(int op, struct socket *so, |
|
Line 400 rip_ctloutput(int op, struct socket *so, |
|
case PRCO_SETOPT: |
case PRCO_SETOPT: |
switch (optname) { |
switch (optname) { |
case IP_HDRINCL: |
case IP_HDRINCL: |
if (*m == NULL || (*m)->m_len < sizeof(int)) |
if (*m == NULL || (*m)->m_len != sizeof(int)) |
error = EINVAL; |
error = EINVAL; |
else if (*mtod(*m, int *)) |
else if (*mtod(*m, int *)) |
inp->inp_flags |= INP_HDRINCL; |
inp->inp_flags |= INP_HDRINCL; |