[ntp-GSoC] Query regarding GSoC
hs.thegreat at gmail.com
Sun Mar 25 02:48:46 UTC 2012
On Sun, Mar 25, 2012 at 1:41 AM, Himanshu Singh <hs.thegreat at gmail.com>wrote:
> Hello developers,
> I am Himanshu Singh and I'm pursuing Masters in Technology with
> specialization in Wireless Networks at IIT-Banaras Hindu University, India.
> I have experience in Computer Networks, Time Synchronization and
> distributed systems and thus I am looking forward to contribute to the
> project "*Management Message Client for PTPd*". I went through the code
> base after briefly studying the PTP spec.
> I am interested to know about the current status of handling management
> messages. Here is what I understood about the requirements, please let me
> know if I'm going in wrong direction. A client running on a remote machine
> will create management packets and send these to server running PTPd. At
> server, all packets are received in 'dep/net.c'. They are handled in
> 'handle' function (protocol.c). After checking the message type and getting
> the payload, we need to write code for controlling the server in
> 'handleManagement' and 'issueManagement' function of protocol.c. Methods
> for handling these management messages like 'msgUnpackManagement' have
> already been declared in ptpd_dep.h but we need to define them, like
> implementation of 'msgUnpackManagement' needs to be added in dep/msg.c.
> I request some help for clarifying the further requirements.
> Just figured out that I was using an old branch - ptpd-2.1.1. Now, I guess
that latest commits to branch 'trunk' have already handled the management
messages ('handleManagement', 'issueManagement' etc have already been
implemented) and we only need write a client to create management packets
and send these to server running pptd and listening for management messages.
> 1) What are the control features to be implemented in 'handleManagement'?
> Please redirect me to some resource to understand these control features.
I was able to run PTPd on two computers and use management features with
"-k" flag in branches/trunk.old repository. But "-k" flag is not working
with "trunk" since startup.c does not define any case for 'k' flag.
However, trunk contains more updated management handling (in management.c)
than 'trunk.old'. So, which branch should be used for the test setup?
> 2) I read in archives that George had suggested to use Packet Construction
> Set for creating packets. Is there any constraint for this? I am familiar
> with Boost ASIO and libpcap, can those be used instead as they use C only?
More information about the GSoC