version 1.150, 2006/10/10 21:49:15 |
version 1.155, 2006/11/10 13:02:32 |
Line 999 udp_ctlinput(int cmd, struct sockaddr *s |
|
Line 999 udp_ctlinput(int cmd, struct sockaddr *s |
|
} |
} |
|
|
int |
int |
udp_ctloutput(op, so, level, optname, mp) |
udp_ctloutput(int op, struct socket *so, int level, int optname, |
int op; |
struct mbuf **mp) |
struct socket *so; |
|
int level, optname; |
|
struct mbuf **mp; |
|
{ |
{ |
int s; |
int s; |
int error = 0; |
int error = 0; |
Line 1034 udp_ctloutput(op, so, level, optname, mp |
|
Line 1031 udp_ctloutput(op, so, level, optname, mp |
|
default: |
default: |
error = EAFNOSUPPORT; |
error = EAFNOSUPPORT; |
goto end; |
goto end; |
break; |
|
} |
} |
|
|
|
|
Line 1047 udp_ctloutput(op, so, level, optname, mp |
|
Line 1043 udp_ctloutput(op, so, level, optname, mp |
|
case UDP_ENCAP: |
case UDP_ENCAP: |
if (m == NULL || m->m_len < sizeof (int)) { |
if (m == NULL || m->m_len < sizeof (int)) { |
error = EINVAL; |
error = EINVAL; |
goto end; |
break; |
} |
} |
|
|
switch(*mtod(m, int *)) { |
switch(*mtod(m, int *)) { |
Line 1068 udp_ctloutput(op, so, level, optname, mp |
|
Line 1064 udp_ctloutput(op, so, level, optname, mp |
|
#endif |
#endif |
default: |
default: |
error = EINVAL; |
error = EINVAL; |
goto end; |
|
break; |
break; |
} |
} |
break; |
break; |
|
|
default: |
default: |
error = ENOPROTOOPT; |
error = ENOPROTOOPT; |
goto end; |
|
break; |
break; |
} |
} |
|
if (m != NULL) { |
|
m_free(m); |
|
} |
break; |
break; |
|
|
default: |
default: |
error = EINVAL; |
error = EINVAL; |
goto end; |
|
break; |
break; |
} |
} |
|
|
Line 1421 SYSCTL_SETUP(sysctl_net_inet_udp_setup, |
|
Line 1417 SYSCTL_SETUP(sysctl_net_inet_udp_setup, |
|
* -1 if an error occurent and m was freed |
* -1 if an error occurent and m was freed |
*/ |
*/ |
static int |
static int |
udp4_espinudp(mp, off, src, so) |
udp4_espinudp(struct mbuf **mp, int off, struct sockaddr *src, |
struct mbuf **mp; |
struct socket *so) |
int off; |
|
struct sockaddr *src; |
|
struct socket *so; |
|
{ |
{ |
size_t len; |
size_t len; |
caddr_t data; |
caddr_t data; |