accessing port in IP-layer(help)

From: md asghar (asghar_ssit_at_yahoo.co.in)
Date: 05/28/04

  • Next message: Reuben D. Budiardja: "Re: How can I download all patches of WS v3?"
    Date: Fri, 28 May 2004 13:20:03 +0100 (BST)
    To: redhat-list@redhat.com
    
    

    Dear all,
    I am trying to access the Port number in ip-layer by
    accessing the tcp header present in sk_buff structure.
    But the problem is that i am not getting the same port
    number in ip-layer , as it shows me in Transport
    layer.
    I am accessing the port number in ip_rcv()
    {net/ipv4/ip_input.c}
    and in tcp_v4_rcv() {/net/ipv4/tcp_ipv4.c}

    Example
    -------
    If am running an application by using the port 7777
    then i am getting the same port number in Transport
    layer
    But in IP-layer the port number is 52 or 60....

    I am waiting for a response

    With Thanks and Regards
    Asghar

    ________________________________________________________________________
    Yahoo! India Matrimony: Find your partner online. http://yahoo.shaadi.com/india-matrimony/

    -- 
    redhat-list mailing list
    unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe
    https://www.redhat.com/mailman/listinfo/redhat-list
    

  • Next message: Reuben D. Budiardja: "Re: How can I download all patches of WS v3?"

    Relevant Pages

    • Re: route field
      ... it is possible to build a layer 2 switch in which every ... port has a dedicated "send" path to each other port (e.g., ... Note, by the way, that in networking, the word "route" usually ...
      (comp.dcom.lans.ethernet)
    • Re: DECnet dynamic objects - PID of process
      ... You need to be looking at the SESSION CONTROL PORT and corresponding OSI ... TRANSPORT PORT / NSP PORT to get the per process information. ... DDCMP is the Digital Data Communications Message Protocol used ...
      (comp.os.vms)
    • Re: route field
      ... it is possible to build a layer 2 switch in which every ... port has a dedicated "send" path to each other port (e.g., ... You have been asking a lot of questions about VLANs lately, ...
      (comp.dcom.lans.ethernet)
    • Re: application for an employment
      ... a web browser makes a connect. ... Especially on layer 4. ... Generally a port scan does not consist of connection to a single port ... Sending a mail message is TCP 25. ...
      (Security-Basics)
    • Re: Linux : 32 bit only -- what is the trick?
      ... >>layer function which pretty much is in processor dependent assembly. ... > provide the facilities needed that the cpu itself doesn't have, ... > similar microprocessors that could have Linux ported to them. ... port Linux to 16 bit processor, ...
      (comp.os.linux.misc)