Subject: IPv6: let sin6_flow empty?
To: None <>
From: Florian Stoehr <>
List: tech-net
Date: 07/17/2005 04:02:19

can I let sin6_flow empty when opening a listening socket?

Here's my code (I'm asking becaus I cannot test this and still like to 
know whether this would work):

udpforcedsa6 = (struct sockaddr_in6 *)malloc(sizeof(struct sockaddr_in6));

/* will zero sin6_flow */
memset(udpforcedsa6, 0, sizeof(struct sockaddr_in6));
udpforcedsa6->sin6_len = sizeof(struct sockaddr_in6);
udpforcedsa6->sin6_family = AF_INET6;
udpforcedsa6->sin6_port = htons(forcedport);
/* ok with sin6_flow == 0 ? */
bindresvport_sa(udp6sock, (struct sockaddr *)udpforcedsa6);

Please reply to me in CC as I'm not on the list.