huaxiaos
V2EX  ›  Android

Android 上可以有库或者什么方法,抓到 TCP 报文的标志位信息么?

  •  
  •   huaxiaos · Mar 14, 2023 · 12062 views
    This topic created in 1156 days ago, the information mentioned may be changed or developed.
    各位大神,现在有一个这样的需求,判断一个请求的 tcp 报文中的 Reset 标志位,是否被 Set

    Android 上有什么第三方库,或者其他方法,可以抓到 TCP 的报文信息么?


    通过 wireshark 可以抓到,但是现在想在 android 代码里面获取到这个信息

    Reset: Not set 或者 Reset: Set
    2 replies    2023-03-16 11:53:53 +08:00
    qscasdqwezxc
        1
    qscasdqwezxc  
       Mar 14, 2023 via Android
    安卓可以用 vpnservice 但是需要自己写代码再转发一次
    vpnservice 示例 https://github.com/hexene/LocalVPN
    huaxiaos
        2
    huaxiaos  
    OP
       Mar 16, 2023
    @qscasdqwezxc 多谢,我研究一下
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1399 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 38ms · UTC 17:05 · PVG 01:05 · LAX 10:05 · JFK 13:05
    ♥ Do have faith in what you're doing.