diff options
Diffstat (limited to 'meta/recipes-core/busybox/busybox/busybox-udhcpc-no_deconfig.patch')
-rw-r--r-- | meta/recipes-core/busybox/busybox/busybox-udhcpc-no_deconfig.patch | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/meta/recipes-core/busybox/busybox/busybox-udhcpc-no_deconfig.patch b/meta/recipes-core/busybox/busybox/busybox-udhcpc-no_deconfig.patch index 2a0a40c512..35e981d6a2 100644 --- a/meta/recipes-core/busybox/busybox/busybox-udhcpc-no_deconfig.patch +++ b/meta/recipes-core/busybox/busybox/busybox-udhcpc-no_deconfig.patch | |||
@@ -31,11 +31,11 @@ Signed-off-by: Andreas Oberritter <obi@opendreambox.org> | |||
31 | networking/udhcp/dhcpc.c | 29 ++++++++++++++++------ | 31 | networking/udhcp/dhcpc.c | 29 ++++++++++++++++------ |
32 | 1 file changed, 21 insertions(+), 8 deletions(-) | 32 | 1 file changed, 21 insertions(+), 8 deletions(-) |
33 | 33 | ||
34 | Index: busybox-1.31.0/networking/udhcp/dhcpc.c | 34 | Index: busybox-1.32.0/networking/udhcp/dhcpc.c |
35 | =================================================================== | 35 | =================================================================== |
36 | --- busybox-1.31.0.orig/networking/udhcp/dhcpc.c | 36 | --- busybox-1.32.0.orig/networking/udhcp/dhcpc.c |
37 | +++ busybox-1.31.0/networking/udhcp/dhcpc.c | 37 | +++ busybox-1.32.0/networking/udhcp/dhcpc.c |
38 | @@ -48,6 +48,8 @@ | 38 | @@ -48,6 +48,8 @@ struct tpacket_auxdata { |
39 | }; | 39 | }; |
40 | #endif | 40 | #endif |
41 | 41 | ||
@@ -55,7 +55,7 @@ Index: busybox-1.31.0/networking/udhcp/dhcpc.c | |||
55 | USE_FOR_MMU( OPTBIT_b,) | 55 | USE_FOR_MMU( OPTBIT_b,) |
56 | IF_FEATURE_UDHCPC_ARPING(OPTBIT_a,) | 56 | IF_FEATURE_UDHCPC_ARPING(OPTBIT_a,) |
57 | IF_FEATURE_UDHCP_PORT( OPTBIT_P,) | 57 | IF_FEATURE_UDHCP_PORT( OPTBIT_P,) |
58 | @@ -1124,7 +1128,8 @@ | 58 | @@ -1084,7 +1088,8 @@ |
59 | client_data.state = RENEW_REQUESTED; | 59 | client_data.state = RENEW_REQUESTED; |
60 | break; | 60 | break; |
61 | case RENEW_REQUESTED: /* impatient are we? fine, square 1 */ | 61 | case RENEW_REQUESTED: /* impatient are we? fine, square 1 */ |
@@ -65,7 +65,7 @@ Index: busybox-1.31.0/networking/udhcp/dhcpc.c | |||
65 | case REQUESTING: | 65 | case REQUESTING: |
66 | case RELEASED: | 66 | case RELEASED: |
67 | change_listen_mode(LISTEN_RAW); | 67 | change_listen_mode(LISTEN_RAW); |
68 | @@ -1160,7 +1165,8 @@ | 68 | @@ -1120,7 +1125,8 @@ static void perform_release(uint32_t server_addr, uint32_t requested_ip) |
69 | * Users requested to be notified in all cases, even if not in one | 69 | * Users requested to be notified in all cases, even if not in one |
70 | * of the states above. | 70 | * of the states above. |
71 | */ | 71 | */ |
@@ -75,7 +75,7 @@ Index: busybox-1.31.0/networking/udhcp/dhcpc.c | |||
75 | 75 | ||
76 | change_listen_mode(LISTEN_NONE); | 76 | change_listen_mode(LISTEN_NONE); |
77 | client_data.state = RELEASED; | 77 | client_data.state = RELEASED; |
78 | @@ -1278,7 +1284,7 @@ | 78 | @@ -1238,7 +1244,7 @@ |
79 | /* Parse command line */ | 79 | /* Parse command line */ |
80 | opt = getopt32long(argv, "^" | 80 | opt = getopt32long(argv, "^" |
81 | /* O,x: list; -T,-t,-A take numeric param */ | 81 | /* O,x: list; -T,-t,-A take numeric param */ |
@@ -84,7 +84,7 @@ Index: busybox-1.31.0/networking/udhcp/dhcpc.c | |||
84 | USE_FOR_MMU("b") | 84 | USE_FOR_MMU("b") |
85 | IF_FEATURE_UDHCPC_ARPING("a::") | 85 | IF_FEATURE_UDHCPC_ARPING("a::") |
86 | IF_FEATURE_UDHCP_PORT("P:") | 86 | IF_FEATURE_UDHCP_PORT("P:") |
87 | @@ -1389,6 +1395,10 @@ | 87 | @@ -1349,6 +1355,10 @@ |
88 | logmode |= LOGMODE_SYSLOG; | 88 | logmode |= LOGMODE_SYSLOG; |
89 | } | 89 | } |
90 | 90 | ||
@@ -95,7 +95,7 @@ Index: busybox-1.31.0/networking/udhcp/dhcpc.c | |||
95 | /* Create pidfile */ | 95 | /* Create pidfile */ |
96 | write_pidfile(client_data.pidfile); | 96 | write_pidfile(client_data.pidfile); |
97 | /* Goes to stdout (unless NOMMU) and possibly syslog */ | 97 | /* Goes to stdout (unless NOMMU) and possibly syslog */ |
98 | @@ -1397,7 +1407,8 @@ | 98 | @@ -1357,7 +1367,8 @@ |
99 | srand(monotonic_us()); | 99 | srand(monotonic_us()); |
100 | 100 | ||
101 | client_data.state = INIT_SELECTING; | 101 | client_data.state = INIT_SELECTING; |
@@ -105,17 +105,17 @@ Index: busybox-1.31.0/networking/udhcp/dhcpc.c | |||
105 | change_listen_mode(LISTEN_RAW); | 105 | change_listen_mode(LISTEN_RAW); |
106 | packet_num = 0; | 106 | packet_num = 0; |
107 | timeout = 0; | 107 | timeout = 0; |
108 | @@ -1570,7 +1581,8 @@ | 108 | @@ -1530,7 +1541,8 @@ |
109 | } | 109 | } |
110 | /* Timed out, enter init state */ | 110 | /* Timed out, enter init state */ |
111 | bb_info_msg("lease lost, entering init state"); | 111 | bb_simple_info_msg("lease lost, entering init state"); |
112 | - udhcp_run_script(NULL, "deconfig"); | 112 | - udhcp_run_script(NULL, "deconfig"); |
113 | + if (allow_deconfig) | 113 | + if (allow_deconfig) |
114 | + udhcp_run_script(NULL, "deconfig"); | 114 | + udhcp_run_script(NULL, "deconfig"); |
115 | client_data.state = INIT_SELECTING; | 115 | client_data.state = INIT_SELECTING; |
116 | client_data.first_secs = 0; /* make secs field count from 0 */ | 116 | client_data.first_secs = 0; /* make secs field count from 0 */ |
117 | /*timeout = 0; - already is */ | 117 | /*timeout = 0; - already is */ |
118 | @@ -1762,8 +1774,10 @@ | 118 | @@ -1722,8 +1734,10 @@ |
119 | "(got ARP reply), declining"); | 119 | "(got ARP reply), declining"); |
120 | send_decline(/*xid,*/ server_addr, packet.yiaddr); | 120 | send_decline(/*xid,*/ server_addr, packet.yiaddr); |
121 | 121 | ||
@@ -128,7 +128,7 @@ Index: busybox-1.31.0/networking/udhcp/dhcpc.c | |||
128 | change_listen_mode(LISTEN_RAW); | 128 | change_listen_mode(LISTEN_RAW); |
129 | client_data.state = INIT_SELECTING; | 129 | client_data.state = INIT_SELECTING; |
130 | client_data.first_secs = 0; /* make secs field count from 0 */ | 130 | client_data.first_secs = 0; /* make secs field count from 0 */ |
131 | @@ -1832,8 +1846,10 @@ | 131 | @@ -1792,8 +1806,10 @@ |
132 | /* return to init state */ | 132 | /* return to init state */ |
133 | bb_info_msg("received %s", "DHCP NAK"); | 133 | bb_info_msg("received %s", "DHCP NAK"); |
134 | udhcp_run_script(&packet, "nak"); | 134 | udhcp_run_script(&packet, "nak"); |