Library ospf
A minimalistic OSPF (Open Shortest Path First routing protocol) library, currently supporting IPv4 and the following OSPF message types: HELLO
The library consists of an OSPF class that contains code to handle OSPFv2 packets.
Author:
| "Patrik Karlsson <patrik@cqure.net>" |
Copyright© Same as Nmap--See http://nmap.org/book/man-legal.html
Source: http://nmap.org/svn/nselib/ospf.lua
Functions
| addNeighbor (self, neighbor) |
Adds a neighbor to the list of neighbors. |
| setAreaID (self, areaid) |
Sets the OSPF Area ID |
| setBackupRouter (self, router) |
Sets the OSPF backup Router. |
| setDesignatedRouter (self, router) |
Sets the OSPF designated Router. |
| setLength (self, length) |
Sets the OSPF Packet length |
| setNetmask (self, netmask) |
Sets the OSPF netmask. |
| setRouterId (self, router_id) |
Sets the OSPF Router ID |
Functions
- addNeighbor (self, neighbor)
-
Adds a neighbor to the list of neighbors.
Parameters
- self:
- neighbor: IP Address of the neighbor.
- setAreaID (self, areaid)
-
Sets the OSPF Area ID
Parameters
- self:
- areaid: Area ID.
- setBackupRouter (self, router)
-
Sets the OSPF backup Router.
Parameters
- self:
- router: IP Address of the backup router.
- setDesignatedRouter (self, router)
-
Sets the OSPF designated Router.
Parameters
- self:
- router: IP address of the designated router.
- setLength (self, length)
-
Sets the OSPF Packet length
Parameters
- self:
- length: Packet length.
- setNetmask (self, netmask)
-
Sets the OSPF netmask.
Parameters
- self:
- netmask: Netmask in A.B.C.D
- setRouterId (self, router_id)
-
Sets the OSPF Router ID
Parameters
- self:
- router_id: Router ID.


