39 Commits

Author SHA1 Message Date
Sebastian Huber
4525674a97 tcpdump: Fix import/export 2017-11-10 14:13:19 +01:00
Christian Mauderer
9521c08d78 wpa_supplicant: Use arc4random instead of getentropy. 2017-11-10 14:13:19 +01:00
gordon
bc4bb2e9be Update wpa_supplicant/hostapd for 2017-01 vulnerability release.
hostapd: Avoid key reinstallation in FT handshake
Prevent reinstallation of an already in-use group key
Extend protection of GTK/IGTK reinstallation of WNM-Sleep Mode cases
Fix TK configuration to the driver in EAPOL-Key 3/4 retry case
Prevent installation of an all-zero TK
Fix PTK rekeying to generate a new ANonce
TDLS: Reject TPK-TK reconfiguration
WNM: Ignore Key Data in WNM Sleep Mode Response frame if no PMF in use
WNM: Ignore WNM-Sleep Mode Response if WNM-Sleep Mode has not been used
WNM: Ignore WNM-Sleep Mode Response without pending request
FT: Do not allow multiple Reassociation Response frames
TDLS: Ignore incoming TDLS Setup Response retries

Submitted by:	jhb
Obtained from:	https://w1.fi/security/2017-01/ (against later version)
Security:	FreeBSD-SA-17:07
Security:	CERT VU#228519
Security:	CVE-2017-13077
Security:	CVE-2017-13078
Security:	CVE-2017-13079
Security:	CVE-2017-13080
Security:	CVE-2017-13081
Security:	CVE-2017-13082
Security:	CVE-2017-13086
Security:	CVE-2017-13087
Security:	CVE-2017-13088
Differential Revision:	https://reviews.freebsd.org/D12693
2017-11-10 14:13:19 +01:00
Christian Mauderer
bdc4f21c53 wpa: Port to new files to RTEMS. 2017-11-10 14:13:19 +01:00
Christian Mauderer
b0f0b2f493 wpa: Import all files for KRACK patch. 2017-11-10 14:13:19 +01:00
Christian Mauderer
bed8742caa wpa_supplicant: Fix getopt. 2017-11-10 13:33:03 +01:00
Christian Mauderer
79ad9525a2 wpa_supplicant: Include rtems-bsd-program.h. 2017-11-10 13:33:03 +01:00
Christian Mauderer
4613db09fc wpa_supplicant: Add lock. 2017-11-10 13:33:03 +01:00
Christian Mauderer
ee0c369cdd wpa_supplicant: Move forking command into own file.
The malloc wrapper must not be disabled. Therefore the command that uses
malloc without a wrapper has to live in another file.
2017-11-10 13:33:03 +01:00
Sichen Zhao
ce2262ee28 Add wpa_supplicant_fork command.
Add fork command for wpa supplicant to start a new task.
2017-11-10 13:33:03 +01:00
Sichen Zhao
8f2267bbb9 Port wpa supplicant to RTEMS.
Add wpa_supplicant lib support and shell command support in RTEMS.
2017-11-10 13:33:03 +01:00
Sichen Zhao
9c9d11b481 Import wpa from FreeBSD 2017-11-10 13:33:02 +01:00
Sebastian Huber
1043048648 tcpdump: Update to FreeBSD head 2017-04-04
Update tcpdump from Git mirror commit
99a648a912e81e29d9c4c159cbbe263462f2d719 to
642b174daddbd0efd9bb5f242c43f4ab4db6869f.
2017-10-11 09:29:33 +02:00
Sebastian Huber
97c5f8e8de Update libpcap to FreeBSD head 2017-04-04
Update libpcap from Git mirror commit
99a648a912e81e29d9c4c159cbbe263462f2d719 to
642b174daddbd0efd9bb5f242c43f4ab4db6869f.
2017-10-09 13:58:08 +02:00
Sebastian Huber
02373194fe Update due to Newlib 2017-06-07 changes
The following files are now provided by Newlib:

  * arpa/inet.h
  * net/if.h
  * netinet/in.h
  * netinet/tcp.h
  * sys/socket.h
  * sys/uio.h
  * sys/un.h

The <sys/param.h> and <sys/cpuset.h> are now compatible enough to be
used directly.

