Giter VIP home page Giter VIP logo

router-lab's Issues

添加关于实验要求的详细描述

实验共分为两个检查阶段:个人/组网。两个阶段采用的网络拓扑相同,但组成不同,这部分需要绘图,同时需要枚举每个阶段的详细要求。

考虑针对部分 HAL 接口的部分参数添加 const 限定

例如,HAL_SendIPPacketbuffer 参数应为 const uint8_t * 而非 uint8_t *dst_mac 参数应为 const macaddr_t 而非 macaddr_t

对于后者,按照现在的接口,以下本来合理的写法不能通过编译:

/* ... */

constexpr macaddr_t kMulticastMacAddress = { /*...*/ };

int main() {
    /* ... */
    HAL_SendIPPacket(/* ... */ kMulticastMacAddress);
    /* ... */
}

原因是:

invalid conversion from 'const uint8_t*' {aka 'const unsigned char*'} to 'uint8_t*' {aka 'unsigned char*'}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.