| version 1.93, 2002/05/12 20:33:51 |
version 1.93.2.2, 2002/07/15 10:37:03 |
|
|
| /* |
/* |
| * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project. |
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project. |
| * All rights reserved. |
* All rights reserved. |
| * |
* |
| * Redistribution and use in source and binary forms, with or without |
* Redistribution and use in source and binary forms, with or without |
| * modification, are permitted provided that the following conditions |
* modification, are permitted provided that the following conditions |
| * are met: |
* are met: |
|
|
| * 3. Neither the name of the project nor the names of its contributors |
* 3. Neither the name of the project nor the names of its contributors |
| * may be used to endorse or promote products derived from this software |
* may be used to endorse or promote products derived from this software |
| * without specific prior written permission. |
* without specific prior written permission. |
| * |
* |
| * THIS SOFTWARE IS PROVIDED BY THE PROJECT AND CONTRIBUTORS ``AS IS'' AND |
* THIS SOFTWARE IS PROVIDED BY THE PROJECT AND CONTRIBUTORS ``AS IS'' AND |
| * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
| * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE |
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE |
| Line 262 udp_input(m, va_alist) |
|
| Line 262 udp_input(m, va_alist) |
|
| return; |
return; |
| } |
} |
| #endif |
#endif |
| |
KASSERT(UDP_HDR_ALIGNED_P(uh)); |
| |
|
| /* destination port of 0 is illegal, based on RFC768. */ |
/* destination port of 0 is illegal, based on RFC768. */ |
| if (uh->uh_dport == 0) |
if (uh->uh_dport == 0) |
| Line 418 udp6_input(mp, offp, proto) |
|
| Line 419 udp6_input(mp, offp, proto) |
|
| return IPPROTO_DONE; |
return IPPROTO_DONE; |
| } |
} |
| #endif |
#endif |
| |
KASSERT(UDP_HDR_ALIGNED_P(uh)); |
| ulen = ntohs((u_short)uh->uh_ulen); |
ulen = ntohs((u_short)uh->uh_ulen); |
| /* |
/* |
| * RFC2675 section 4: jumbograms will have 0 in the UDP header field, |
* RFC2675 section 4: jumbograms will have 0 in the UDP header field, |
| Line 1137 udp_sysctl(name, namelen, oldp, oldlenp, |
|
| Line 1139 udp_sysctl(name, namelen, oldp, oldlenp, |
|
| return (sysctl_int(oldp, oldlenp, newp, newlen, |
return (sysctl_int(oldp, oldlenp, newp, newlen, |
| &udp_sendspace)); |
&udp_sendspace)); |
| case UDPCTL_RECVSPACE: |
case UDPCTL_RECVSPACE: |
| return (sysctl_int(oldp, oldlenp, newp, newlen, |
return (sysctl_int(oldp, oldlenp, newp, newlen, |
| &udp_recvspace)); |
&udp_recvspace)); |
| default: |
default: |
| return (ENOPROTOOPT); |
return (ENOPROTOOPT); |