Srar / node-tap

基于TypeScript实现的开源SSTap
Apache License 2.0
681 stars 150 forks source link

关于raw-socket 跟cap 库的问题 #44

Closed MingqianYang closed 6 years ago

MingqianYang commented 6 years ago

node_modules里面有两个库一个cap,一个raw-socket,

请问这两个库分别起到了什么作用?

我在查看源代码时在filters/TimesUDP.ts中看到了,但是没看懂是什么意思

Srar commented 6 years ago

截网卡原始数据包 发原始数据包

Yang Mingqian notifications@github.com于2018年7月25日 周三12:50写道:

node_modules里面有两个库一个cap,一个raw-socket,

请问这两个库分别起到了什么作用?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/Srar/node-tap/issues/44, or mute the thread https://github.com/notifications/unsubscribe-auth/ALgk4qNBvwgOpq8nI-yuBBh8k0_ve12Gks5uJ_kHgaJpZM4VfbeB .

MingqianYang commented 6 years ago

这个数据包是从虚拟网卡中出来的吗?

Srar commented 6 years ago

物理网卡

Yang Mingqian notifications@github.com于2018年7月25日 周三12:55写道:

这个数据是从虚拟网卡中出来的吗?

— You are receiving this because you commented.

Reply to this email directly, view it on GitHub https://github.com/Srar/node-tap/issues/44#issuecomment-407633101, or mute the thread https://github.com/notifications/unsubscribe-auth/ALgk4kPxiLp8xYLs8nYqCKvit7KtTJOAks5uJ_pAgaJpZM4VfbeB .

MingqianYang commented 6 years ago

那么截取到的数据包,发送给谁了?