|
|
| version 1.2, 2003/06/17 04:29:52 | version 1.3, 2004/03/11 09:38:59 |
|---|---|
| Line 36 | Line 36 |
| * SUCH DAMAGE. | * SUCH DAMAGE. |
| * | * |
| * $FreeBSD: src/usr.sbin/IPXrouted/output.c,v 1.8 1999/08/28 01:15:03 peter Exp $ | * $FreeBSD: src/usr.sbin/IPXrouted/output.c,v 1.8 1999/08/28 01:15:03 peter Exp $ |
| * $DragonFly: src/usr.sbin/IPXrouted/output.c,v 1.1 2003/06/16 07:16:17 dillon Exp $ | * $DragonFly$ |
| * | * |
| * @(#)output.c 8.1 (Berkeley) 6/5/93 | * @(#)output.c 8.1 (Berkeley) 6/5/93 |
| */ | */ |
| Line 54 | Line 54 |
| * the output to the known router. | * the output to the known router. |
| */ | */ |
| void | void |
| toall(f, except, changesonly) | toall(void (*f)(struct sockaddr *, int, struct interface *, int), |
| void (*f)(struct sockaddr *, int, struct interface *, int); | struct rt_entry *except, int changesonly) |
| struct rt_entry *except; | |
| int changesonly; | |
| { | { |
| register struct interface *ifp; | struct interface *ifp; |
| register struct sockaddr *dst; | struct sockaddr *dst; |
| register int flags; | int flags; |
| register struct rt_entry *trt; | struct rt_entry *trt; |
| int onlist; | int onlist; |
| extern struct interface *ifnet; | extern struct interface *ifnet; |
| Line 97 toall(f, except, changesonly) | Line 95 toall(f, except, changesonly) |
| * Output a preformed packet. | * Output a preformed packet. |
| */ | */ |
| void | void |
| sndmsg(dst, flags, ifp, changesonly) | sndmsg(struct sockaddr *dst, int flags, struct interface *ifp, |
| struct sockaddr *dst; | int changesonly) |
| int flags; | |
| struct interface *ifp; | |
| int changesonly; | |
| { | { |
| (*afswitch[dst->sa_family].af_output) | (*afswitch[dst->sa_family].af_output) |
| Line 121 sndmsg(dst, flags, ifp, changesonly) | Line 116 sndmsg(dst, flags, ifp, changesonly) |
| * clones. | * clones. |
| */ | */ |
| void | void |
| supply(dst, flags, ifp, changesonly) | supply(struct sockaddr *dst, int flags, struct interface *ifp, |
| struct sockaddr *dst; | int changesonly) |
| int flags; | |
| struct interface *ifp; | |
| int changesonly; | |
| { | { |
| register struct rt_entry *rt; | struct rt_entry *rt; |
| register struct rt_entry *crt; /* Clone route */ | struct rt_entry *crt; /* Clone route */ |
| register struct rthash *rh; | struct rthash *rh; |
| register struct netinfo *nn; | struct netinfo *nn; |
| register struct netinfo *n = msg->rip_nets; | struct netinfo *n = msg->rip_nets; |
| struct sockaddr_ipx *sipx = (struct sockaddr_ipx *) dst; | struct sockaddr_ipx *sipx = (struct sockaddr_ipx *) dst; |
| af_output_t *output = afswitch[dst->sa_family].af_output; | af_output_t *output = afswitch[dst->sa_family].af_output; |
| int size, metric, ticks; | int size, metric, ticks; |