diff --git a/sys/netccitt/pk_extern.h b/sys/netccitt/pk_extern.h index a7c4002e0118..6c2bb3cca59d 100644 --- a/sys/netccitt/pk_extern.h +++ b/sys/netccitt/pk_extern.h @@ -1,4 +1,4 @@ -/* $NetBSD: pk_extern.h,v 1.1 1996/02/13 22:05:17 christos Exp $ */ +/* $NetBSD: pk_extern.h,v 1.2 1996/03/14 18:47:52 christos Exp $ */ /* * Copyright (c) 1995 Christos Zoulas. All rights reserved. @@ -63,7 +63,7 @@ void pk_call_accepted __P((struct pklcd *, struct mbuf *)); void pk_parse_facilities __P((octet *, struct sockaddr_x25 *)); /* pk_llcsubr.c */ -int cons_rtrequest __P((int, struct rtentry *, struct sockaddr *)); +void cons_rtrequest __P((int, struct rtentry *, struct sockaddr *)); struct rtentry *npaidb_enter __P((struct sockaddr_dl *, struct sockaddr *, struct rtentry *, struct llc_linkcb *)); struct rtentry *npaidb_enrich __P((short, caddr_t, struct sockaddr_dl *)); diff --git a/sys/netccitt/pk_llcsubr.c b/sys/netccitt/pk_llcsubr.c index d96ba17f333a..d538588340dc 100644 --- a/sys/netccitt/pk_llcsubr.c +++ b/sys/netccitt/pk_llcsubr.c @@ -1,4 +1,4 @@ -/* $NetBSD: pk_llcsubr.c,v 1.4 1996/02/13 22:05:26 christos Exp $ */ +/* $NetBSD: pk_llcsubr.c,v 1.5 1996/03/14 18:47:53 christos Exp $ */ /* * Copyright (C) Dirk Husemann, Computer Science Department IV, @@ -125,11 +125,28 @@ #define XIFA(rt) ((struct x25_ifaddr *)((rt)->rt_ifa)) #define SA(s) ((struct sockaddr *)s) -int +static int cons_rtrequest_internal __P((int, struct rtentry *, + struct sockaddr *)); + +/* + * ifa_rtrequest currently does not check the error from the rtrequest call + * so we use a void version of the cons_rtrequest routine. + */ +void cons_rtrequest(cmd, rt, dst) int cmd; struct rtentry *rt; struct sockaddr *dst; +{ + cons_rtrequest_internal(cmd, rt, dst); +} + + +static int +cons_rtrequest_internal(cmd, rt, dst) + int cmd; + struct rtentry *rt; + struct sockaddr *dst; { register struct pkcb *pkp; register char one_to_one;