Skip to main content

encode_fteid

Function encode_fteid 

Source
pub fn encode_fteid(interface_type: u8, teid: u32, addr: IpAddr) -> Vec<u8> ⓘ
Expand description

GTPv2-C Fully Qualified TEID (IE 87), TS 29.274 §8.22.

Octet 1 is V4 | V6 | interface-type(6 bits), then the 4-octet TEID/GRE key, then the addresses the flags announced.