LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 07-07-2011, 05:04 PM   #1
Washington Ratso
LQ Newbie
 
Registered: Sep 2010
Posts: 27

Rep: Reputation: 0
libnetfilter_conntrack with IPv4 & IPv6


I have been using libnetfilter_conntrack to track connections, which have had IPv4 sources and destinations. Now, I want to upgrade my code to handle IPv6 sources and destinations. How do I determine if the source or destination is IPv4 or IPv6? For source, do I have to call nfct_get_attr twice, once with the ATTR_IPV4_SRC argument and once with the ATTR_IPV6_SRC argument? Will one return null and the other not null?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 over IPv4 lo-kəy Linux - Networking 1 05-04-2009 01:45 AM
IPv6 vs IPv4 jiml8 Programming 2 12-22-2008 10:53 AM
ipv6 and ipv4 Ammad Linux - Networking 1 12-02-2006 03:44 PM
ipv4 to ipv6 anant_wsu Linux - Networking 1 01-03-2006 04:28 PM
IPv6 to IPv4 thomjakub *BSD 1 03-06-2004 01:17 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 03:36 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