Lines Matching full:ud

337 	struct udphdr *ud;  in IcmpAliasIn2()  local
345 ud = (struct udphdr *)ip_next(ip); in IcmpAliasIn2()
351 ud->uh_dport, ud->uh_sport, in IcmpAliasIn2()
377 accumulate += ud->uh_sport; in IcmpAliasIn2()
394 ud->uh_sport = original_port; in IcmpAliasIn2()
526 struct udphdr *ud; in IcmpAliasOut2() local
534 ud = (struct udphdr *)ip_next(ip); in IcmpAliasOut2()
540 ud->uh_dport, ud->uh_sport, in IcmpAliasOut2()
566 accumulate += ud->uh_dport; in IcmpAliasOut2()
582 ud->uh_dport = alias_port; in IcmpAliasOut2()
728 struct udphdr *ud; in ValidateUdpLength() local
737 ud = (struct udphdr *)ip_next(pip); in ValidateUdpLength()
738 if (!MF_ISSET(pip) && dlen < ntohs(ud->uh_ulen)) in ValidateUdpLength()
740 return (ud); in ValidateUdpLength()
746 struct udphdr *ud; in UdpAliasIn() local
751 ud = ValidateUdpLength(pip); in UdpAliasIn()
752 if (ud == NULL) in UdpAliasIn()
756 ud->uh_sport, ud->uh_dport, in UdpAliasIn()
771 .sport = &ud->uh_sport, in UdpAliasIn()
772 .dport = &ud->uh_dport, in UdpAliasIn()
779 alias_port = ud->uh_dport; in UdpAliasIn()
780 ud->uh_dport = GetOriginalPort(lnk); in UdpAliasIn()
792 if (ud->uh_sum != 0) { in UdpAliasIn()
794 accumulate -= ud->uh_dport; in UdpAliasIn()
801 accumulate += ud->uh_sport; in UdpAliasIn()
810 ADJUST_CHECKSUM(accumulate, ud->uh_sum); in UdpAliasIn()
816 ud->uh_sport = proxy_port; in UdpAliasIn()
837 struct udphdr *ud; in UdpAliasOut() local
847 ud = ValidateUdpLength(pip); in UdpAliasOut()
848 if (ud == NULL) in UdpAliasOut()
853 pip->ip_src, pip->ip_dst, ud->uh_dport, pip->ip_p); in UdpAliasOut()
859 dest_port = ud->uh_dport; in UdpAliasOut()
870 if (ud->uh_sum != 0) { in UdpAliasOut()
873 accumulate += ud->uh_dport; in UdpAliasOut()
875 ADJUST_CHECKSUM(accumulate, ud->uh_sum); in UdpAliasOut()
878 ud->uh_dport = proxy_server_port; in UdpAliasOut()
881 ud->uh_sport, ud->uh_dport, in UdpAliasOut()
891 .sport = &ud->uh_sport, in UdpAliasOut()
892 .dport = &ud->uh_dport, in UdpAliasOut()
903 ud = (struct udphdr *)ip_next(pip); in UdpAliasOut()
914 if (ud->uh_sum != 0) { in UdpAliasOut()
917 accumulate = ud->uh_sport; in UdpAliasOut()
921 ADJUST_CHECKSUM(accumulate, ud->uh_sum); in UdpAliasOut()
924 ud->uh_sport = alias_port; in UdpAliasOut()
999 .sport = &ud->uh_sport, in TcpAliasIn()
1000 .dport = &ud->uh_dport, in TcpAliasIn()
1566 struct udphdr *ud; in LibAliasUnaliasOut() local
1579 ud = (struct udphdr *)ip_next(pip); in LibAliasUnaliasOut()
1586 ud->uh_dport, ud->uh_sport, in LibAliasUnaliasOut()
1612 accumulate += ud->uh_sport; in LibAliasUnaliasOut()
1614 ADJUST_CHECKSUM(accumulate, ud->uh_sum); in LibAliasUnaliasOut()
1628 ud->uh_sport = original_port; in LibAliasUnaliasOut()