projects
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[kernel] add missing kernel configuration symbols
[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
6019297
..
405a7a5
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
-@@ -1
14,6 +114
,10 @@ uint16_t FAST_FUNC udhcp_checksum(void *
+@@ -1
20,6 +120
,10 @@ uint16_t FAST_FUNC udhcp_checksum(void *
return ~sum;
}
return ~sum;
}
@@
-11,7
+11,7
@@
/* Construct a ip/udp header for a packet, send packet */
int FAST_FUNC udhcp_send_raw_packet(struct dhcpMessage *payload,
/* Construct a ip/udp header for a packet, send packet */
int FAST_FUNC udhcp_send_raw_packet(struct dhcpMessage *payload,
-@@ -1
26,11 +130
,7 @@ int FAST_FUNC udhcp_send_raw_packet(stru
+@@ -1
32,11 +136
,7 @@ int FAST_FUNC udhcp_send_raw_packet(stru
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) {
-@@ -14
0,7 +140
,7 @@ int FAST_FUNC udhcp_send_raw_packet(stru
+@@ -14
6,7 +146
,7 @@ int FAST_FUNC udhcp_send_raw_packet(stru
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);
-@@ -1
57,23 +157
,18 @@ int FAST_FUNC udhcp_send_raw_packet(stru
+@@ -1
63,23 +163
,18 @@ int FAST_FUNC udhcp_send_raw_packet(stru
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:
-@@ -2
25,8 +220
,7 @@ int FAST_FUNC udhcp_send_kernel_packet(s
+@@ -2
31,8 +226
,7 @@ int FAST_FUNC udhcp_send_kernel_packet(s
goto ret_close;
}
goto ret_close;
}
This page took
0.027184 seconds
and
4
git commands to generate.