projects
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[iw] Update iw to version 0.9.13.
[openwrt.git]
/
package
/
busybox
/
patches
/
241-udhcpc-oversized_packets.patch
diff --git
a/package/busybox/patches/241-udhcpc-oversized_packets.patch
b/package/busybox/patches/241-udhcpc-oversized_packets.patch
index
6d5ec36
..
7eda8c1
100644
(file)
--- a/
package/busybox/patches/241-udhcpc-oversized_packets.patch
+++ b/
package/busybox/patches/241-udhcpc-oversized_packets.patch
@@
-1,6
+1,6
@@
--- a/networking/udhcp/packet.c
+++ b/networking/udhcp/packet.c
--- a/networking/udhcp/packet.c
+++ b/networking/udhcp/packet.c
-@@ -114,6 +114,10 @@
+@@ -114,6 +114,10 @@
uint16_t udhcp_checksum(void *addr, int
return ~sum;
}
return ~sum;
}
@@
-11,7
+11,7
@@
/* Construct a ip/udp header for a packet, send packet */
int udhcp_send_raw_packet(struct dhcpMessage *payload,
/* Construct a ip/udp header for a packet, send packet */
int udhcp_send_raw_packet(struct dhcpMessage *payload,
-@@ -125,11 +129,7 @@
+@@ -125,11 +129,7 @@
int udhcp_send_raw_packet(struct dhcpMes
int fd;
int result = -1;
const char *msg;
int fd;
int result = -1;
const char *msg;
@@
-24,7
+24,7
@@
fd = socket(PF_PACKET, SOCK_DGRAM, htons(ETH_P_IP));
if (fd < 0) {
fd = socket(PF_PACKET, SOCK_DGRAM, htons(ETH_P_IP));
if (fd < 0) {
-@@ -139,7 +139,7 @@
+@@ -139,7 +139,7 @@
int udhcp_send_raw_packet(struct dhcpMes
memset(&dest, 0, sizeof(dest));
memset(&packet, 0, sizeof(packet));
memset(&dest, 0, sizeof(dest));
memset(&packet, 0, sizeof(packet));
@@
-33,7
+33,7
@@
dest.sll_family = AF_PACKET;
dest.sll_protocol = htons(ETH_P_IP);
dest.sll_family = AF_PACKET;
dest.sll_protocol = htons(ETH_P_IP);
-@@ -156,23 +156,18 @@
+@@ -156,23 +156,18 @@
int udhcp_send_raw_packet(struct dhcpMes
packet.ip.daddr = dest_ip;
packet.udp.source = htons(source_port);
packet.udp.dest = htons(dest_port);
packet.ip.daddr = dest_ip;
packet.udp.source = htons(source_port);
packet.udp.dest = htons(dest_port);
@@
-63,7
+63,7
@@
(struct sockaddr *) &dest, sizeof(dest));
msg = "sendto";
ret_close:
(struct sockaddr *) &dest, sizeof(dest));
msg = "sendto";
ret_close:
-@@ -224,8 +219,7 @@
+@@ -224,8 +219,7 @@
int udhcp_send_kernel_packet(struct dhcp
goto ret_close;
}
goto ret_close;
}
This page took
0.02248 seconds
and
4
git commands to generate.