LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 12-21-2010, 09:00 AM   #1
vinothtitan
LQ Newbie
 
Registered: Aug 2010
Posts: 4

Rep: Reputation: 0
Question snmpget prints extra 0's for IPv6 address


Hi,
Pls help me in this issue.
I am using
snmpwalk -v 3 -u ntf-302 -l au...for a MIB table which contains IPv6 address.

In Subagent:
For testing purpose I have hardcoded the value as
inet_pton(AF_INET6, "ffff:ffff:ffff::",Ipv6Address);

in _get() function I am accessing this address as
memcpy((*V6Addr_val_ptr_ptr),
Ipv6Address,16);
I have hardcoded 16 as the size of Ipv6Address[16] and even wherever i use memset.


But my snmpwalk command prints the address along with 24 bytes of 0s

SNMPv2-SMI::enterprises.182.3.1.1.15.1.1.2.50 = Hex-STRING: FF FF 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00


is there a place where I am making some blunder...??
I guess I have briefed my prob...if the info is not sufficient i can give more...!
 
  


Reply



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 On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ipv6 address sarathius Programming 1 04-22-2008 02:31 PM
How to set IPv6 address on IPv6 router tlemons Linux - Networking 3 09-17-2007 01:25 PM
IPv6 address ????????? hegdeshashi Programming 3 06-19-2006 03:13 AM
Prints 2 extra pages, every time dlublink Linux - Networking 1 10-19-2005 05:46 AM
getting IPv6 address lacitpo Linux - Networking 1 03-18-2005 11:09 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 10:35 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration