| version 1.94, 2006/10/25 22:49:23 |
version 1.95, 2007/02/17 22:34:12 |
| Line 266 rip_pcbnotify(struct inpcbtable *table, |
|
| Line 266 rip_pcbnotify(struct inpcbtable *table, |
|
| } |
} |
| |
|
| void * |
void * |
| rip_ctlinput(int cmd, struct sockaddr *sa, void *v) |
rip_ctlinput(int cmd, const struct sockaddr *sa, void *v) |
| { |
{ |
| struct ip *ip = v; |
struct ip *ip = v; |
| void (*notify)(struct inpcb *, int) = in_rtchange; |
void (*notify)(struct inpcb *, int) = in_rtchange; |
| Line 285 rip_ctlinput(int cmd, struct sockaddr *s |
|
| Line 285 rip_ctlinput(int cmd, struct sockaddr *s |
|
| else if (errno == 0) |
else if (errno == 0) |
| return NULL; |
return NULL; |
| if (ip) { |
if (ip) { |
| rip_pcbnotify(&rawcbtable, satosin(sa)->sin_addr, |
rip_pcbnotify(&rawcbtable, satocsin(sa)->sin_addr, |
| ip->ip_src, ip->ip_p, errno, notify); |
ip->ip_src, ip->ip_p, errno, notify); |
| |
|
| /* XXX mapped address case */ |
/* XXX mapped address case */ |
| } else |
} else |
| in_pcbnotifyall(&rawcbtable, satosin(sa)->sin_addr, errno, |
in_pcbnotifyall(&rawcbtable, satocsin(sa)->sin_addr, errno, |
| notify); |
notify); |
| return NULL; |
return NULL; |
| } |
} |