Przeglądaj źródła

- ipops module: fix in documentation.

Iñaki Baz Castillo 14 lat temu
rodzic
commit
422f81d42d

+ 2 - 2
modules/ipops/README

@@ -253,7 +253,7 @@ switch($rc) {
    Example 1.7.  compare_ips usage
 ...
 if (compare_ips("1080:0000:0000:0000:0008:0800:200C:417A", "[1080::8:800:200C:41
-7A]") {
+7A]")) {
   xlog("L_INFO", "both are the same IP\n");
 }
 ...
@@ -273,7 +273,7 @@ if (compare_ips("1080:0000:0000:0000:0008:0800:200C:417A", "[1080::8:800:200C:41
 
    Example 1.8.  compare_pure_ips usage
 ...
-if ($si, "1080::8:800:200C:417A") {
+if (compare_pure_ips($si, "1080::8:800:200C:417A")) {
   xlog("L_INFO", "both are the same IP\n");
 }
 ...

+ 5 - 11
modules/ipops/doc/ipops_admin.xml

@@ -28,19 +28,13 @@
 
     <itemizedlist>
       <listitem>
-        <para>
-          <emphasis>1080:0000:0000:0000:0008:0800:200C:417A</emphasis>
-        </para>
+        <para>1080:0000:0000:0000:0008:0800:200C:417A</para>
       </listitem>
       <listitem>
-        <para>
-          <emphasis>1080:0:0:0:8:800:200C:417A</emphasis>
-        </para>
+        <para>1080:0:0:0:8:800:200C:417A</para>
       </listitem>
       <listitem>
-        <para>
-          <emphasis>1080::8:800:200C:417A</emphasis>
-        </para>
+        <para>1080::8:800:200C:417A</para>
       </listitem>
     </itemizedlist>
 
@@ -394,7 +388,7 @@ switch($rc) {
         </title>
         <programlisting format="linespecific">
 ...
-if (compare_ips("1080:0000:0000:0000:0008:0800:200C:417A", "[1080::8:800:200C:417A]") {
+if (compare_ips("1080:0000:0000:0000:0008:0800:200C:417A", "[1080::8:800:200C:417A]")) {
   xlog("L_INFO", "both are the same IP\n");
 }
 ...
@@ -437,7 +431,7 @@ if (compare_ips("1080:0000:0000:0000:0008:0800:200C:417A", "[1080::8:800:200C:41
         </title>
         <programlisting format="linespecific">
 ...
-if ($si, "1080::8:800:200C:417A") {
+if (compare_pure_ips($si, "1080::8:800:200C:417A")) {
   xlog("L_INFO", "both are the same IP\n");
 }
 ...

Plik diff jest za duży
+ 115 - 117
modules/ipops/ip_parser.c


+ 0 - 2
modules/ipops/ip_parser.rl

@@ -1,6 +1,4 @@
 #include "ip_parser.h"
-#include <stdio.h>
-//#include <stdlib.h>
 
 
 /** Ragel machine **/

Niektóre pliki nie zostały wyświetlone z powodu dużej ilości zmienionych plików