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
Printable View
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
Hello,
swadhin a écrit :[color=blue]
>
> how can we set vlan priority at socket level[/color]
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 wrote:
[color=blue]
> Hello,
>
> swadhin a écrit :[color=green]
> >
> > how can we set vlan priority at socket level[/color]
>
> 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.[/color]
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
---------------------------------------------------------------
Pascal Hambourg wrote:
[color=blue]
> Hello,
>
> swadhin a écrit :[color=green]
> >
> > how can we set vlan priority at socket level[/color]
>
> 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.[/color]
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
Pascal Hambourg wrote:
[color=blue]
> Hello,
>
> swadhin a écrit :[color=green]
> >
> > how can we set vlan priority at socket level[/color]
>
> 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.[/color]
swadhin a écrit :[color=blue]
>
> as we suggested below if we set the option......then is that will be
> per interface or per socket...[/color]
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.
[color=blue]
> i want to set the VLAN priority per Socket not per Interface.....[/color]
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.