forked from immortalwrt/immortalwrt
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
29 changed files
with
646 additions
and
337 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 0 additions & 11 deletions
11
package/network/utils/linux-atm/patches/600-fix-format-errors.patch
This file was deleted.
Oops, something went wrong.
File renamed without changes.
82 changes: 82 additions & 0 deletions
82
package/network/utils/linux-atm/patches/700-fix-gcc14-build.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
--- a/src/arpd/io.c | ||
+++ b/src/arpd/io.c | ||
@@ -615,7 +615,7 @@ int ip_itf_info(int number,uint32_t *ip, | ||
int get_local(int fd,struct sockaddr_atmsvc *addr) | ||
{ | ||
int result; | ||
- size_t length; | ||
+ socklen_t length; | ||
|
||
length = sizeof(struct sockaddr_atmsvc); | ||
result = getsockname(fd,(struct sockaddr *) addr,&length); | ||
--- a/src/led/conn.c | ||
+++ b/src/led/conn.c | ||
@@ -405,7 +405,7 @@ Conn_t *accept_conn(Conn_t *conn) | ||
{ | ||
Conn_t *new; | ||
struct sockaddr_atmsvc addr; | ||
- size_t len; | ||
+ socklen_t len; | ||
int fd; | ||
char buff[MAX_ATM_ADDR_LEN+1]; | ||
|
||
@@ -538,7 +538,7 @@ static int handle_accept(Conn_t *conn) | ||
*/ | ||
static int handle_data(Conn_t *conn) | ||
{ | ||
- char buff[MAX_CTRL_FRAME]; | ||
+ unsigned char buff[MAX_CTRL_FRAME]; | ||
int retval; | ||
|
||
retval = recv_frame(conn, buff, sizeof(buff)); | ||
--- a/src/led/frames.c | ||
+++ b/src/led/frames.c | ||
@@ -312,7 +312,7 @@ static void handle_ready_ind(Conn_t *con | ||
* dependant handler functions. | ||
* Returns < 0 for serious error | ||
*/ | ||
-int handle_frame(Conn_t *conn, char *buff, int size) | ||
+int handle_frame(Conn_t *conn, unsigned char *buff, int size) | ||
{ | ||
struct ctrl_frame *frame; | ||
|
||
--- a/src/led/frames.h | ||
+++ b/src/led/frames.h | ||
@@ -13,7 +13,7 @@ int validate_frame(unsigned char *buff, | ||
void send_ready_ind(Conn_t *conn); | ||
void send_register_req(void); | ||
|
||
-int handle_frame(Conn_t *conn, char *buff, int size); | ||
+int handle_frame(Conn_t *conn, unsigned char *buff, int size); | ||
uint32_t send_flush_req(Conn_t *conn); | ||
|
||
void parse_tlvs(uint16_t opcode, unsigned char *tlvp, int numtlvs, int sizeoftlvs); | ||
--- a/src/led/join.c | ||
+++ b/src/led/join.c | ||
@@ -43,7 +43,7 @@ static int read_join_rsp(char *buff, int | ||
static int parse_join_rsp(unsigned char *buff, int size); | ||
|
||
static int get_bus_addr(struct sockaddr_atmsvc *addr); | ||
-static int read_bus_arp(Conn_t *conn, struct sockaddr_atmsvc *addr, char *buff, int buffsize); | ||
+static int read_bus_arp(Conn_t *conn, struct sockaddr_atmsvc *addr, unsigned char *buff, int buffsize); | ||
|
||
/* | ||
* 5.1, Initial state | ||
@@ -693,7 +693,7 @@ static int get_bus_addr(struct sockaddr_ | ||
fd_set rfds; | ||
struct timeval tv; | ||
int n = 0, retval, timeout; | ||
- char buff[MAX_CTRL_FRAME]; | ||
+ unsigned char buff[MAX_CTRL_FRAME]; | ||
|
||
timeout = 4; /* wait response for 4 seconds */ | ||
lec_params.c7c_current_timeout = 1; | ||
@@ -740,7 +740,7 @@ static int get_bus_addr(struct sockaddr_ | ||
* Tries to read BUS ATM address in *addr | ||
* returns < 0 for error, 0 for not found > 0 for success | ||
*/ | ||
-static int read_bus_arp(Conn_t *conn, struct sockaddr_atmsvc *addr, char *buff, int buffsize) | ||
+static int read_bus_arp(Conn_t *conn, struct sockaddr_atmsvc *addr, unsigned char *buff, int buffsize) | ||
{ | ||
int frame_size; | ||
struct ctrl_frame *frame; |
21 changes: 0 additions & 21 deletions
21
package/network/utils/linux-atm/patches/800-include_sockios.patch
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# Huawei E5785 | ||
TargetVendor=0x3426 | ||
TargetProduct=0x14db | ||
HuaweiNewMode=1 |
Oops, something went wrong.