-
Notifications
You must be signed in to change notification settings - Fork 17
Net do #12
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
Net do #12
Changes from all commits
Commits
Show all changes
36 commits
Select commit
Hold shift + click to select a range
5503991
src/net: ovarhaul script naming ip-link.up/ip-addr.up -> ip.init etc
troglobit aec2001
src/net: new test, also drop lo and use same interfaces as in figure
troglobit 5ce2e57
src/net: calculate and run teardown in reverse dependency order
troglobit 55bb9fc
src/net: rename action scripts as per review
troglobit 3fa31f0
src/net: fix bug in test, lag0 remains a dep for br0 even in gen 1
troglobit 795a796
src/net: fix bug in savedep(), trashed interface path argument
troglobit 36ee937
src/net: minor cleanup
troglobit c2cea4d
src/net: refactor filtering of forbidden names
troglobit 6540405
src/net: add commands; do, up/down with optional ifname(s)
troglobit aa31ada
src/net: add support for acting as a multicall binary (ifup/ifdown)
troglobit dbc3f5e
src/net: refactor, reuse existing linked list also for 'do' command
troglobit a3abeca
src/net: 'do' is a reserved keyword in shell scripts add 'apply' too
troglobit 1950ff2
src/net: increased debugging of basics
troglobit 920f026
src/net: first automated test case, run with unshare
troglobit e907649
src/net: convert to GNU Configure & Build system
troglobit bde33d3
src/net: refactor test into lib.sh and <test>.sh
troglobit 677c0ca
src/net: finalize first test, three indep ifaces in two generations
troglobit 5d4c12d
src/net: fix bugs in 'net up|down' uncovered by first test
troglobit 26c972a
src/net: install tests to target /usr/share/net
troglobit 34689ea
src/net: new test, basic bridge
troglobit 2cef92d
src/net: factor out pipe identification and debug each piped command
troglobit 49a4e72
src/net: must close each pipe before exectuing the next pipe action
troglobit e237d8e
src/net: fix interface creation/attach order in generation generator
troglobit da1be7a
src/net: new test, advanced bridge with lag and a top VLAN interface
troglobit c8a3800
src/net: rename helper fn create_ng -> init_next_gen
troglobit 44ac515
src/net: silence noisy "skipping" debug logs for missing scripts
troglobit 5b0599a
src/net: test; factor out state file creation from create_iface()
troglobit 6ccf564
src/net: update basic bridge test with new create_bridge() API
troglobit 91b3cc8
src/net: add test to verify moving port from lag to bridge
troglobit ec36522
src/net: let init_next_gen init new generation with ifaces
troglobit ed7950d
src/net: finalize bridge-lag.sh test, add step remove; vlan1 and br0
troglobit 7349c8d
src/net: add missing deps when moving between generations
troglobit d741483
package/confd: update package dependencies
troglobit 629831f
package/net: new package
troglobit 77cbaa6
package/net: depends also on iproute2
troglobit 4c818c7
src/net: update docs with new admin-state control file
troglobit File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| config BR2_PACKAGE_NET | ||
| bool "net" | ||
| select BR2_PACKAGE_IPROUTE2 | ||
| select BR2_PACKAGE_LIBITE | ||
| help | ||
| Handles transitions between network states. | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| ################################################################################ | ||
| # | ||
| # net | ||
| # | ||
| ################################################################################ | ||
|
|
||
| NET_VERSION = 1.0 | ||
| NET_LICENSE = ISC | ||
| NET_SITE_METHOD = local | ||
| NET_SITE = $(BR2_EXTERNAL_INFIX_PATH)/src/net | ||
| NET_DEPENDENCIES = libite | ||
| NET_AUTORECONF = YES | ||
|
|
||
| define NET_INSTALL_EXTRA | ||
| chmod +x $(TARGET_DIR)/usr/share/net/*.sh | ||
| endef | ||
| NET_TARGET_FINALIZE_HOOKS += NET_INSTALL_EXTRA | ||
|
|
||
| $(eval $(autotools-package)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,2 +1,13 @@ | ||
| *.o | ||
| *.log | ||
| *.trs | ||
| net | ||
| Makefile | ||
| Makefile.in | ||
| aclocal.m4 | ||
| autom4te.cache/ | ||
| aux/ | ||
| config.* | ||
| configure | ||
| src/.deps/ | ||
| stamp-h1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| Copyright (c) 2023 The KernelKit Authors | ||
|
|
||
| Permission is hereby granted, free of charge, to any person obtaining a copy | ||
| of this software and associated documentation files (the "Software"), to deal | ||
| in the Software without restriction, including without limitation the rights | ||
| to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
| copies of the Software, and to permit persons to whom the Software is | ||
| furnished to do so, subject to the following conditions: | ||
|
|
||
| The above copyright notice and this permission notice shall be included in | ||
| all copies or substantial portions of the Software. | ||
|
|
||
| THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
| IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
| FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
| AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
| LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
| OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | ||
| THE SOFTWARE. |
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| SUBDIRS = src test | ||
| DISTCLEANFILES = *~ *.d | ||
| ACLOCAL_AMFLAGS = -I m4 | ||
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| #!/bin/sh | ||
|
|
||
| autoreconf -W portability -vifm |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,40 @@ | ||
| AC_PREREQ(2.61) | ||
| AC_INIT([net], [1.0], [https://github.com/kernelkit/infix/issues]) | ||
| AC_CONFIG_AUX_DIR(aux) | ||
| AM_INIT_AUTOMAKE([1.11 foreign]) | ||
| AM_SILENT_RULES([yes]) | ||
|
|
||
| AC_CONFIG_SRCDIR([src/main.c]) | ||
| AC_CONFIG_HEADERS([config.h]) | ||
| AC_CONFIG_FILES([Makefile src/Makefile test/Makefile]) | ||
| AC_CONFIG_MACRO_DIR([m4]) | ||
|
|
||
| AC_PROG_CC | ||
| AC_PROG_INSTALL | ||
|
|
||
| # Check for pkg-config first, warn if it's not installed | ||
| PKG_PROG_PKG_CONFIG | ||
| PKG_CHECK_MODULES([libite], [libite >= 2.5.0]) | ||
|
|
||
| AC_OUTPUT | ||
|
|
||
| SYSCONFDIR=`eval echo $sysconfdir` | ||
| RUNSTATEDIR=`eval echo $runstatedir` | ||
| RUNSTATEDIR=`eval echo $RUNSTATEDIR` | ||
| cat <<EOF | ||
|
|
||
| ------------------ Summary ------------------ | ||
| $PACKAGE_NAME version $PACKAGE_VERSION | ||
| Prefix.........: $prefix | ||
| Sysconfdir.....: $SYSCONFDIR | ||
| Runstatedir....: $RUNSTATEDIR | ||
| C Compiler.....: $CC $CFLAGS $CPPFLAGS $LDFLAGS $LIBS | ||
|
|
||
| ------------- Compiler version -------------- | ||
| $($CC --version || true) | ||
| --------------------------------------------- | ||
|
|
||
| Check the above options and compile with: | ||
| ${MAKE-make} | ||
|
|
||
| EOF |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.