Lines Matching defs:udp
87 #include <netinet/udp.h> /* for nat traversal */
255 struct udphdr *udp = NULL;
412 udp = mtod(md, struct udphdr *);
421 if (sav->remote_ike_port == htons(udp->uh_dport)) {
423 udp->uh_dport = sav->natt_encapsulated_src_port;
424 udp->uh_sum = 0; /* don't need checksum with ESP auth */
459 udp = mtod(n, struct udphdr *);
460 esp = (struct esp *)(void *)((caddr_t)udp + sizeof(struct udphdr));
470 udp = mtod(md, struct udphdr *);
471 esp = (struct esp *)(void *)((caddr_t)udp + sizeof(struct udphdr));
648 udp->uh_sport = ntohs((u_short)esp_udp_encap_port);
649 udp->uh_dport = ntohs(sav->remote_ike_port);
650 // udp->uh_len set later, after all length tweaks are complete
651 udp->uh_sum = 0;
807 udp->uh_ulen = htons(ntohs(ip->ip_len) - (IP_VHL_HL(ip->ip_vhl) << 2));