Giter Club home page Giter Club logo

ptpv2d's People

ptpv2d's Issues

Compile issues with GCC4.4.3 on linux.

1. Compile ptp2d with on a gcc 4.4.3 on Linux.  Fails compile due to INT_MAC 
not being defined.  

I added this statement in constants_dep.h to fix the problem.  

#ifndef INT_MAX 
#define INT_MAX __INT_MAX__
#endif

2. A compile also causes a warning with a */ included in a comment.  

A */ should be added at the end of the 2nd line.  

/* System Dependent (AKB: Moved from constants.h to constants_dep.h */
/* Defines for MPC831X implementation with Hardware timestampinng

Original issue reported on code.google.com by [email protected] on 19 May 2011 at 6:49

PTPv2 Stack does not received packets from TAP interface

What steps will reproduce the problem?
1.PTP Packets are send from a user space application to a TAP interface.
2.Packet Rx count is incremented at TAP interface.
3. Now when the PTPv2 stack is bound to "tap0" using "-b" the packets are not 
received at the PTPv2 stack.

What is the expected output? What do you see instead?
Packets are exoected to be recived from teh TAP0 interface.

What version of the product are you using? On what operating system?
I am using Linux.

Please provide any additional information below.
The same with eth0 interface works fine.

Original issue reported on code.google.com by [email protected] on 22 Sep 2011 at 2:53

Windows Slave to Linux Master

I am attempting to test the Windows version as a slave using a Linux based 
master.    I currently have the Linux version working with a master and several 
slaves.

I don’ t know any reason why this configuration would not work, but maybe you 
guys know otherwise.

I have the master running on Linux using protocol version 1, with the following 
command line:

Ptpd –D –p –u192.168.1.102 

so it is operating as the master and sending PTPD v1 Synch messages to both the 
group address and the address of the Windows based slave.

The command line I am using for the Windows based slave is 

“ptpv2d  -D –g  -z 2”.   

The attachment is the log file from the Windows slave.

I can observe via Wireshark the PTP messages from the Linux PTP master

From what I can tell from the log files, it looks like ptpv2d is receiving and 
decoding the Synch Message, but stays locked in master mode.

Maybe you can point me in the right direction for getting this working under 
Windows with either a Linux or Windows master.

Original issue reported on code.google.com by [email protected] on 21 Aug 2011 at 8:32

Attachments:

When running -8 option for direct Ethernet (802.1AS compliant) encapsulation, ptpv2d does IPv4 Multicast group join

What steps will reproduce the problem?
1. run ptpv2d with -8 option
2. run Wireshark or other LAN analyzer
3. observe IPv4 Multicast join packets sent on network

What is the expected output? What do you see instead?

A) It would be better that if the encapsulation selected is Direct Ethernet 
that no IPv4 packets are generated.

Please use labels and text to provide additional information.

1) In the case of the -8 option, it would probably be better if only a raw 
socket was opened and the opening of IPv4 UDP sockets was skipped.  This would 
avoid the Multicast join message being generated and also would make it so that 
IPv4 packets would be ignored.
2) Downside is that I had some thoughts about allowing future versions of 
ptpv2d auto-detect the best grandmaster regardless of protocol type and then 
adapt to it.

Comments and thoughts on this are welcome.

This bug is mostly cosmetic.

Original issue reported on code.google.com by [email protected] on 28 Aug 2010 at 5:23

Warnings about printf variable size using GCC 4.5.1

What steps will reproduce the problem?
2. svn co (current version)
3. make


What is the expected output? What do you see instead?
During compilation I get tons of warnings in protocol.c and net.c:
"warning: format ‘%d’ expects type ‘int’, but argument XXX has type 
‘ssize_t’"


What version of the product are you using? On what operating system?
Using Fedora Linux 14.x86_64, GCC 4.5.1, gmake 3.82, subversion 1.6.16
svn info: Revision: 27

Please provide any additional information below.
I fixed all warning using %zd or %zu instead of %d and %u when displaying 
ssize_t and size_t.
Attached file: in ptpv2d-dev: svn di > fixed-warnings-rev27.diff

Original issue reported on code.google.com by [email protected] on 31 May 2011 at 9:56

Attachments:

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.