简体   繁体   中英

How to add IPv6 routing header to UDP and/or TCP packet in JAVA?

I want to send IPv6 packets from server to client through a specific router. That's why I want to add Routing Header, which contains th address of specific router.

Does anyone know, how can I add Routing Header to a packet in JAVA?

My library may help you. This is a java library for crafting and sending packets. https://github.com/kaitoy/pcap4j

AFAIK大多数路由器出于安全原因会忽略此类信息(请参阅RFC 5095以了解原因),而Java不支持更改或检查标头信息。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM