Changeset 3166 in genesis
- Timestamp:
- Nov 12, 2004, 11:09:52 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tools/nodechk/nodechk.c
r3161 r3166 1 // (c) Copyright 2004 Stichting Wireless Leiden, all 2 // rights reserved. More information can be found on 3 // http://wwww.wirelessleiden.nl and the license is at: 4 // http://wleiden.webweaving.org:8080/svn/node-config/LICENSE 5 // 6 // Nodechck - Programma om wleiden.conf files te lezen en te bewerken 7 // 8 // Rev.0.1 12/11/2004 9 // dimensies van desc, point_to_point, ospfneighbors verhoogd 10 // gegevens van hoofd interface in aliassen overgenomen 11 // komma's uit velden geskipt ivm csv-lijst (3e regel node-som heeft ',' in desc-veld) 12 // 13 // Rev.0.0 10/11/2004 initial revision Rudolf Oosterhuis 14 1 15 #include <stdio.h> 2 16 #include <io.h> … … 36 50 char type[10]; 37 51 char ip[20]; 38 char desc[ 20];52 char desc[46]; 39 53 char sdesc[20]; 40 54 char speed[20]; 41 55 42 char pointtopoint[ 20];56 char pointtopoint[35]; 43 57 44 58 char ospfbroadcast[6]; 45 char ospfneighbors[ 20];59 char ospfneighbors[35]; 46 60 47 61 char mode[10]; … … 207 221 { 208 222 if (*pos==',') pos++; //geen komma's ivm csv-list 209 *pose++=*pos++;223 else *pose++=*pos++; 210 224 } 211 225 } 212 *pose++=*pos; 226 if (*pos==',') pos++; //geen komma's ivm csv-list 227 else *pose++=*pos; 213 228 } 214 229 *pose='\0'; … … 256 271 strncpy(pCd->sprintfname,pos+len+21,sizeof(pCd->sprintfname)); 257 272 bCardBezig=TRUE; 273 if (*(pCd->configname+strlen(pCd->configname)-2)==':') 274 { //alias, dan hoofdgegevens overnemen, ga ervan uit dat hoofd-interface altijd direct aan aliassen voorafgaat 275 int j=0; 276 while (*((pCd-j)->configname+strlen((pCd-j)->configname)-2)==':'&&(j<=CardTeller)) j++; 277 if (j<=CardTeller) 278 { 279 strncpy(pCd->mode,(pCd-j)->mode,sizeof(pCd->mode)); 280 strncpy(pCd->essid,(pCd-j)->essid,sizeof(pCd->essid)); 281 strncpy(pCd->channel,(pCd-j)->channel,sizeof(pCd->channel)); 282 strncpy(pCd->polar,(pCd-j)->polar,sizeof(pCd->polar)); 283 strncpy(pCd->antenna,(pCd-j)->antenna,sizeof(pCd->antenna)); 284 strncpy(pCd->gain,(pCd-j)->gain,sizeof(pCd->gain)); 285 strncpy(pCd->direction,(pCd-j)->direction,sizeof(pCd->direction)); 286 strncpy(pCd->beamwidth,(pCd-j)->beamwidth,sizeof(pCd->beamwidth)); 287 strncpy(pCd->cable,(pCd-j)->cable,sizeof(pCd->cable)); 288 strncpy(pCd->heigth,(pCd-j)->heigth,sizeof(pCd->heigth)); 289 } 290 } 258 291 } 259 292 }
Note:
See TracChangeset
for help on using the changeset viewer.