]> andersk Git - openssh.git/blobdiff - misc.c
- (dtucker) [Makefile.in] .c files do not belong in the OBJ lines.
[openssh.git] / misc.c
diff --git a/misc.c b/misc.c
index 21db00a137533402b68544f1f20e549cf6be01e1..d4bdfc0eae5c2410b70e434746d5d853383c602a 100644 (file)
--- a/misc.c
+++ b/misc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: misc.c,v 1.73 2009/11/20 03:24:07 djm Exp $ */
+/* $OpenBSD: misc.c,v 1.74 2009/12/25 19:40:21 stevesk Exp $ */
 /*
  * Copyright (c) 2000 Markus Friedl.  All rights reserved.
  * Copyright (c) 2005,2006 Damien Miller.  All rights reserved.
@@ -273,6 +273,18 @@ a2port(const char *s)
        return (int)port;
 }
 
+int
+a2rdomain(const char *s)
+{
+       long long rdomain;
+       const char *errstr;
+
+       rdomain = strtonum(s, 0, RT_TABLEID_MAX, &errstr);
+       if (errstr != NULL)
+               return -1;
+       return (int)rdomain;
+}
+
 int
 a2tun(const char *s, int *remote)
 {
This page took 0.073027 seconds and 4 git commands to generate.