about mib2c.iterate.conf

This is a discussion on about mib2c.iterate.conf within the SNMP Users forums, part of the Networking and Network Related category; hi, this file originally auto-generated by mib2c using * : mib2c.iterate.conf in my opinion, table_entry = (struct dot11StationConfigTable_entry *) netsnmp_extract_iterator_context(request); ...


Go Back   Usenet Forums > Networking and Network Related > SNMP Users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-07-2007
ÃúµÂÁõ
 
Posts: n/a
Default about mib2c.iterate.conf

hi,
this file originally auto-generated by mib2c using
* : mib2c.iterate.conf

in my opinion, table_entry = (struct dot11StationConfigTable_entry *)
netsnmp_extract_iterator_context(request); is to extract data
structure from "request" and then for the GET request we need to put
the value to the conrresponding variable in the structure of
table_entry,so I did like that
char *tempStrStationID="192.168.0.11";
strcpy(table_entry->dot11StationID,tempStrStationID);


but I got the Segmentation fault when strcpy,p.s dot11StationIDis
definited like char dot11StationID[20];
so,why Segmentation fault?am I right in understanding the mechnism or
you can tell me which place I need to modify to the code generated by
mib2c.iterate.conf?

thank you!

Mangd

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?p...rge&CID=DEVDEV
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/...net-snmp-users
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 07:35 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0