how to implement spf algorithm(dijikstra's or bellman ford) in networks?



  • 1. Two QoS/iptables related questions
    Hi... Two questions, 1. Can I make "iptables compatible" mark from application? If yes, how? 2. Is this mark passed over LAN? IE, can I make decision on box B based on mark made by application on box A? Thanks
  • 2. Cannot turn off DHCP in RedHat 9
    I'm running a RedHat 9 system, and I'm trying to configure its primary network interface (eth0) to have a static IP address. I run 'setup', configure all of the proper settings under 'Network Configuration' (to my knowledge), and verify the contents of /etc/sysconfig/network-scripts/ifcfg-eth0: DEVICE=eth0 ONBOOT=yes BOOTPROTO=static IPADDR= NETMASK= GATEWAY= But if I do a network restart (or even a reboot, for that matter), whenever the eth0 interface comes back up, it keeps querying my DHCP server for its settings, and configuring the interface as such. Am I missing a configuration step? I've tried various things like getting rid of the dhclient-eth0.leases file and dropping the lease before resetting the network, but I can't find any combination that will solve my problem. It seems like I must be missing some simple and obvious way to turn the DHCP client off. But if it's down the /etc/rc.d/init.d/network rabbit hole, I haven't found it yet. Any help would be much appreciated. I'm looking forward to moving on past this one. :) Thanks, Kevin
  • 3. hosts.deny problem
    Hi all, I hate to seem like I'm "crying wolf", but the following hosts.deny is still letting the occassional person through. My hosts.allow is empty. I am starting to wonder if there is a software bug. hosts.deny= ALL EXCEPT sshd httpd: ALL httpd, sshd: 80., 209., 210., 211., 212., 213., 214., 215., 216., 217., 218., 60 .36., 195.70., 202., 203.,204.,205.,206.,207.,208.,201. I've gotten people getting through this from 206.* and other places. Thanks for any advices.
  • 4. Squid Proxy Setting
    Dear All, I have setup one squid proxy server (IP:, when i use it on client PC (, I browser internal website, i found that all the access ip is in the apache access log. . how to log ip is client ?

how to implement spf algorithm(dijikstra's or bellman ford) in networks?

Postby manu » Sat, 29 Apr 2006 04:19:49 GMT

hi experts,
               How to implement the spf algorithm in a network
          how to code it in C ?(on linux).
          I just need the steps that we have to follow for coding it.
pleeze help
thanking u in advance

Similar Threads:

1.I wanted a C code for Dijikstra's algorithm in Networks

hi all,
  i need a program which can calculate shortest path among the set of
routers in a network environment. I want the code in C. Just for my
OSPF implementation in C project.
thnx in advance.

2.What functions in UNIX 6th implement search and sort algorithm

As the most basic algorithms, search and sort my be the most essential
things in many software. Does your code have them (or one of them)?
What functions in UNIX 6th Edition implement search and sort
algorithms? How about their efficiency of those implementations?


3.Implement SPF into IIS SMTP?

4.How to implement SPF

Good Day,

I have been asked to add a specific SPF entry to my dns server (Windows 
2KSP3).  Currently we do not use SPF records at all.  We have been asked to 
implement the record because we will be having a business partner sending 
email on behalf of us.  We will also be sending mail from our own mail 
server.  I have been asked to add the following text.  

"v=spf1 mx -all"

Can someone please explain to me how I can add this record in the Microsoft 
DNS Console for Windows 2000 Server (SP3)?  Will I have to add an SPF record 
for my own server which is currently sending and receiving mail from the 
internet?  If I only add the above record, will this prevent me from sending 
mail from my own mx (mail server)?  

Thank you very much.


5.Caching SOA records (was SPF I-D for review: draft-schlitt-spf-classic-00.txt)

On Wed, 12 Jan 2005, Paul Vixie wrote:
> but as SOA is not cached,

This statement is contradicted by RFC 1034, section 4.3.4:

  Name servers and resolvers should never attempt to add SOAs to the
  additional section of a non-authoritative response, or attempt to infer
  results which are not directly stated in an authoritative response.
  There are several reasons for this, including: cached information isn't
  usually enough to match up RRs and their zone names, SOA RRs may be
  cached due to direct SOA queries, and name servers are not required to
  output the SOAs in the authority section.

and RFC 2182:

  7.2. TTLs on SOA RRs

     It may be observed that in section 3.2.1 of RFC1035, which defines
     the format of a Resource Record, that the definition of the TTL field
     contains a throw away line which states that the TTL of an SOA record
     should always be sent as zero to prevent caching.  This is mentioned
     nowhere else, and has not generally been implemented.
     Implementations should not assume that SOA records will have a TTL of
     zero, nor are they required to send SOA records with a TTL of zero.

FWIW, my BIND 9.2.4 recursive name server clearly caches SOA records,
as do a few other BIND recursive servers of random or unknown version
numbers that I queried.


6. SPF I-D for review: draft-schlitt-spf-classic-00.txt

7. SPF I-D for review: draft-schlitt-spf-classic-01.txt

8. implementing networking packages

Return to linux


Who is online

Users browsing this forum: No registered users and 59 guest