Commit Graph

2286 Commits

Author SHA1 Message Date
Per Noergaard Christensen 38038f6a48 lib: use O_CLOEXEC flag when opening EtherCAT master device
This flag specifies that the file descriptor should be closed when an
exec function is invoked. When a file descriptor is allocated (as with
open or dup), O_CLOEXEC bit is initially cleared on the new file
descriptor, meaning that descriptor will survive into the new program
after exec. Setting O_CLOEXEC avoid this survival of the desciptor in
the new program. And setting it at open() time is the only race-free
way to avoid accidentally leaking the fd via other threads that
concurrently do fork()+exec() (or similar, e.g. posix_spawn).
2022-08-30 14:39:32 +02:00
Florian Pose fa890a8b61 Applied 0021-Await-SDO-dictionary-to-be-fetched.patch 2022-06-23 12:43:34 +02:00
Florian Pose 8896d3b879 Applied 0020-eoe-ip.patch 2022-06-23 12:39:52 +02:00
Florian Pose 5f84d54890 Applied 0000-version-magic.patch and bumped to 1.6 2022-06-23 12:20:47 +02:00
Florian Pose 44c6c3d1da Merge branch 'master' of ../git 2022-06-23 11:55:13 +02:00
Florian Pose f943348d98 Applied 0019-Support-for-multiple-mailbox-protocols.patch 2022-06-23 11:54:10 +02:00
Florian Pose 429ba9356e Applied 0018-Use-call-back-functions.patch 2022-06-23 11:27:28 +02:00
Florian Pose cef602586c Applied 0017-Master-locks-to-avoid-corrupted-datagram-queue.patch 2022-06-23 11:26:20 +02:00
Florian Pose d1e3d2e0a3 Removed duplicate pre-commit rule. 2022-06-23 11:22:08 +02:00
Florian Pose 9955855f7e Applied 0016-If-enable-rtmutex-use-rtmutexes-instead-of-semaphore.patch 2022-06-23 11:21:51 +02:00
Florian Pose 667e93284d Applied 0015-Clear-configuration-on-deactivate-even-if-not-activa.patch 2022-06-23 11:00:45 +02:00
Florian Pose a3fa7cecaf Applied 0014-Fix-NOHZ-local_softirq_pending-08-warning.patch 2022-06-23 10:59:45 +02:00
Florian Pose d09daadfbb Applied 0013-Do-not-reuse-the-index-of-a-pending-datagram.patch 2022-06-23 10:58:57 +02:00
Florian Pose 8db3e5abf4 Applied 0012-Added-newline-to-syslog-message-MAC-address-derived.patch 2022-06-23 10:56:33 +02:00
Florian Pose 57342c99ca Applied 0011-Reduced-printing-to-avoid-syslog-spam.patch 2022-06-23 10:55:57 +02:00
Florian Pose d1dc6795f3 Applied 0010-Make-busy-logging-a-little-less-irritating.patch 2022-06-23 10:55:03 +02:00
Florian Pose 90f3f7e841 Applied 0009-Avoid-changing-running-slaves-DC-offset.patch 2022-06-23 10:53:56 +02:00
Florian Pose 225af9f787 Applied 0008-read-reference-slave-clock-64bit-time.patch 2022-06-23 10:45:16 +02:00
Florian Pose 6cac716122 Applied 0007-replace-fprintf-calls-with-EC_PRINT_ERR.patch 2022-06-23 10:31:41 +02:00
Florian Pose 234695fe44 Applied 0006-avoid-ssize_t.patch 2022-06-23 10:26:43 +02:00
Florian Pose 405c88f6d6 Applied 0005-disable-eoe.patch 2022-06-23 10:25:36 +02:00
Florian Pose efcd95ed9c Applied 0004-fix-eoe-clear.patch 2022-06-23 10:13:49 +02:00
Florian Pose d0d4535df0 Applied 0003-print-sync-signed.patch 2022-06-23 10:13:00 +02:00
Florian Pose 17eddce68d Applied 0002-Distributed-Clock-fixes-from-Jun-Yuan.patch 2022-06-23 10:12:12 +02:00
Florian Pose b4f8c0e750 Added 0001-Distributed-Clock-fixes-and-helpers.patch 2022-06-23 10:07:34 +02:00
Florian Pose c9c43ac439 Added pre-commit configuration. 2022-06-23 10:06:04 +02:00
Florian Pose 89677140fa Minor: Fixed indent. 2022-05-17 14:09:00 +02:00
Bjarne von Horn 1f55565fbb Fix setting mac_address
eoe->dev->dev_addr is read_only in 5.17.0
using eth_hw_addr_set instead
2022-05-17 14:06:42 +02:00
Florian Pose 2628069c5a Fixed distribution of bash completions file. 2022-05-16 10:39:53 +02:00
Florian Pose 907a3633a2 Install bash completions. 2022-05-16 10:10:59 +02:00
Florian Pose 526370a5a5 Merge branch 'master' of gitlab.com:etherlab.org/ethercat 2022-05-16 09:50:44 +02:00
Florian Pose da0b5e1d73 Merge branch 'bash_completion' into 'master'
Bash completion for ethercat tool

See merge request etherlab.org/ethercat!47
2022-05-16 07:49:24 +00:00
Bjarne von Horn 8d247b6e95 add bash completion for ethercat tool 2022-05-13 21:22:39 +02:00
Florian Pose de6a8987b7 Merge branch 'foe_with_passwd' into 'master'
Add support for FoE with password.

See merge request etherlab.org/ethercat!45
2022-04-19 10:11:49 +00:00
Shi Qiyao 29919ef8b7 Add support for FoE with password.
Patch originally from https://github.com/ribalda/ethercat which adds the
support for FoE command tool with password.
2022-04-19 11:54:16 +02:00
Florian Pose 468adde9ae Merge branch 'master' of gitlab.com:etherlab.org/ethercat 2022-04-04 14:19:35 +02:00
Florian Pose ef1814a7be Update .gitlab-ci.yml 2022-04-01 12:20:45 +00:00
Florian Pose 6d4d5726ca Build documentation. 2022-04-01 13:54:22 +02:00
Florian Pose f4b7a074e1 Added missing commands. 2022-04-01 13:52:55 +02:00
Florian Pose 9b1be4848b Merge branch 'fix_cmake' (also) into stable. 2022-03-04 10:12:12 +01:00
Florian Pose 3ee5e50a48 Merge branch 'init.d' into 'master'
Update init.d support

See merge request etherlab.org/ethercat!41
2021-12-13 10:00:16 +00:00
Nicola Fontana 9ee6693fb3 Update init.d support 2021-12-13 10:00:16 +00:00
Florian Pose b6e0cc8182 Merge branch 'updown' into 'master'
Add UPDOWN_INTERFACES option to ethercat.conf

See merge request etherlab.org/ethercat!40
2021-12-13 09:56:32 +00:00
Nicola Fontana 0ae450d7c7 Add UPDOWN_INTERFACES option to ethercat.conf 2021-12-13 09:56:32 +00:00
Florian Pose 45f2d1a988 Merge branch 'Fix-19' into 'master'
Fix #19: directly include soe_error_codes into SoeCommand.cpp

Closes #19

See merge request etherlab.org/ethercat!39
2021-11-30 09:49:01 +00:00
Florian Pose 4b05c861d7 Merge branch 'Fix-16' into 'master'
Fix #16: explicitely check for pkg-config macros

Closes #16

See merge request etherlab.org/ethercat!37
2021-11-30 09:47:49 +00:00
Nicola Fontana e30a39f36e Fix #19: directly include soe_error_codes into SoeCommand.cpp
Avoid having to rebuild conflicting master/soe_errors.c objects. Inside
the `tool` folder, the `soe_error_codes` array is used only by
SoeCommand, so this should not create further problems.
2021-11-01 20:17:26 +01:00
Nicola Fontana 9fb9123a0e Fix #16: explicitely check for pkg-config macros
Without this patch, `./bootstrap` fails with the following error if
pkgconf/pkg-config is not installed:

    lib/Makefile.am:76: error: 'pkgconfig_DATA' is used but 'pkgconfigdir' is undefined

This can be triggered by disinstalling `pkgconf/pkg-config`. The problem
here is that the check for `pkg-config` is done at configure level but
`automake` fails at bootstrap level because of the above error.

This basically "fixes" the issue by changing the way in which
`./bootstrap` fails.
2021-10-21 12:58:58 +02:00
Florian Pose 65285fe74c Merge branch '15-ethercat-165-arithmetic-expression-expecting-primary-0-1' into 'master'
Resolve "ethercat: 165: arithmetic expression: expecting primary: " "0" + 1""

Closes #15

See merge request etherlab.org/ethercat!33
2021-09-02 15:11:36 +00:00
Florian Pose 5bd401490f Avoid double quotes in arithmetic expansion. 2021-09-02 11:48:53 +02:00