Go to file
Zhe Weng 9a23ebdbc0 net/pkt: Support binding to devices other than ETH
We're using the `sll_ifindex` inside `struct sockaddr_ll` to bind
device, so we don't need to translate it into mac address, we can just
match the index, which also let us bind to different type of devices
other than Ethernet.

Ref: Linux also uses `ifindex` to find related device and note it down without mac addresses.
https://man7.org/linux/man-pages/man7/packet.7.html
https://github.com/torvalds/linux/blob/v6.7/net/packet/af_packet.c#L3328
https://github.com/torvalds/linux/blob/v6.7/net/packet/af_packet.c#L3264-L3265

Signed-off-by: Zhe Weng <wengzhe@xiaomi.com>
2024-02-22 21:21:48 -08:00
.github build(deps): bump actions/cache from 3 to 4 2024-01-22 01:42:03 -08:00
arch stm32/stm32f30xxx_rcc.c: fix broken flash setup 2024-02-23 06:11:26 +01:00
audio Documentation: remove all migrated READMEs 2023-10-29 21:03:54 -03:00
binfmt log messages of binfmt are very much. 2023-12-29 17:36:47 +08:00
boards arch/x86_64: add cmake support 2024-02-23 07:45:57 +08:00
cmake cmake/nuttx_add_library.cmake:add target that define in external module CMakeLists.txt 2024-02-21 19:58:34 +08:00
crypto sched: explicitly select the cpuload clock source configuration 2023-11-01 09:27:56 +08:00
Documentation DOC: Fix NXPlayer name typo 2024-02-22 08:09:44 -08:00
drivers rptun ioctl: remove rptun_panic and rptun_dump_all 2024-02-21 21:38:05 -08:00
dummy build: add initial cmake build system 2023-07-08 13:50:48 +08:00
fs Revert "fix variable set but not used" 2024-02-21 21:29:48 -08:00
graphics poll: pollsetup should notify only one fd passd by caller 2023-11-21 09:07:17 +01:00
include rptun ioctl: remove rptun_panic and rptun_dump_all 2024-02-21 21:38:05 -08:00
libs arch/x86_64: add cmake support 2024-02-23 07:45:57 +08:00
mm Revert "fix variable set but not used" 2024-02-21 21:29:48 -08:00
net net/pkt: Support binding to devices other than ETH 2024-02-22 21:21:48 -08:00
openamp openamp: Fix void pointer arithmetic in openamp to remove compilation warnings 2024-02-12 17:06:33 +01:00
pass1
sched Revert "fix variable set but not used" 2024-02-21 21:29:48 -08:00
syscall sched/semaphore: Move named semaphores to user space 2023-11-27 04:52:54 -08:00
tools tools/nxstyle: add infineon prefix into ignore list 2024-02-21 21:39:19 -08:00
video build: add initial cmake build system 2023-07-08 13:50:48 +08:00
wireless Remove the back slash from long literal string 2024-02-19 16:43:15 +01:00
.asf.yaml
.gitignore fs/vfat: Fix typo in the macro DIRSEC_BYTENDX 2024-02-03 12:46:08 -03:00
.yamllint
AUTHORS AUTHORS: add Tomek CEDRO to the list 2023-03-07 14:15:55 +01:00
CMakeLists.txt cmake: use -fvisibility=default for sim_head 2024-01-06 04:21:52 -08:00
CONTRIBUTING.md Remove the tail spaces from all files except Documentation 2023-02-26 13:24:24 -08:00
INVIOLABLES.md
Kconfig rpmsg/debug: add debug configs and macros 2024-02-15 19:53:55 -08:00
LICENSE api: add simple hashtable api 2024-02-21 13:29:36 -03:00
Makefile
NOTICE
README.md Gathering community recommendations 2023-10-28 13:55:56 +08:00
ReleaseNotes Documentation: move ReleaseNotes 2023-09-26 20:41:00 +08:00

POSIX Badge License Issues Tracking Badge Contributors GitHub Build Badge Documentation Badge

Apache NuttX is a real-time operating system (RTOS) with an emphasis on standards compliance and small footprint. Scalable from 8-bit to 64-bit microcontroller environments, the primary governing standards in NuttX are POSIX and ANSI standards. Additional standard APIs from Unix and other common RTOSs (such as VxWorks) are adopted for functionality not available under these standards, or for functionality that is not appropriate for deeply-embedded environments (such as fork()).

For brevity, many parts of the documentation will refer to Apache NuttX as simply NuttX.

Getting Started

First time on NuttX? Read the Getting Started guide! If you don't have a board available, NuttX has its own simulator that you can run on terminal.

Documentation

You can find the current NuttX documentation on the Documentation Page.

Alternatively, you can build the documentation yourself by following the Documentation Build Instructions.

The old NuttX documentation is still available in the Apache wiki.

Supported Boards

NuttX supports a wide variety of platforms. See the full list on the Supported Platforms page.

Contributing

If you wish to contribute to the NuttX project, read the Contributing guidelines for information on Git usage, coding standard, workflow and the NuttX principles.

License

The code in this repository is under either the Apache 2 license, or a license compatible with the Apache 2 license. See the License Page for more information.