Update #2833.
2017-06-08 13:19:54 +02:00
Christian Mauderer
23895395ec ifconfig/wlan, expat, lib80211: Import from FreeBSD. 2017-01-17 12:50:57 +01:00
Sebastian Huber
0577772720 Update to FreeBSD head 2017-01-09
Git mirror commit 1f8e4a995a6ede4bdb24e6d335ccda2bdb0175ab.
2017-01-10 11:03:27 +01:00
Sebastian Huber
75b706fde4 Update to FreeBSD head 2016-12-10
Git mirror commit 80c55f08a05ab3b26a73b226ccb56adc3122a55c.
2017-01-10 09:53:34 +01:00
Sebastian Huber
c40e45b75e Update to FreeBSD head 2016-08-23
Git mirror commit 9fe7c416e6abb28b1398fd3e5687099846800cfd.
2017-01-10 09:53:31 +01:00
Sebastian Huber
e3dac667dd pfctl: Update due to linker set API changes 2016-12-07 07:15:02 +01:00
Sebastian Huber
0ba419717b Add SIZE_T_MAX to <machine/rtems-bsd-user-space.h> 2016-10-24 08:11:24 +02:00
Sebastian Huber
40f202da4e pfctl: Update due to linker set API changes 2016-10-13 07:23:03 +02:00
Christian Mauderer
09ce54ec14 pfctl: Add yacc generated file. 2016-08-02 10:21:52 +02:00
Christian Mauderer
d79524e4a7 pfctl: Adapt for RTEMS. 2016-08-02 10:21:52 +02:00
Christian Mauderer
686583cba4 pfctl: Use static where possible. 2016-08-02 10:21:52 +02:00
Christian Mauderer
c70221cb64 pfctl: Add const and move static variables.
Note: This should be upstreamed into BSD.

Make everything constant that can be constant and move static variables
out of their functions.
2016-08-02 10:21:51 +02:00
Christian Mauderer
b6252fb806 pfctl: Match prototype.
Note: This should be upstreamed into BSD.
2016-08-02 10:21:51 +02:00
Christian Mauderer
6e9a8eadf5 pfctl: Import sources from FreeBSD. 2016-08-02 10:21:51 +02:00
Christian Mauderer
21abaef9b0 freebsd: Don't use new wrappers for old ports.
Some of the commands have been adapted manually. So the wrapper
currently don't necessarily work as expected. For example ifconfig calls
malloc outside of the program call.
2016-08-02 10:21:51 +02:00
Sebastian Huber
3d1e767c8f Directly use <sys/types.h> provided by Newlib 2016-05-30 16:06:41 +02:00
Sebastian Huber
2017a6df2b Directly use <sys/time.h> provided by Newlib 2016-05-30 16:06:41 +02:00
Chris Johns
c6e539593e tcpdump: Return the PCAP loop return value. Increase the stack size. 2015-06-26 15:20:22 +10:00
Chris Johns
9ee5268786 tcpdump: Allow enter/return to exit tcpdump.
Implement the PCAP loop in a separate thread and block the shell
thread in the stdin getchar. When a user presses enter/return
call the PCAP break loop function to have it return.
2015-06-26 15:15:57 +10:00
Chris Johns
c31922b8c4 Fix RTEMS ifdef labelling. 2015-06-19 15:32:13 +10:00
Chris Johns
2abb43138e Add the missing generated libpcap file. 2015-06-16 21:23:12 +10:00
Chris Johns
affed5e3f5 Add BDS command support headers. 2015-06-16 13:20:15 +10:00
Chris Johns
8440506ee8 Add tcpdump and libpcap.
- Update the file builder generator to handle generator specific cflags and
  includes. The tcpdump and libpcap have localised headers and need specific
  headers paths to see them. There are also module specific flags and these
  need to be passed to the lex and yacc generators.

- Add the tcpdump support.
2015-06-15 17:42:23 +10:00
Joel Sherrill
9a8e3e0dd0 Revert move of contrib until more sorted out 2012-03-08 08:17:55 -06:00
Joel Sherrill
e2d2bf579b Move rtems/freebsd to freebsd and contrib to freebsd/contrib 2012-03-08 07:25:21 -06:00