PPSi:be9a05d97c144b7a94fc034638ca06b0b4d19d1f commitshttps://ohwr.org/project/ppsi/commits/be9a05d97c144b7a94fc034638ca06b0b4d19d1f2011-12-30T08:27:38Zhttps://ohwr.org/project/ppsi/commit/be9a05d97c144b7a94fc034638ca06b0b4d19d1ffix state machine when announce timer expires2011-12-30T08:27:38ZAurelio Colosimoaurelio@aureliocolosimo.it
fix for coherency with ptpd: if announce timer expires and our clock can not
act as master, the state must be put back to LISTENINGhttps://ohwr.org/project/ppsi/commit/32ade967bcf6324744a5060c335f20a4f4a663ecstate-common-fun: st_com_handle_pdelay_req implemented2011-12-30T08:17:26ZAurelio Colosimoaurelio@aureliocolosimo.it
state-passive.c and state-slave.c now use the same st_com_handle_pdelay_req
for PPM_PDELAY_REQ messages handling.https://ohwr.org/project/ppsi/commit/9919387ee66fd3a61f4ed7878507c1c9ffbbc3e4state-slave almost completed2011-12-30T08:01:25ZAurelio Colosimoaurelio@aureliocolosimo.it
state-slave.c: only missing some servo functions and msg issue
pproto.h: shortened some variable nameshttps://ohwr.org/project/ppsi/commit/683dc4436a0c8ec620274cea70432833a474106dstate-common-fun: handle uncorrect length in follow up message2011-12-29T18:32:00ZAurelio Colosimoaurelio@aureliocolosimo.ithttps://ohwr.org/project/ppsi/commit/3c5a85c9f5e20c0e7bb7b5a5168a8082e42eb3e9state-slave first partial implementation2011-12-29T18:25:18ZAurelio Colosimoaurelio@aureliocolosimo.it
minor fixes and comments updated elsewherehttps://ohwr.org/project/ppsi/commit/caee5bbef3bb274c89f2ac6754b3bb7cea4fcf7bproto/MAKEALL: avoid function keyword: dash complains2011-12-29T17:51:33ZAlessandro Rubinirubini@gnudd.comhttps://ohwr.org/project/ppsi/commit/9ecb15636140826dd6eed7d1d99a9c6fcdebe669bare-linux.lds: move entry point2011-12-29T17:51:33ZAlessandro Rubinirubini@gnudd.com
With new compilers (e.g., Debian 6) the resulting binary
was not starting because there's an extra section before .texthttps://ohwr.org/project/ppsi/commit/987288dc18a70d9a0a177ddebc85db2c514f6b0bstate-uncalibrated: handle followup and sync2011-12-29T08:57:05ZAurelio Colosimoaurelio@aureliocolosimo.ithttps://ohwr.org/project/ppsi/commit/6abaeb9072673400d82aaafada94cc825158b30fstate-uncalibrated first implementation2011-12-28T14:58:22ZAurelio Colosimoaurelio@aureliocolosimo.ithttps://ohwr.org/project/ppsi/commit/11ee8a2d51edc08ae0a5e9544a8619044dfa58a7improved readability and minor fix2011-12-28T14:56:54ZAurelio Colosimoaurelio@aureliocolosimo.it
state-listening: go to FAULTY if received an announce of uncorrect
length
all states: use switch/case to analyse the incoming msg typehttps://ohwr.org/project/ppsi/commit/4bf77d71d72ead4d67ce86ba45ac00b5d4325fa7trivial: header renamed to hdr and whitespaces fix2011-12-28T14:04:37ZAurelio Colosimoaurelio@aureliocolosimo.ithttps://ohwr.org/project/ppsi/commit/c773d09b81955d7e461918340b0b26b08d91f85astruct timeval tv moved to posix_arch_data (is arch dependent)2011-12-28T09:38:07ZAurelio Colosimoaurelio@aureliocolosimo.ithttps://ohwr.org/project/ppsi/commit/b41b238e254b7d06281d63393734e6a040337a13arch-bare-linux/Makefile: add -fno-stack-protector2011-12-28T09:25:03ZAurelio Colosimoaurelio@aureliocolosimo.it
Patch coming from ptp-proposal (author: Alessandro Rubini)
Some distributions (e.g: ubuntu-lucid) use the stack protector by
default. This disables it so arch-bare-linux can compile and run.
The option is present at least from gcc-4.2, but 4.0 and ealier ones
are known not to accept it.https://ohwr.org/project/ppsi/commit/ec332e3f6c2da3f4fb6702305c338a8bc8aeb2c0handling of is_from_self flag2011-12-28T08:17:53ZAurelio Colosimoaurelio@aureliocolosimo.ithttps://ohwr.org/project/ppsi/commit/26ea047c9ba47ca25d72370993179092b5fe0776fix compilation error (PP_DEFAULT_NEXT_DELAY_MS was misspelled)2011-12-28T08:14:48ZAurelio Colosimoaurelio@aureliocolosimo.ithttps://ohwr.org/project/ppsi/commit/63e90550f3d8fafe2fb6aafbd433d42ef5e5bae9next_delay handled with a default value2011-12-28T07:53:06ZAurelio Colosimoaurelio@aureliocolosimo.ithttps://ohwr.org/project/ppsi/commit/18deb6e06aa6c8e26c1b39c7d3ad59722753a999first (partial) implementation of state-passive2011-12-27T16:49:13ZAurelio Colosimoaurelio@aureliocolosimo.ithttps://ohwr.org/project/ppsi/commit/56037781c8db10513f05e94cdb31e29017308cbbnew src state-common-fun.[ch], containing common stuff for many states2011-12-27T16:44:01ZAurelio Colosimoaurelio@aureliocolosimo.ithttps://ohwr.org/project/ppsi/commit/6a689c882e4e93e24566b0288e1caae2b1e9151dtrivial: removed unused variable2011-12-27T16:42:23ZAurelio Colosimoaurelio@aureliocolosimo.ithttps://ohwr.org/project/ppsi/commit/ed95835a4d69dcdc752c294b848c2cf3dd74d581state-listening: record_update must be checked every time2011-12-22T10:37:13ZAurelio Colosimoaurelio@aureliocolosimo.ithttps://ohwr.org/project/ppsi/commit/3364f3144a1f2cc19572fce2d8a72fdd76a0e302state-listening: stop timer when leaving the state2011-12-22T09:42:35ZAurelio Colosimoaurelio@aureliocolosimo.ithttps://ohwr.org/project/ppsi/commit/f2ec976661383d8791e92e76c601bab23e05754fstate-listening partly completed. Still missing addForeign and issue msgs.2011-12-22T09:11:24ZAurelio Colosimoaurelio@aureliocolosimo.ithttps://ohwr.org/project/ppsi/commit/14c4b9847ecca862d33ca27e213cf2f22c110fdefix compilation of htonl/htons wrappers: was misspelled2011-12-22T09:09:11ZAurelio Colosimoaurelio@aureliocolosimo.ithttps://ohwr.org/project/ppsi/commit/e40d6dc00450625c45dac021b9e02660f285c43fstate-initializing completed2011-12-21T15:35:31ZAurelio Colosimoaurelio@aureliocolosimo.ithttps://ohwr.org/project/ppsi/commit/2e56afafc90f8f18b9925dd15a3435c49ea1cb4fnetwork functions implementation for posix2011-12-19T10:23:35ZAurelio Colosimoaurelio@aureliocolosimo.ithttps://ohwr.org/project/ppsi/commit/fdd9844d7bf0b38dbe584df07d1fd8f536db4f60Integration of arith.c file, containing functions for time handling2011-12-16T09:27:05ZAurelio Colosimoaurelio@aureliocolosimo.ithttps://ohwr.org/project/ppsi/commit/67823708a44b1c69b223b5e4ec0c6d81efac5746arith.c copied from ptpd-2.1.0 project2011-12-16T08:54:49ZAurelio Colosimoaurelio@aureliocolosimo.ithttps://ohwr.org/project/ppsi/commit/bf9090c67ea2d9d73937cfa39782fd9de223aaeefix return value -1 when calloc fails2011-12-12T11:28:23ZAurelio Colosimoaurelio@aureliocolosimo.ithttps://ohwr.org/project/ppsi/commit/d51706696d08ad81c7a019099e8fb25f1a7ac456var announce shortened to ann2011-12-12T11:24:40ZAurelio Colosimoaurelio@aureliocolosimo.ithttps://ohwr.org/project/ppsi/commit/74da3f32eaff5c7bcb981ff8d0ed3a2dccfe4ccfintegration of msg.c src file, containing function for message handling2011-12-12T10:29:13ZAurelio Colosimoaurelio@aureliocolosimo.ithttps://ohwr.org/project/ppsi/commit/86c25f77a7502a6e10d54ceaf42faf9801d23f1bmsg.c copied from ptpd-2.1.0 project2011-12-12T09:42:57ZAurelio Colosimoaurelio@aureliocolosimo.ithttps://ohwr.org/project/ppsi/commit/daaad9bac9b5344edd9b1cdb70240408cb250c92removed empty lines at end of file2011-12-12T08:58:25ZAurelio Colosimoaurelio@aureliocolosimo.ithttps://ohwr.org/project/ppsi/commit/45bdac08cef1f4c56ebd44d98fa5a70a9b53103dbmc (Best Master Clock) copied and adapted from ptpd src2011-12-09T15:14:31ZAurelio Colosimoaurelio@aureliocolosimo.it
it compiles and should work. Some code-style rewriting was done, but there
still is a portion of code to be fixed. Also missing diagnostic messages.https://ohwr.org/project/ppsi/commit/4379f25332ca4dc717a3b6ef65ea66268a6224d0struct name corrected, compliant to IEEE 15882011-12-09T15:00:53ZAurelio Colosimoaurelio@aureliocolosimo.ithttps://ohwr.org/project/ppsi/commit/7f9b846ace3b032fe0157a8a1fa3f3e22d0cf8b8defined and used data set macros2011-12-09T12:14:25ZAurelio Colosimoaurelio@aureliocolosimo.it
macros DSDEF, DSCUR, etc for major readability of data sets codehttps://ohwr.org/project/ppsi/commit/fcc4ec483cd04f5fff03f6914797effe482ff9e4implementation of posix-timer2011-12-09T12:02:12ZAurelio Colosimoaurelio@aureliocolosimo.ithttps://ohwr.org/project/ppsi/commit/39ed260cf25ccf91792d673ccb5a41758adb16ccruntime opts and initializing state mostly implemented2011-12-06T13:09:00ZAurelio Colosimoaurelio@aureliocolosimo.ithttps://ohwr.org/project/ppsi/commit/8f51b53c3a9095c4ebba1fb0adc7fd9045cd0a51coding style only: .h #define renamed2011-12-06T08:58:34ZAurelio Colosimoaurelio@aureliocolosimo.ithttps://ohwr.org/project/ppsi/commit/a2cbe497a4292226abeb34af1661b0b6880b867bnew constants.h file. More defines coming from IEEE 1588 specification2011-12-06T08:55:09ZAurelio Colosimoaurelio@aureliocolosimo.ithttps://ohwr.org/project/ppsi/commit/7646a3a077334dd485432d8538d52d3742501c36removed unused stuff and too verbose comments2011-12-05T15:19:14ZAurelio Colosimoaurelio@aureliocolosimo.it