AltraMayor / AltraMayor/xiaconf

Adding support to variable size Ethernet addresses to the xip command

オープン
#9 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
good first issue
主要言語
C
スター
2
フォーク
7
PR マージ指標
30日以内にマージされた PR はありません

説明

The xip command expects and enforces that Ethernet addresses are 6 bytes long. While there's no immediate demand to support different sizes, Ethernet addresses can have different sizes. The Ethernet principal in the XIA kernel already handles variable-size Ethernet addresses, so if one patches the xip command to do the same, the code will be ready for any address that is not 6 bytes long.

The key function to change is `form_ether_xid()` in `xip/xipether.c`. Once `form_ether_xid()` and its callers have been patched, one must drop the constant `ETHER_ADDR_SIZE` throughout the code, let the kernel identify when the address is of the wrong size, and, when an error related to a wrongly-sized address happens, friendly report it to the user.

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。