[prev in list] [next in list] [prev in thread] [next in thread] 

List:       linux-newbie
Subject:    Getting the transport header in rawv6_sendmsg
From:       Prashant Batra <prashant0100 () gmail ! com>
Date:       2011-11-10 13:59:41
Message-ID: CAG+XuE7UU75YK2betJpFOD5e0RA9=Kxfg-zoZUtzZW1dQz2ZFg () mail ! gmail ! com
[Download RAW message or body]

Hi,

I wanted to get transport header in function -
static int rawv6_sendmsg(struct kiocb *iocb, struct sock *sk,
           struct msghdr *msg, size_t len)

The function is defined in “/net/ipv6/raw.c”

In the function,  flow, “fl” is getting filled using the “sk”
structure, but as this is raw socket send, it only cares about the IP
addresses.
I need to do access the ports filled in by the user-space application.

Can some help me here?

Thanks,
Prashant
--
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic