1933 Commits

Author SHA1 Message Date
Christian Mauderer
484186e8bc ipsec-tools: Fix copying fd_set prior to select
The racoon session code copies an fd_set from one variable into another
prior to calling select. That works well for simple structures.

In libbsd we have to allocate fd_sets instead of using fixed structures
to avoid a problem with file numbers bigger than FD_SETSIZE. The simple
assignment didn't work in that case.

This patch makes sure that a memcpy is used instead.

Close #4914
2023-05-31 08:25:23 +02:00
Sebastian Huber
29f9822bac if_atsam: Recover from receive freezes
Under unknown conditions the receive path ended up in a frozen state.
In this state, the DMA and driver descriptor head were equal and all
receive descriptors had the used bit set.  So, the DMA was unable to
store received frames.  However, the receive daemon was never woken up
to refill the receive buffers.  It seems that the RXUBR interrupt can be
used to recover from this state.

Update #4651.
2022-06-01 09:55:25 +02:00
Sebastian Huber
62d320d478 if_atsam: Shorten sysctl names
Update #4651.
2022-06-01 09:55:25 +02:00
Sebastian Huber
c78ec59670 if_atsam: Add tx/rx desc sysctls
Update #4651.
2022-06-01 09:55:25 +02:00
Sebastian Huber
8e5a933345 if_atsam: Add register sysctls
Update #4651.
2022-06-01 09:55:25 +02:00
Sebastian Huber
f05e62515b if_atsam: Allow stats reset via sysctl
Update #4651.
2022-06-01 09:55:25 +02:00
Sebastian Huber
ea80d58015 tcpdump: Do not use signals and chroot
Close #4649.
2022-05-12 07:52:10 +02:00
Sebastian Huber
45c9bd23a0 tcpdump: Ensure loop monitor termination
Update #4649.
2022-05-12 07:52:06 +02:00
Sebastian Huber
47ec4b85e5 tcpdump: No loop monitor if reading from file
Update #4649.
2022-05-12 07:52:01 +02:00
Sebastian Huber
cb01e5b2a1 tcpdump: Close pcap dumper at program exit
Update #4649.
2022-05-12 07:51:56 +02:00
Sebastian Huber
d5fdfbb77a tcpdump: Use rtems_task_exit()
Update #4649.
2022-05-12 07:51:52 +02:00
Sebastian Huber
a5bdd7ae40 tcpdump: Make loop monitor cooperative
This helps a bit if the fgetc() is non-blocking.

Update #4649.
2022-05-12 07:51:46 +02:00
Sebastian Huber
5c88a52bcc Add program destructor support
Update #4649.
2022-05-12 07:51:41 +02:00
Sebastian Huber
6364f4534e tcpdump01: New test
Update #4649.
2022-05-12 07:51:32 +02:00
Sebastian Huber
a661df04db if_atsam: Fix interface stop
Close #4651.
2022-05-11 16:09:00 +02:00
Sebastian Huber
c1b15c7558 if_atsam: Support transmit bpf
Update #4651.
2022-05-11 16:08:57 +02:00
Sebastian Huber
2a174be01e if_atsam: Do not use rtems_bsdnet_newproc()
Update #4651.
2022-05-11 16:08:53 +02:00
Sebastian Huber
245ca940bb if_atsam: Support IFCAP_VLAN_HWTAGGING
This is required to enable checksum offload for vlan interfaces.

Update #4651.
2022-05-11 16:08:50 +02:00
Sebastian Huber
204a4873d7 if_atsam: Optimize receive
Do not use the interface mutex in the receive loop.  Avoid multiple
reads of DMA descriptor words.  Use a compile-time constant for the
receive DMA descriptor count to simplify calculations.

Update #4651.
2022-05-11 16:08:46 +02:00
Sebastian Huber
1fee8dd095 if_atsam: Optimize transmit
Use the transmit interface handler to avoid a transmit task/interrupt.
Use a compile-time constant for the transmit DMA descriptor count to
simplify calculations.

Update #4651.
2022-05-11 16:08:42 +02:00
Sebastian Huber
58162da5f2 if_atsam: Add multicast support
Update #4651.
2022-05-11 16:08:38 +02:00
Sebastian Huber
1fe1bc6de4 if_atsam: Fix start/stop of interface
Update #4651.
2022-05-11 16:08:35 +02:00
Sebastian Huber
46ec9d75b3 if_atsam: Fix interrupt setup
The interrupt is enabled by rtems_interrupt_handler_install().

Update #4651.
2022-05-11 16:08:31 +02:00
Sebastian Huber
4780eff5c5 if_atsam: Do not disable the Ethernet CRC
The Ethernet CRC and padding must be always generated by the MAC.

Update #4651.
2022-05-11 16:08:28 +02:00
Sebastian Huber
79e742182f if_atsam: Enable all capabilities
Update #4651.
2022-05-11 16:08:24 +02:00
Sebastian Huber
a4b878cde8 if_atsam: Fix warnings
Update #4651.
2022-05-11 16:08:08 +02:00
Sebastian Huber
e00ca96b98 pfctl: Fix global state initialization
Close #4653.
2022-05-11 15:25:18 +02:00
Sebastian Huber
d1b5468caa pf02: Fix shell envirionment initialization
Update #4653.
2022-05-11 15:25:14 +02:00
Christian Mauderer
2ce166bd37 ppp: Fix transmitting data
The pppstart expected that a driver write would somehow magically
process all data passed to the write function. Because ppp disables all
buffering that originally has been in termios, that assumption is not
true for all but polled drivers.

With this patch, the pppstart now gets and processes the feedback that
is returned from the driver via rtems_termios_dequeue_characters.

Fixes #4494
2022-02-10 09:24:10 +01:00
Chris Johns
332cc9f47b bsp/motorola_powerpc: Add dc, ukphy and legacy PCI support
- Add the dc net dev to the BSP

- Add the ukphy support

- Add PCI Legacy bus support to the PowerPC

Closes #4514
2021-09-18 17:52:31 +10:00
Chris Johns
afb361690c rtemsbsd/bus: Add PCI support to the nexus bus
- Add PCI IO region support

- Add support map buffers to PCI address space

- Add BSP conditional IO space support. Some PC implementations
  have PCI IO space mapped differently to memory space and this needs
  to be reflected in the busspace.

- Include bsp.h to pick per BSP configuration.

Closes #4514
2021-09-18 17:52:15 +10:00
Jan Sommer
5c1b99e4d2 i386: Remove unneeded include header files
Closes #4452
2021-06-09 18:29:12 +02:00
Jan Sommer
9edb1201f6 waf_libbsd.py: Apply path-mappings to header-paths
Update #4452
2021-06-09 18:29:12 +02:00
Christian Mauderer
a2bc8eba46 ipsec-tools/pfkey: Fix socket leak
setkey uses pfkey_open to open a socket. But setkey doesn't close the
socket.

The libipsec functions are used only by user space applications (setkey
and racoon). Adding the wrapper for socket makes sure that the opened
socket is registered and closes if the application exits.

Fixes #4404
2021-05-11 08:41:50 +02:00
Christian Mauderer
35bdef1fa0 ping6: Honor file descriptor maximum
This is basically the same as the patch for ping.

Fix #4361
2021-05-11 08:37:43 +02:00
Christian Mauderer
c385e86b3f racoon/session: Honor file descriptor maximum
Dynamically allocate a big enough file descriptor set for select(). A
better solution would be to use kqueue() instead of select().

Update #4361
2021-05-11 08:37:32 +02:00
Moyano, Gabriel
ea5d0c7803 ehci_pci: Add to build system
Closes #4263
2021-03-08 18:25:01 +01:00
Moyano, Gabriel
b3cdf0ee13 ehci_pci: Import from freebsd-org
see #4263
2021-03-08 18:24:48 +01:00
Sebastian Huber
debc0aed8b NVD(4): Fix logical block count calculation
Close #4165.
2020-10-27 06:25:17 +01:00
Sebastian Huber
491666ad28 NVD(4): Fix NULL pointer access in nvd_sync()
Update #4165.
2020-10-27 06:24:58 +01:00
Sebastian Huber
f283e7b261 mcast01: Fix write to read-only string 2020-10-27 06:21:07 +01:00
Christian Mauderer
9dd0bc27e3 Import FreeBSD license files.
Fix #4082
2020-09-28 13:41:25 +02:00
Christian Mauderer
5b3ee70279 builder.py: Add case for plain text files.
Update #4082
2020-09-28 13:41:25 +02:00
Christian Mauderer
640b2a03b8 Add helper script to find licenses.
Update #4082
2020-09-28 13:41:25 +02:00
Sebastian Huber
7f47f27841 mcast01: Add test program
Close #4073.
2020-09-10 13:28:34 +02:00
Sebastian Huber
0099e16d9c ifmcstat: Port to RTEMS
Update #4073.
2020-09-10 13:28:31 +02:00
Sebastian Huber
0d979d6f53 ifmcstat: Import from FreeBSD
Update #4073.
2020-09-10 13:28:16 +02:00
Sebastian Huber
80640fc843 nfsclient: Next attempt to fix 64-bit targets
In serporidok use the same structures used to hand over to the XDR
encode/decode routines.  We must not mix packed and unpacked structures.

Close #4024.
5.1-freebsd-12
2020-08-18 07:18:41 +02:00
Sebastian Huber
13421d0617 telnet: Use rtems_shell_dup_current_env()
Update #3859.
2020-08-06 13:21:56 +02:00
Sebastian Huber
26866d2c1f Fix linker errors with minimal build set 2020-07-08 10:21:20 +02:00