| version 1.156, 2006/11/14 12:05:55 |
version 1.156.4.1, 2007/02/27 16:54:57 |
| Line 963 udp_notify(struct inpcb *inp, int errno) |
|
| Line 963 udp_notify(struct inpcb *inp, int errno) |
|
| } |
} |
| |
|
| void * |
void * |
| udp_ctlinput(int cmd, struct sockaddr *sa, void *v) |
udp_ctlinput(int cmd, const struct sockaddr *sa, void *v) |
| { |
{ |
| struct ip *ip = v; |
struct ip *ip = v; |
| struct udphdr *uh; |
struct udphdr *uh; |
| Line 984 udp_ctlinput(int cmd, struct sockaddr *s |
|
| Line 984 udp_ctlinput(int cmd, struct sockaddr *s |
|
| return NULL; |
return NULL; |
| if (ip) { |
if (ip) { |
| uh = (struct udphdr *)((caddr_t)ip + (ip->ip_hl << 2)); |
uh = (struct udphdr *)((caddr_t)ip + (ip->ip_hl << 2)); |
| in_pcbnotify(&udbtable, satosin(sa)->sin_addr, uh->uh_dport, |
in_pcbnotify(&udbtable, satocsin(sa)->sin_addr, uh->uh_dport, |
| ip->ip_src, uh->uh_sport, errno, notify); |
ip->ip_src, uh->uh_sport, errno, notify); |
| |
|
| /* XXX mapped address case */ |
/* XXX mapped address case */ |
| } else |
} else |
| in_pcbnotifyall(&udbtable, satosin(sa)->sin_addr, errno, |
in_pcbnotifyall(&udbtable, satocsin(sa)->sin_addr, errno, |
| notify); |
notify); |
| return NULL; |
return NULL; |
| } |
} |