Lines Matching refs:ud

336 	struct udphdr *ud;  in IcmpAliasIn2()  local
345 ud = (struct udphdr *)ip_next(ip); in IcmpAliasIn2()
351 ud->uh_dport, ud->uh_sport, in IcmpAliasIn2()
385 accumulate += ud->uh_sport; in IcmpAliasIn2()
402 ud->uh_sport = original_port; in IcmpAliasIn2()
534 struct udphdr *ud; in IcmpAliasOut2() local
543 ud = (struct udphdr *)ip_next(ip); in IcmpAliasOut2()
549 ud->uh_dport, ud->uh_sport, in IcmpAliasOut2()
583 accumulate += ud->uh_dport; in IcmpAliasOut2()
599 ud->uh_dport = alias_port; in IcmpAliasOut2()
743 struct udphdr *ud; in ValidateUdpLength() local
752 ud = (struct udphdr *)ip_next(pip); in ValidateUdpLength()
753 if (!MF_ISSET(pip) && dlen < ntohs(ud->uh_ulen)) in ValidateUdpLength()
755 return (ud); in ValidateUdpLength()
761 struct udphdr *ud; in UdpAliasIn() local
767 ud = ValidateUdpLength(pip); in UdpAliasIn()
768 if (ud == NULL) in UdpAliasIn()
772 ud->uh_sport, ud->uh_dport, in UdpAliasIn()
789 .sport = &ud->uh_sport, in UdpAliasIn()
790 .dport = &ud->uh_dport, in UdpAliasIn()
797 alias_port = ud->uh_dport; in UdpAliasIn()
798 ud->uh_dport = GetOriginalPort(lnk); in UdpAliasIn()
810 if (ud->uh_sum != 0) { in UdpAliasIn()
812 accumulate -= ud->uh_dport; in UdpAliasIn()
819 accumulate += ud->uh_sport; in UdpAliasIn()
828 ADJUST_CHECKSUM(accumulate, ud->uh_sum); in UdpAliasIn()
834 ud->uh_sport = proxy_port; in UdpAliasIn()
854 struct udphdr *ud; in UdpAliasOut() local
864 ud = ValidateUdpLength(pip); in UdpAliasOut()
865 if (ud == NULL) in UdpAliasOut()
870 pip->ip_src, pip->ip_dst, ud->uh_dport, pip->ip_p); in UdpAliasOut()
876 dest_port = ud->uh_dport; in UdpAliasOut()
887 if (ud->uh_sum != 0) { in UdpAliasOut()
890 accumulate += ud->uh_dport; in UdpAliasOut()
892 ADJUST_CHECKSUM(accumulate, ud->uh_sum); in UdpAliasOut()
895 ud->uh_dport = proxy_server_port; in UdpAliasOut()
898 ud->uh_sport, ud->uh_dport, in UdpAliasOut()
910 .sport = &ud->uh_sport, in UdpAliasOut()
911 .dport = &ud->uh_dport, in UdpAliasOut()
922 ud = (struct udphdr *)ip_next(pip); in UdpAliasOut()
933 if (ud->uh_sum != 0) { in UdpAliasOut()
936 accumulate = ud->uh_sport; in UdpAliasOut()
940 ADJUST_CHECKSUM(accumulate, ud->uh_sum); in UdpAliasOut()
943 ud->uh_sport = alias_port; in UdpAliasOut()
1019 .sport = &ud->uh_sport, in TcpAliasIn()
1020 .dport = &ud->uh_dport, in TcpAliasIn()
1585 struct udphdr *ud; in LibAliasUnaliasOut() local
1598 ud = (struct udphdr *)ip_next(pip); in LibAliasUnaliasOut()
1605 ud->uh_dport, ud->uh_sport, in LibAliasUnaliasOut()
1638 accumulate += ud->uh_sport; in LibAliasUnaliasOut()
1640 ADJUST_CHECKSUM(accumulate, ud->uh_sum); in LibAliasUnaliasOut()
1654 ud->uh_sport = original_port; in LibAliasUnaliasOut()