/mandos/trunk

To get this branch, use:
bzr branch http://bzr.recompile.se/loggerhead/mandos/trunk

« back to all changes in this revision

Viewing changes to plugins.d/mandos-client.c

  • Committer: Teddy Hogeborn
  • Date: 2016-10-08 04:33:04 UTC
  • mto: This revision was merged to the branch mainline in revision 881.
  • Revision ID: teddy@recompile.se-20161008043304-u4wqp55iacqfbwhb
Tags: version-1.7.13-1
* Makefile (version): Change to 1.7.13.
* NEWS (Version 1.7.13): Add new entry.
* debian/changelog (1.7.13-1): - '' -

Show diffs side-by-side

added added

removed removed

Lines of Context:
1079
1079
    bool match = false;
1080
1080
    {
1081
1081
      char *interface = NULL;
1082
 
      while((interface = argz_next(mc->interfaces,
1083
 
                                   mc->interfaces_size,
1084
 
                                   interface))){
 
1082
      while((interface=argz_next(mc->interfaces, mc->interfaces_size,
 
1083
                                 interface))){
1085
1084
        if(if_nametoindex(interface) == (unsigned int)if_index){
1086
1085
          match = true;
1087
1086
          break;
2197
2196
  
2198
2197
  /* Sleep checking until interface is running.
2199
2198
     Check every 0.25s, up to total time of delay */
2200
 
  for(int i = 0; i < delay * 4; i++){
 
2199
  for(int i=0; i < delay * 4; i++){
2201
2200
    if(interface_is_running(interface)){
2202
2201
      break;
2203
2202
    }
3024
3023
      /* Take down the network interfaces which were brought up */
3025
3024
      {
3026
3025
        char *interface = NULL;
3027
 
        while((interface = argz_next(interfaces_to_take_down,
3028
 
                                     interfaces_to_take_down_size,
3029
 
                                     interface))){
 
3026
        while((interface=argz_next(interfaces_to_take_down,
 
3027
                                   interfaces_to_take_down_size,
 
3028
                                   interface))){
3030
3029
          ret = take_down_interface(interface);
3031
3030
          if(ret != 0){
3032
3031
            errno = ret;