]> git.puffer.fish Git - matthieu/frr.git/commitdiff
zebra: update comment when calling pbr southbound interface
authorPhilippe Guibert <philippe.guibert@6wind.com>
Thu, 3 May 2018 06:56:42 +0000 (08:56 +0200)
committerPhilippe Guibert <philippe.guibert@6wind.com>
Thu, 31 May 2018 15:44:39 +0000 (17:44 +0200)
Some documentation is updated.

Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
zebra/zebra_pbr.c

index d15aac46f3010f95e6ac33c4cd4f06969a2beaad..fea589ee6d339c9852d7c790d091e6bb7f0d12ee 100644 (file)
@@ -441,7 +441,6 @@ void zebra_pbr_destroy_ipset(struct zebra_ns *zns,
        lookup = hash_lookup(zns->ipset_hash, ipset);
        /* TODO:
         * - Netlink destroy from kernel
-        * - ?? destroy ipset entries before
         */
        if (lookup) {
                hash_release(zns->ipset_hash, lookup);
@@ -511,7 +510,6 @@ void zebra_pbr_add_ipset_entry(struct zebra_ns *zns,
        (void)hash_get(zns->ipset_entry_hash, ipset,
                       pbr_ipset_entry_alloc_intern);
        /* TODO:
-        * - attach to ipset list
         * - Netlink add to kernel
         */
 }
@@ -524,8 +522,6 @@ void zebra_pbr_del_ipset_entry(struct zebra_ns *zns,
        lookup = hash_lookup(zns->ipset_entry_hash, ipset);
        /* TODO:
         * - Netlink destroy
-        * - detach from ipset list
-        * - ?? if no more entres, delete ipset
         */
        if (lookup) {
                hash_release(zns->ipset_entry_hash, lookup);
@@ -554,7 +550,7 @@ void zebra_pbr_add_iptable(struct zebra_ns *zns,
 {
        (void)hash_get(zns->iptable_hash, iptable,
                       pbr_iptable_alloc_intern);
-       /* TODO call netlink layer */
+       /* TODO call ioctl layer */
 }
 
 void zebra_pbr_del_iptable(struct zebra_ns *zns,
@@ -564,8 +560,7 @@ void zebra_pbr_del_iptable(struct zebra_ns *zns,
 
        lookup = hash_lookup(zns->iptable_hash, iptable);
        /* TODO:
-        * - call netlink layer
-        * - detach from iptable list
+        * - call ioctl layer
         */
        if (lookup) {
                struct listnode *node, *nnode;