| |

VerySource

 Forgot password?
 Register
Search
View: 832|Reply: 1

Socket programming supporting VLAN tags on Windows

[Copy link]

1

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-1-24 18:00:02
| Show all posts |Read mode
How to send TCP Socket with VLAN tag on Windows?

If you use the original SOCKET, it is too complicated. Is there any good way?

Is there a service program to write?

Thank you!
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-7-16 22:00:02
| Show all posts
Sending TAG messages, this is L2 after all, will the IP protocol stack do this work?
The VLAN TAG of the packet depends on the bridge, so the rawsocket seems to have no way.

Solution: At present, many network cards (Inter, BroadCom, Marvell) support sending TAG packets, then configure the network card.
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list