403Webshell
Server IP : 82.208.35.60  /  Your IP : 216.73.216.89
Web Server : Apache/2.4.55 (FreeBSD) OpenSSL/1.1.1q-freebsd PHP/7.3.31
System : FreeBSD server7.d2m.cz 12.4-RELEASE-p9 FreeBSD 12.4-RELEASE-p9 GENERIC amd64
User : studiokobylisy_cz ( 1008)
PHP Version : 7.3.31
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /usr/ports/net/l2tpd/files/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/ports/net/l2tpd/files/patch-file.c
--- file.c.orig	Sat Aug 10 03:55:14 2002
+++ file.c	Wed Apr 16 16:07:19 2003
@@ -18,10 +18,7 @@
 #include <unistd.h>
 #include <stdlib.h>
 #include <netdb.h>
-#include <netinet/in.h>
 #include <time.h>
-#include <sys/types.h>
-#include <sys/socket.h>
 
 #include "l2tp.h"
 
@@ -207,6 +204,29 @@
     return 0;
 }
 
+int set_address (char *word, char *value, int context, void *item)
+{
+    switch (context & ~CONTEXT_DEFAULT)
+    {
+    case CONTEXT_GLOBAL:
+#ifdef DEBUG_FILE
+        log (LOG_DEBUG, "set_address: Setting global IP address to %s\n",
+             value);
+#endif
+	if (!inet_aton(value, &(((struct global *) item)->addr)))
+	{
+	    snprintf (filerr, sizeof (filerr), "invalid address given\n");
+	    return -1;
+	}
+        break;
+    default:
+        snprintf (filerr, sizeof (filerr), "'%s' not valid in this context\n",
+                  word);
+        return -1;
+    }
+    return 0;
+}
+
 int set_port (char *word, char *value, int context, void *item)
 {
     switch (context & ~CONTEXT_DEFAULT)
@@ -1196,6 +1216,7 @@
 }
 
 struct keyword words[] = {
+    {"address", &set_address},
     {"port", &set_port},
     {"rand source", &set_rand_source},
     {"auth file", &set_authfile},

Youez - 2016 - github.com/yon3zu
LinuXploit