Discussion:
how can we set vlan priority at socket level
(too old to reply)
swadhin
2006-08-29 10:01:16 UTC
Permalink
hi all,

i want to set vlan priority per socket.....but im not getting how
to....

can anyone please help me in this.....

how can we set vlan priority at socket level


regards,
jyoti
Pascal Hambourg
2006-08-29 10:58:26 UTC
Permalink
Hello,
Post by swadhin
how can we set vlan priority at socket level
On which operating system ?

For instance, on Linux, you could set the skb-priority field with the
SO_PRIORITY socket option. Then, with the set_egress_map option of the
vconfig utility, you could set the VLAN priority vlan-qos field in
outbound packets according to the skb-priority field.
swadhin
2006-08-29 11:43:22 UTC
Permalink
Post by Pascal Hambourg
Hello,
Post by swadhin
how can we set vlan priority at socket level
On which operating system ?
For instance, on Linux, you could set the skb-priority field with the
SO_PRIORITY socket option. Then, with the set_egress_map option of the
vconfig utility, you could set the VLAN priority vlan-qos field in
outbound packets according to the skb-priority field.
swadhin
2006-08-29 11:57:23 UTC
Permalink
thanks for your replay....

will this code work....

int opt = PRIORITY << 5;
setsockopt(mysocks[i], SOL_IP, IP_TOS, &opt, sizeof(opt));
opt = PRIORITY;
setsockopt(mysocks[i], SOL_SOCKET, SO_PRIORITY, &opt, sizeof(opt));


can u please tell detailly....

thanks,
jyoti
---------------------------------------------------------------
Post by Pascal Hambourg
Hello,
Post by swadhin
how can we set vlan priority at socket level
On which operating system ?
For instance, on Linux, you could set the skb-priority field with the
SO_PRIORITY socket option. Then, with the set_egress_map option of the
vconfig utility, you could set the VLAN priority vlan-qos field in
outbound packets according to the skb-priority field.
swadhin
2006-08-30 08:53:08 UTC
Permalink
hi Pascal,

as we suggested below if we set the option......then is that will be
per interface or per socket...

i want to set the VLAN priority per Socket not per Interface.....

regards,
jyoti
Post by Pascal Hambourg
Hello,
Post by swadhin
how can we set vlan priority at socket level
On which operating system ?
For instance, on Linux, you could set the skb-priority field with the
SO_PRIORITY socket option. Then, with the set_egress_map option of the
vconfig utility, you could set the VLAN priority vlan-qos field in
outbound packets according to the skb-priority field.
Pascal Hambourg
2006-08-30 10:54:12 UTC
Permalink
Post by swadhin
as we suggested below if we set the option......then is that will be
per interface or per socket...
Per socket, and possibly per interface.
SO_PRIORITY sets the packet priority for a given socket. set_egress_map
sets the VLAN priority for a given VLAN interface and packet priority.
Post by swadhin
i want to set the VLAN priority per Socket not per Interface.....
If your box has several VLAN interface, then you need to set the same
set_egress_map options in all the VLAN interface.

Please :
1) Don't repeat messages. It won't give you more answers.
2) Don't shout (write in caps). It hurts.
3) Don't reply to my From address. Use my Reply-To address instead. If
you reply in the newsgroup, don't send me a private copy, I'll read the
newsgroup|list.

Loading...