LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

The meaning of *portp?

To: <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: The meaning of *portp?
From: "Jytsai" <880579@xxxxxxxxxxx>
Date: Thu, 4 May 2000 12:51:20 +0800
Hello, everyone:

    When I trace the ip_vs.c into *ip_vs_sched_persist( ),    ( line 1898 )
    I can not understand the meaning of local variable *portp.

    There is an assignment as following:

        portp = (__u16 *)&(((char *)iph)[iph->ihl*4]);

    Doesn't it mean that portp points to "the address" of "the value of ip
header length"?
    But latter , portp[1] is used to compared with svc->port .....
    Therefore, *portp should be a template TCP/UDP port pointer?

    Could someone give me an answer? Thanks a lot!



<Prev in Thread] Current Thread [Next in Thread>