LwIP

Started by tha, August 29, 2021, 09:15:30 AM

Previous topic - Next topic

tha



รองรับ packed structs. ห่อหุ้ม u32_t and u16_t members..
สำหรับตัวอย่างของ packed struct declarations, ดู include/lwip/prot/ subfolder.
พอร์ตไปยัง GCC/clang ถูก included ใน lwIP, ถ้าคุณใช้ these compilers ก็ไม่มีอะไรต้องทำที่นี่

tha



รองรับ packed structs. ห่อหุ้ม u8_t members, โดยที่บาง compilers เตือนว่าการแพ็คไม่จำเป็น.
สำหรับตัวอย่างของ packed struct declarations, ดู include/lwip/prot/ subfolder.
พอร์ตไปยัง GCC/clang ถูก included ใน lwIP, ถ้าคุณใช้ these compilers ก็ไม่มีอะไรต้องทำที่นี่

tha



รองรับ packed structs. ห่อหุ้ม  members ที่เป็น packed structs ตัวเอง,โดยที่บาง compilers เตือนว่าการแพ็คไม่จำเป็น.
สำหรับตัวอย่างของ packed struct declarations, ดู include/lwip/prot/ subfolder.
พอร์ตไปยัง GCC/clang ถูก included ใน lwIP, ถ้าคุณใช้ these compilers ก็ไม่มีอะไรต้องทำที่นี่


tha



รองรับ packed structs. วางไว้ระหว่างจุดสิ้นสุดของ declaration of a packed struct และเซมิโคลอนต่อท้าย
สำหรับตัวอย่างของ packed struct declarations, ดู include/lwip/prot/ subfolder.
พอร์ตไปยัง GCC/clang ถูก included ใน lwIP, ถ้าคุณใช้ these compilers ก็ไม่มีอะไรต้องทำที่นี่

tha



PACK_STRUCT_USE_INCLUDES==1: Packed structs support โดยใช้ #include files ก่อนและหลัง struct ถูกแพ็ค.
The file included BEFORE the struct คือ "arch/bpstruct.h".
The file included AFTER the struct คือ "arch/epstruct.h".
นี้สามารถถูกใช้เพื่อจัดให้มีใช้ struct packing บน MS Visual C compilers, ดู the Win32 port ใน the lwIP contrib repository สำหรับการอ้างอิง. สำหรับตัวอย่างของ packed struct declarations, ดู include/lwip/prot/ subfolder.
พอร์ตไปยัง GCC/clang ถูก included ใน lwIP, ถ้าคุณใช้ these compilers ก็ไม่มีอะไรต้องทำที่นี่


tha



เอาออก a struct autoip ที่เซ็ตก่อนหน้านี้ถึง the netif โดยใช้ autoip_set_struct()

tha