Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6864383
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T02:54:17+00:00 2026-05-27T02:54:17+00:00

I work on implementing IPv6 support for several applications, but I wondered what are

  • 0

I work on implementing IPv6 support for several applications, but I wondered what are these 2 fields for. There are so few questions about this here so I’m not sure I got it right.

  • About scope ID ( sin6_scope_id ) – well, Q1 , Q2 , Q3 and Q4 gave me idea about the scope ID and I think I get it. So, I’ll have to add one more config parameter, to make the scope-id configurable. (I decided to add this here, in case that someone is interested in this). Shortly – scope ID is necessary to uniquely determine which is the device, that should handle the traffic – because there may be several interfaces, with the same IP, but with different (interface?) ID. So far, so good.
  • But how about the "flow information" ( sin6_flowinfo )
    • What is it for? I couldn’t find anything interesting about that. I read the RFC but it didn’t help me at all.
    • Are there some possible values for sin6_flowinfo (like – several values, like flags, which mean something), or it’s like the sin6_scope_id – may be any value, depending on the device, I’m trying to connect to?
    • Should I worry about it at all, or I my just leave it 0 (as in Beej’s Guide to Network Programming . And yes, I tried that, it works, but I’m not sure if it works only in this case (if it depends on some network configuration), or it will always work, if it’s set to 0?
    • Or, maybe, I should make it configurable, I mean – add one more config option and let the user defines it’s value?
    • google-ing "sin6_flowinfo" gives me struct definitions and man pages, nothing useful about this field. Any interesting source? (understandable one..not RFC 😀 )

EDIT: Well, after @glglgl ‘s answer and after the hint, that sin6_flowinfo may be obsolete, I found some interesting sources: RFC: IPv6 Flow Label Specification , IETF draft: Flow Label as Transport-Layer Nonce , Practical guide for solaris and wikipedia .
The field is not obsolete (or I couldn’t find such source, that confirms this), but it looks like 0 as value is good enough.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T02:54:18+00:00Added an answer on May 27, 2026 at 2:54 am

    The best way to go is to use getaddrinfo().

    Pseudo code:

    struct addrinfo *restrict hints = { .ai_family = AF_UNSPEC, .ai_socktype = SOCK_STREAM };
    struct addrinfo * res, r;
    if (0 == getaddrinfo("foo.bar.baz", "http", &hints, &res)) {
        for (r=res; r; r=r->ai_next) {
            sock = socket(r->ai_family, r->ai_socktype, r->ai_protocol);
            connect(sock, r->ai_addr, r->ai_addrlen);
            if error: continue
            break
        }
    }
    freeaddrinfo(res);
    

    This will take the worry about sin6_scope_id from you; which is normally 0, except if you have link-local addresses like fe80::1234:56ff:fe78:9abc%eth2. This eth2 is converted to the correct scope ID.

    sin6_flowinfo is obsolete (AFAIK) and thus set to 0 in your resulting struct addrinfo‘s ai_addr.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've tried implementing a function like this, but unfortunately it doesn't work: const wchar_t
When implementing download function it work but during file saving to sdcard i get
I'm implementing AMF service methods for an flash front-end. Normally things work fine, but
I am wanting to use core plot but before I work on implementing it,
I am implementing Unit of Work. This is part of my interface: public interface
Work on a support helpdesk. New tickets come in and records are created in
Work on this small test application to learn threading/locking. I have the following code,
I work with C# at work but dislike how with webforms it spews out
I am implementing a user based reccomender that should work just on categories of
This is my first time implementing In App Purchases. During development and testing of

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.