docs(config): explain VLAN subinterface for tagged multicast - #743
Closed
stackia wants to merge 1 commit into
Closed
docs(config): explain VLAN subinterface for tagged multicast#743stackia wants to merge 1 commit into
stackia wants to merge 1 commit into
Conversation
rtp2httpd already binds to kernel netdevs such as eth0.12. Document that 802.1Q tag stripping is the kernel's job, and that writing eth0.12 in config does not create the VLAN device. Co-authored-by: jsq2627 <jsq2627@gmail.com>
Contributor
Documentation previewThe documentation preview has been deployed for this pull request. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #742
Summary
rtp2httpd 不需要在进程内剥离 802.1Q tag。组播收包走普通 UDP socket + IGMP join,内核不会把带 VLAN tag 的帧交给物理口上的 UDP socket。
正确做法是先在系统里创建 VLAN 子接口,再把
upstream-interface-multicast(或upstream-interface)指到这个已经存在的内核设备,例如eth0.12。配置里写eth0.12不会创建该接口。Changes
rtp2httpd.confWhy not in-app tag stripping
在用户态用
AF_PACKET解析 802.1Q、再自己发带 tag 的 IGMP,会绕过内核 IP/组播栈、防火墙和路由,也重复了8021q模块已经做的事。这不属于 rtp2httpd 的职责(文档也写明它不是 VLAN 管理器)。