/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 at bsnet
  • Date: 2011-03-21 19:34:39 UTC
  • Revision ID: teddy@fukt.bsnet.se-20110321193439-lkj3kwvhmujd8lwv
* plugins.d/mandos-client.c (good_interface): Reject non-ARP
                                              interfaces.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1113
1113
    }
1114
1114
    return 0;
1115
1115
  }
 
1116
  /* Reject non-ARP interfaces (including dummy interfaces) */
 
1117
  if(flags & IFF_NOARP){
 
1118
    if(debug){
 
1119
      fprintf(stderr, "Rejecting non-ARP interface \"%s\"\n",
 
1120
              if_entry->d_name);
 
1121
    }
 
1122
    return 0;
 
1123
  }
1116
1124
  /* Accept this device */
1117
1125
  if(debug){
1118
1126
    fprintf(stderr, "Interface \"%s\" is acceptable\n",