8000 more lwIP physical interfaces by d-a-v · Pull Request #6680 · esp8266/Arduino · GitHub
[go: up one dir, main page]

Skip to content

more lwIP physical interfaces #6680

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 118 commits into from
Dec 22, 2020
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
118 commits
Select commit Hold shift + click to select a range
04bcb88
Extracts dhcp server from lwip2 and add it to the core.
d-a-v Oct 1, 2019
1793b27
ethernet wip
d-a-v Oct 3, 2019
cb198b4
Merge branch 'master' into ethernet
d-a-v Oct 3, 2019
de4a287
ethernet wip
d-a-v Oct 3, 2019
d279c66
ethernet wip
d-a-v Oct 4, 2019
9229ca5
Merge branch 'master' into ethernet
d-a-v Oct 4, 2019
05d5b68
ethernet wip
d-a-v Oct 5, 2019
9a3df51
ethernet wip
d-a-v Oct 5, 2019
c5c921e
ethernet wip: dhcpserver in a class wip
d-a-v Oct 5, 2019
04b5ed7
ethernet wip
d-a-v Oct 6, 2019
cc2c2ce
now needed: void preinit(){ESP8266WiFiClass::preinitWiFiOff();}
d-a-v Oct 6, 2019
f893c32
ethernet wip
d-a-v Oct 6, 2019
7df15f3
ethernet wip
d-a-v Oct 6, 2019
19146a6
lwip2: no more dhcp inside
d-a-v Oct 7, 2019
e89f352
Merge branch 'master' into ethernet
d-a-v Oct 7, 2019
5898985
ethernet wip
d-a-v Oct 7, 2019
833d3af
Merge branch 'master' into ethernet
d-a-v Oct 7, 2019
deebbcb
ethernet wip
d-a-v Oct 8, 2019
a3b1d91
ethernet wip: dhcp server working for legacy AP on boot, and external…
d-a-v Oct 10, 2019
b8485d1
Merge branch 'master' into ethernet
d-a-v Oct 10, 2019
919839d
ethernet wip
d-a-v Oct 12, 2019
16ddd26
Merge branch 'master' into ethernet
d-a-v Oct 24, 2019
574be13
ppp server updates
d-a-v Oct 26, 2019
8d10e91
restyle
d-a-v Oct 26, 2019
756ce0c
PPPServer: example
d-a-v Oct 26, 2019
5b38c0d
astyle
d-a-v Oct 26, 2019
b79d841
comments
d-a-v Oct 28, 2019
3fec74a
argument reorder common function for ::config()
d-a-v Oct 28, 2019
f15a93c
Merge branch 'ethernet' of github.com:d-a-v/Arduino into ethernet
d-a-v Oct 28, 2019
6ac98da
fix upstream url
d-a-v Oct 28, 2019
f35f712
Merge branch 'master' into ethernet
d-a-v Oct 28, 2019
a8e231b
sync with lwip2
d-a-v Oct 28, 2019
6be2382
Merge branch 'ethernet' of github.com:d-a-v/Arduino into ethernet
d-a-v Oct 28, 2019
c6c3805
sync with lwip2
d-a-v Oct 28, 2019
7bdadd4
missing file
d-a-v Oct 29, 2019
3282a3f
fix dhcp server on AP
d-a-v Oct 30, 2019
370bd62
Merge branch 'master' into ethernet
d-a-v Oct 30, 2019
fc6fb1d
fix example
d-a-v Oct 30, 2019
900c594
fix former declaration of dhcp server, and its current use
d-a-v Oct 30, 2019
4b5a2c4
fix dhcp server when ipv6 is enabled
d-a-v Oct 30, 2019
4ebd5c8
fixes for lwip1
d-a-v Oct 30, 2019
1366903
fi macro arithmetic
d-a-v Oct 30, 2019
d09d62e
fix example
d-a-v Oct 30, 2019
d9d9339
add missing files (ppp)
d-a-v Oct 30, 2019
5816590
fix emulation on host
d-a-v Oct 30, 2019
04d02c3
fix example warnings
d-a-v Oct 30, 2019
6ee5df9
Merge branch 'master' into ethernet
devyte Nov 5, 2019
8f57757
Merge branch 'master' into ethernet
d-a-v Nov 14, 2019
9eb9dee
Merge branch 'ethernet' of github.com:d-a-v/Arduino into ethernet
d-a-v Nov 23, 2019
6b27eaa
Merge branch 'master' into ethernet
d-a-v Nov 23, 2019
bd8b32a
move hostname() from STA to generic interface
< 8000 span class="description"> d-a-v Nov 23, 2019
55b874c
Merge branch 'master' into ethernet
d-a-v Nov 24, 2019
21694be
Merge branch 'master' into ethernet
d-a-v Nov 28, 2019
9d77d1d
Merge branch 'ethernet' of github.com:d-a-v/Arduino into ethernet
d-a-v Nov 28, 2019
a81d110
Merge branch 'master' into ethernet
d-a-v Dec 4, 2019
b3acf27
Merge branch 'master' into ethernet
d-a-v Dec 6, 2019
df04b3c
Merge branch 'ethernet' of github.com:d-a-v/Arduino into ethernet
d-a-v Dec 21, 2019
51aca37
Merge branch 'master' into ethernet
d-a-v Dec 21, 2019
6e12d9e
Merge branch 'ethernet' of github.com:d-a-v/Arduino into ethernet
d-a-v Feb 18, 2020
540e446
sync with lwip2
d-a-v Feb 18, 2020
29d3de7
Merge branch 'master' into ethernet
d-a-v Feb 25, 2020
50fec05
Merge branch 'master' into ethernet
d-a-v Feb 25, 2020
488ae3e
Merge branch 'ethernet' of github.com:d-a-v/Arduino into ethernet
d-a-v Feb 27, 2020
21ffcfe
Merge branch 'master' into ethernet
d-a-v Feb 27, 2020
0b4689b
style
d-a-v Feb 27, 2020
043d32c
fix using softserial API
d-a-v Feb 27, 2020
cc2be53
fix warning with macro
d-a-v Feb 27, 2020
0dcfc84
fix include file with lwip1.4
d-a-v Feb 27, 2020
967c349
lwIP-1.4 include fix
d-a-v Feb 27, 2020
0f133cc
lwIP-1.4 include fix
d-a-v Feb 27, 2020
3c15b76
+ comments
d-a-v Apr 30, 2020
e0e7cdb
remove non readable characters from comments
d-a-v Apr 30, 2020
af93802
magic_cookie is part of bootp rfc
d-a-v Apr 30, 2020
639ef04
more comments
d-a-v Apr 30, 2020
a60ffaa
rebuild lwip lib
d-a-v Apr 30, 2020
0673d0d
Merge branch 'master' into ethernet
d-a-v Apr 30, 2020
44a680d
rebuild lwip libs
d-a-v Apr 30, 2020
147f5a9
rebuild lwip libs
d-a-v Apr 30, 2020
b18ec7b
fix copy from pointer
d-a-v May 1, 2020
e258e16
Merge branch 'ethernet' of github.com:d-a-v/Arduino into ethernet
d-a-v Jun 2, 2020
fef264e
Merge branch 'master' into ethernet
d-a-v Jun 2, 2020
59fe44e
Merge branch 'ethernet' of github.com:d-a-v/Arduino into ethernet
d-a-v Jun 2, 2020
d80cd31
do not filter mac address from within driver (https://github.com/d-a-…
d-a-v Jun 2, 2020
50d9e83
fix compilation problem with IPv6
d-a-v Jun 2, 2020
8b81709
per https://github.com/d-a-v/W5500lwIP/issues/17#issuecomment-638229509
d-a-v Jun 3, 2020
08dca76
Merge branch 'master' into ethernet
d-a-v Jun 3, 2020
03b0670
update
d-a-v Jul 16, 2020
24f0e9a
Merge branch 'ethernet' of github.com:d-a-v/Arduino into ethernet
d-a-v Jul 16, 2020
90da681
Merge branch 'master' into ethernet
d-a-v Jul 16, 2020
f8c7f10
fix compilation without local lwip1.4
d-a-v Jul 16, 2020
63354f2
merge with master
d-a-v Jul 16, 2020
5af7382
recompile lwip2
d-a-v Jul 16, 2020
49068fd
fix example
d-a-v Jul 16, 2020
96eb899
Merge branch 'master' into ethernet
d-a-v Jul 30, 2020
8be6533
ppp server: release resource on fail
d-a-v Aug 1, 2020
30a2aa7
reorder members
d-a-v Aug 1, 2020
a0239ac
per review and fixes
d-a-v Aug 1, 2020
b2dac9b
Merge branch 'master' into ethernet
d-a-v Aug 15, 2020
5928211
Merge branch 'master' into ethernet
d-a-v Aug 16, 2020
55ef5ef
Merge branch 'master' into ethernet
d-a-v Aug 21, 2020
27ff946
Merge branch 'ethernet' of github.com:d-a-v/Arduino into ethernet
d-a-v Sep 5, 2020
94fb55e
Merge branch 'master' into ethernet
d-a-v Sep 5, 2020
97ad7ab
Merge branch 'master' into ethernet
d-a-v Sep 21, 2020
509999b
Merge branch 'master' into ethernet
d-a-v Sep 27, 2020
0a0f8a5
lwip2: recompiled PPP branch after sync w/ master
d-a-v Sep 27, 2020
788928c
fix file name case confusion after merging from master
d-a-v Sep 27, 2020
38fbe41
fix include file name, remove private constructor
d-a-v Sep 27, 2020
a3aaa49
fix emulatio on host too
d-a-v Sep 27, 2020
29a3e29
Merge branch 'master' into ethernet
d-a-v Oct 15, 2020
dbc55c0
Merge branch 'master' into ethernet
d-a-v Oct 24, 2020
723bed1
Merge branch 'master' into ethernet
earlephilhower Oct 26, 2020
ee5acfe
add lwip_hook_dhcp_parse_option()
d-a-v Nov 9, 2020
8094f2d
Merge branch 'ethernet' of github.com:d-a-v/Arduino into ethernet
d-a-v Nov 9, 2020
823a245
Merge branch 'master' into ethernet
d-a-v Dec 6, 2020
e67e830
Merge branch 'master' into ethernet
d-a-v Dec 22, 2020
3d459da
lwIP recompilation
d-a-v Dec 22, 2020
c5461f6
+ethernet tcp client example in w5500 library examples
d-a-v Dec 22, 2020
90f434f
add cores/esp8266/Lwip* files under AllmanStyle control
d-a-v Dec 22, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Merge branch 'master' into ethernet
  • Loading branch information
d-a-v committed Jul 16, 2020
commit 90da681c6a131dae3010c4c0559a413d371bc542
259 changes: 259 additions & 0 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,259 @@
# Run whenever a PR is generated or updated.

# Most jobs check out the code, ensure Python3 is installed, and for build
# tests the ESP8266 toolchain is cached when possible to speed up execution.

name: ESP8266 Arduino CI

on:
pull_request:


jobs:

# Run 8 parallel jobs for the default build of all examples.
build-linux:
name: Build ${{ matrix.chunk }}
runs-on: ubuntu-latest
strategy:
matrix:
chunk: [0, 1, 2, 3, 4, 5, 6, 7]
steps:
- uses: actions/checkout@v2
with:
submodules: true
- uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Cache Linux toolchain
id: cache-linux
uses: actions/cache@v2
with:
path: ./tools/dist
key: key-linux-toolchain
- name: Build Sketches
env:
TRAVIS_BUILD_DIR: ${{ github.workspace }}
TRAVIS_TAG: ${{ github.ref }}
BUILD_PARITY: custom
mod: 8
rem: ${{ matrix.chunk }}
run: |
bash ./tests/build.sh


# Cover the debug and IPv6 cases by enabling both and running 8 parallel jobs
# over all example code.
build-debug-ipv6:
name: Debug IPv6 ${{ matrix.chunk }}
runs-on: ubuntu-latest
strategy:
matrix:
chunk: [0, 1, 2, 3, 4, 5, 6, 7]
steps:
- uses: actions/checkout@v2
with:
submodules: true
- uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Cache Linux toolchain
id: cache-linux
uses: actions/cache@v2
with:
path: ./tools/dist
key: key-linux-toolchain
- name: Build Sketches
env:
TRAVIS_BUILD_DIR: ${{ github.workspace }}
TRAVIS_TAG: ${{ github.ref }}
BUILD_PARITY: custom
mod: 8
rem: ${{ matrix.chunk }}
run: |
bash ./tests/debug6.sh


# Single build under Windows to ensure the Win toolchain is good.
build-windows:
name: Windows
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
with:
submodules: true
- uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Cache Windows toolchain
id: cache-windows
uses: actions/cache@v2
with:
path: ./tools/dist
key: key-windows-toolchain
- name: Build Sketch
env:
TRAVIS_BUILD_DIR: ${{ github.workspace }}
TRAVIS_TAG: ${{ github.ref }}
WINDOWS: 1
BUILD_PARITY: custom
mod: 500
rem: 1
run: |
# Windows has python3 already installed, but it's called "python".
# Copy python.exe to the proper name so scripts "just work".
copy (get-command python).source (get-command python).source.Replace("python.exe", "python3.exe")
bash ./tests/build.sh


# Single build under macOS to ensure the Mac toolchain is good.
build-mac:
name: Mac
runs-on: macOS-latest
steps:
- uses: actions/checkout@v2
with:
submodules: true
- uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Cache Mac toolchain
id: cache-mac
uses: actions/cache@v2
with:
path: ./tools/dist
key: key-mac-toolchain
- name: Build Sketch
env:
TRAVIS_BUILD_DIR: ${{ github.workspace }}
TRAVIS_TAG: ${{ github.ref }}
MACOSX: 1
BUILD_PARITY: custom
mod: 500
rem: 1
run: |
bash ./tests/build.sh


# Run a few Platform.IO jobs (not full suite) to check PIO integration.
build-pio:
name: Build Platform.IO
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: true
- uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Build subset on Platform.IO
env:
TRAVIS_BUILD_DIR: ${{ github.workspace }}
TRAVIS_TAG: ${{ github.ref }}
BUILD_PARITY: custom
mod: 42 # Picked at random to give 4-5 builds and exit.
rem: 13
run: |
sudo apt-get install python3-pip python3-setuptools
PATH=/home/runner/.local/bin:$PATH bash ./tests/platformio.sh


# Run host test suite under valgrind for runtime checking of code.
host-tests:
name: Host tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: true
- uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Run host tests
env:
TRAVIS_BUILD_DIR: ${{ github.workspace }}
TRAVIS_TAG: ${{ github.ref }}
run: |
sudo apt-get install valgrind lcov
bash ./tests/ci/host_test.sh


# Ensure Sphinx can build the documentation properly.
documentation:
name: Documentation
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: true
- uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Build documentation
env:
TRAVIS_BUILD_DIR: ${{ github.workspace }}
TRAVIS_TAG: ${{ github.ref }}
run: |
sudo apt-get install python3-pip python3-setuptools
# GitHub CI installs pip3 and setuptools outside the path.
# Update the path to include them and run.
PATH=/home/runner/.local/bin:$PATH pip3 install --user -r doc/requirements.txt
PATH=/home/runner/.local/bin:$PATH bash ./tests/ci/build_docs.sh


# Standard Arduino formatting in all the examples
style-check:
name: Style and formatting
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: true
- uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Style check
env:
TRAVIS_BUILD_DIR: ${{ github.workspace }}
TRAVIS_TAG: ${{ github.ref }}
run: |
sudo apt-get install astyle
bash ./tests/ci/style_check.sh


# Quick test that the mocking builds succeed
mock-check:
name: Mock trivial test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: true
- uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Mock build
env:
TRAVIS_BUILD_DIR: ${{ github.workspace }}
TRAVIS_TAG: ${{ github.ref }}
run: |
bash ./tests/buildm.sh


# Ensure no manual edits to boards.txt
boards-check:
name: Boards.txt check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: true
- uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Boards.txt diff
env:
TRAVIS_BUILD_DIR: ${{ github.workspace }}
TRAVIS_TAG: ${{ github.ref }}
run: |
bash ./tests/ci/build_boards.sh
56 changes: 56 additions & 0 deletions .github/workflows/release-to-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
# Whenever a release is published from a draft, this will update the
# master Arduino JSON file to add its new entry.

# We keep the master JSON file in another repo, so we need to use a pre-set
# Deployment SSH key to be able to push a change to the repo.

#### Steps to follow when you need to make a new SSH key for upload (not
#### normally needed!)

# Generate a new SSH key private/public pair

# ssh-keygen -t rsa -b 4096 -C "your@email.com" -f ./deploy_rsa

# Upload deploy_rsa.pub to the *ESP8266.GITHUB.IO* repo as a deployment key

# Convert the private key to base64 (to remove line breaks and allow easier
# usage in the script as an environment variable)

# base64.exe -w 0 < deploy_rsa > deploy_rsa.b64

# Copy the contents of the .b64 file to the clipboard, make a new GitHub
# secret in the ESP8266/Arduino repo called "GHCI_DEPLOY_KEY" and paste
# the B64 code into the variable.

name: ESP8266 Arduino Release Publisher

on:
release:
types: [published]

jobs:
package:
name: Update master JSON file
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: true
- uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Set GIT tag name
run: |
echo "::set-env name=TRAVIS_TAG::$(git describe --exact-match --tags)"
- name: Deploy updated JSON
env:
TRAVIS_BUILD_DIR: ${{ github.workspace }}
BUILD_TYPE: package
CI_GITHUB_API_KEY: ${{ secrets.GITHUB_TOKEN }}
GHCI_DEPLOY_KEY: ${{ secrets.GHCI_DEPLOY_KEY }}
run: |
bash ./tests/ci/build_package.sh
# Only the regenerated JSON file will be used, but it's simpler
# than looking for it in a GH release.
bash ./package/deploy_package_index.sh

40 changes: 40 additions & 0 deletions .github/workflows/tag-to-draft-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# Whenever a tag of the form #.xxxx is pushed against master, generate a
# draft release and upload the ZIP and JSON file to it. Maintainers then
# will manually add the changelist and publish it.

name: ESP8266 Arduino Draft Release

on:
push:
tags:
# Run for tags of the x.x.x* form (i.e. 3.0.0, 3.0.0-beta, etc.).
- '[0-9]+.[0-9]+.[0-9]+*'

jobs:
package:
name: Package
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: true
- uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Set GIT tag name
run: |
# Sets an environment variable used in the next steps
echo "::set-env name=TRAVIS_TAG::$(git describe --exact-match --tags)"
- name: Build package JSON
env:
TRAVIS_BUILD_DIR: ${{ github.workspace }}
BUILD_TYPE: package
CI_GITHUB_API_KEY: ${{ secrets.GITHUB_TOKEN }}
run: |
bash ./tests/ci/build_package.sh
pip3 install PyGithub
# Create a draft release and upload the ZIP and JSON files.
# This draft is not visible to normal users and needs to be
# updated manually with release notes and published from the
# GitHub web interface.
python3 ./package/upload_release.py --user "$GITHUB_ACTOR" --repo "$GITHUB_REPOSITORY" --token "$CI_GITHUB_API_KEY" --tag "$TRAVIS_TAG" --name "Release $TRAVIS_TAG" --msg "Update the draft with release notes before publishing." package/versions/*/*.zip package/versions/*/package_esp8266com_index.json
Loading
You are viewing a condensed version of this merge commit. You can view the full changes here.
0