Browse Source

- ipops module: fix in documentation.

Iñaki Baz Castillo 14 years ago
parent
commit
422f81d42d
4 changed files with 122 additions and 132 deletions
  1. 2 2
      modules/ipops/README
  2. 5 11
      modules/ipops/doc/ipops_admin.xml
  3. 115 117
      modules/ipops/ip_parser.c
  4. 0 2
      modules/ipops/ip_parser.rl

+ 2 - 2
modules/ipops/README

@@ -253,7 +253,7 @@ switch($rc) {
    Example 1.7.  compare_ips usage
    Example 1.7.  compare_ips usage
 ...
 ...
 if (compare_ips("1080:0000:0000:0000:0008:0800:200C:417A", "[1080::8:800:200C:41
 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");
   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
    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");
   xlog("L_INFO", "both are the same IP\n");
 }
 }
 ...
 ...

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

@@ -28,19 +28,13 @@
 
 
     <itemizedlist>
     <itemizedlist>
       <listitem>
       <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>
       <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>
       <listitem>
       <listitem>
-        <para>
-          <emphasis>1080::8:800:200C:417A</emphasis>
-        </para>
+        <para>1080::8:800:200C:417A</para>
       </listitem>
       </listitem>
     </itemizedlist>
     </itemizedlist>
 
 
@@ -394,7 +388,7 @@ switch($rc) {
         </title>
         </title>
         <programlisting format="linespecific">
         <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");
   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>
         </title>
         <programlisting format="linespecific">
         <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");
   xlog("L_INFO", "both are the same IP\n");
 }
 }
 ...
 ...

File diff suppressed because it is too large
+ 115 - 117
modules/ipops/ip_parser.c


+ 0 - 2
modules/ipops/ip_parser.rl

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

Some files were not shown because too many files changed in this diff