Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(800)

Side by Side Diff: dhcpcd-dbus.c

Issue 2957010: fix dhcpcd handling of Release dbus msg (Closed) Base URL: ssh://git@chromiumos-git//dhcpcd.git
Patch Set: Created 10 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * dhcpcd-dbus 2 * dhcpcd-dbus
3 * Copyright 2009 Roy Marples <roy@marples.name> 3 * Copyright 2009 Roy Marples <roy@marples.name>
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 468 matching lines...) Expand 10 before | Expand all | Expand 10 after
479 return version(con, msg, VERSION); 479 return version(con, msg, VERSION);
480 } else if (IsMethod(msg, "GetInterfaces")) { 480 } else if (IsMethod(msg, "GetInterfaces")) {
481 return dhcpcd_get_interfaces(con, msg); 481 return dhcpcd_get_interfaces(con, msg);
482 } else if (IsMethod(msg, "GetStatus")) { 482 } else if (IsMethod(msg, "GetStatus")) {
483 return return_status(con, msg); 483 return return_status(con, msg);
484 } else if (IsMethod(msg, "Rebind")) { 484 } else if (IsMethod(msg, "Rebind")) {
485 start_interface(ifaces); 485 start_interface(ifaces);
486 return dbus_ack(con, msg); 486 return dbus_ack(con, msg);
487 } else if (IsMethod(msg, "Release")) { 487 } else if (IsMethod(msg, "Release")) {
488 send_release(ifaces); 488 send_release(ifaces);
489 stop_interface(ifaces);
490 return dbus_ack(con, msg); 489 return dbus_ack(con, msg);
491 } else if (IsMethod(msg, "Stop")) { 490 } else if (IsMethod(msg, "Stop")) {
492 stop_interface(ifaces); 491 stop_interface(ifaces);
493 (void) dbus_ack(con, msg); 492 (void) dbus_ack(con, msg);
494 exit(EXIT_FAILURE); 493 exit(EXIT_FAILURE);
495 } else if (dbus_message_is_signal(msg, DBUS_INTERFACE_LOCAL, 494 } else if (dbus_message_is_signal(msg, DBUS_INTERFACE_LOCAL,
496 "Disconnected")) { 495 "Disconnected")) {
497 stop_interface(ifaces); 496 stop_interface(ifaces);
498 exit(EXIT_FAILURE); 497 exit(EXIT_FAILURE);
499 } 498 }
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
608 syslog(LOG_ERR, "write_lease: %m"); 607 syslog(LOG_ERR, "write_lease: %m");
609 } 608 }
610 return 0; 609 return 0;
611 } 610 }
612 611
613 int 612 int
614 run_script(const struct interface *ifp) 613 run_script(const struct interface *ifp)
615 { 614 {
616 return 0; 615 return 0;
617 } 616 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698