MCPcopy Create free account
hub / github.com/F-Stack/f-stack / ProxyModify

Function ProxyModify

freebsd/netinet/libalias/alias_proxy.c:495–514  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

493}
494
495void
496ProxyModify(struct libalias *la, struct alias_link *lnk,
497 struct ip *pip,
498 int maxpacketsize,
499 int proxy_type)
500{
501
502 LIBALIAS_LOCK_ASSERT(la);
503 (void)la;
504
505 switch (proxy_type) {
506 case PROXY_TYPE_ENCODE_IPHDR:
507 ProxyEncodeIpHeader(pip, maxpacketsize);
508 break;
509
510 case PROXY_TYPE_ENCODE_TCPSTREAM:
511 ProxyEncodeTcpStream(lnk, pip, maxpacketsize);
512 break;
513 }
514}
515
516/*
517 Public API functions

Callers 2

UdpAliasOutFunction · 0.85
TcpAliasOutFunction · 0.85

Calls 2

ProxyEncodeIpHeaderFunction · 0.85
ProxyEncodeTcpStreamFunction · 0.85

Tested by

no test coverage detected