|
|
| version 1.2, 2003/06/17 04:29:52 | version 1.3, 2004/03/11 09:38:59 |
|---|---|
| Line 29 | Line 29 |
| * SUCH DAMAGE. | * SUCH DAMAGE. |
| * | * |
| * $FreeBSD: src/usr.sbin/IPXrouted/sap_tables.c,v 1.7 1999/08/28 01:15:04 peter Exp $ | * $FreeBSD: src/usr.sbin/IPXrouted/sap_tables.c,v 1.7 1999/08/28 01:15:04 peter Exp $ |
| * $DragonFly: src/usr.sbin/IPXrouted/sap_tables.c,v 1.1 2003/06/16 07:16:22 dillon Exp $ | * $DragonFly$ |
| */ | */ |
| #include "defs.h" | #include "defs.h" |
| Line 93 saphash(u_short ServType, char *ServName | Line 93 saphash(u_short ServType, char *ServName |
| struct sap_entry * | struct sap_entry * |
| sap_lookup(u_short ServType, char *ServName) | sap_lookup(u_short ServType, char *ServName) |
| { | { |
| register struct sap_entry *sap; | struct sap_entry *sap; |
| register struct sap_hash *sh; | struct sap_hash *sh; |
| int hsh; | int hsh; |
| hsh = saphash(ServType, ServName); | hsh = saphash(ServType, ServName); |
| Line 123 sap_lookup(u_short ServType, char *ServN | Line 123 sap_lookup(u_short ServType, char *ServN |
| struct sap_entry * | struct sap_entry * |
| sap_nearestserver(ushort ServType, struct interface *ifp) | sap_nearestserver(ushort ServType, struct interface *ifp) |
| { | { |
| register struct sap_entry *sap; | struct sap_entry *sap; |
| register struct sap_entry *csap; | struct sap_entry *csap; |
| struct sap_hash *sh; | struct sap_hash *sh; |
| register struct sap_entry *best = NULL; | struct sap_entry *best = NULL; |
| register int besthops = HOPCNT_INFINITY; | int besthops = HOPCNT_INFINITY; |
| sh = sap_head; | sh = sap_head; |
| Line 153 next:; | Line 153 next:; |
| void | void |
| sap_add(struct sap_info *si, struct sockaddr *from) | sap_add(struct sap_info *si, struct sockaddr *from) |
| { | { |
| register struct sap_entry *nsap; | struct sap_entry *nsap; |
| register struct sap_hash *sh; | struct sap_hash *sh; |
| if (ntohs(si->hops) == HOPCNT_INFINITY) | if (ntohs(si->hops) == HOPCNT_INFINITY) |
| return; | return; |
| Line 272 sap_add_clone(struct sap_entry *sap, | Line 272 sap_add_clone(struct sap_entry *sap, |
| struct sap_info *clone, | struct sap_info *clone, |
| struct sockaddr *from) | struct sockaddr *from) |
| { | { |
| register struct sap_entry *nsap; | struct sap_entry *nsap; |
| register struct sap_entry *csap; | struct sap_entry *csap; |
| if (ntohs(clone->hops) == HOPCNT_INFINITY) | if (ntohs(clone->hops) == HOPCNT_INFINITY) |
| return; | return; |