]> git.decadent.org.uk Git - odhcp6c.git/blobdiff - src/odhcp6c.c
Detect "carrier up"-events and restart transaction
[odhcp6c.git] / src / odhcp6c.c
index 506239d2205824b7ae70fc050f0f44f1843737b1..1f75c50def5ed7195ff234e9237474b61b6a6bf5 100644 (file)
@@ -89,7 +89,6 @@ int main(_unused int argc, char* const argv[])
                        if (request_pd == 0)
                                request_pd = -1;
 
-                       ia_pd_mode = IA_MODE_TRY;
                        break;
 
                case 'F':
@@ -392,6 +391,9 @@ bool odhcp6c_signal_process(void)
                do_signal = 0;
                bool ra_updated = ra_process();
 
+               if (ra_link_up())
+                       do_signal = SIGUSR2;
+
                if (ra_updated && (bound || allow_slaac_only == 0))
                        script_call("ra-updated"); // Immediate process urgent events
                else if (ra_updated && !bound && allow_slaac_only > 0)