- fixed Eth_pkt_send()

- dhcp: don't send padding bytes for whole options

git-svn-id: http://moon:8086/svn/mips@211 a8ebac50-d88d-4704-bea3-6648445a41b3
This commit is contained in:
2021-11-24 11:18:53 +00:00
parent 888c71bf72
commit 9c248bd884
3 changed files with 64 additions and 63 deletions
+7 -3
View File
@@ -11,6 +11,10 @@
#include "ethernet.h"
// -------------------------------------------------------------------------
typedef uint8_t dhcp_sname_t[64];
typedef uint8_t dhcp_file_t[128];
typedef uint8_t dhcp_option_t[312];
typedef struct _sDHCP
{
uint8_t op, htype, hlen, hops;
@@ -21,9 +25,9 @@ typedef struct _sDHCP
uint8_t siaddr[4];
uint8_t giaddr[4];
uint8_t chaddr[16];
uint8_t sname[64];
uint8_t file[128];
uint8_t options[312];
dhcp_sname_t sname;
dhcp_file_t file;
dhcp_option_t options;
} __attribute__ ((__packed__)) DHCP;