Lines Matching refs:link_type

301 	int		link_type;	/* Type of link: TCP, UDP, ICMP,
304 /* values for link_type */
412 int link_type)
417 if (link_type != LINK_PPTP)
419 n += link_type;
426 u_short src_port, u_short dst_port, int link_type)
432 if (link_type != LINK_PPTP) {
436 n += link_type;
631 lnk->link_type, 0);
645 && ((lnk->link_type == LINK_TCP) ||
646 (lnk->link_type == LINK_UDP))) {
647 if (GetSocket(la, port_net, &lnk->sockfd, lnk->link_type)) {
674 GetSocket(struct libalias *la, u_short port_net, int *sockfd, int link_type)
681 if (link_type == LINK_TCP)
683 else if (link_type == LINK_UDP)
737 int link_type;
741 * Get link_type from protocol
746 link_type = LINK_UDP;
749 link_type = LINK_TCP;
789 link_type, 0)) != NULL)
887 switch (lnk->link_type) {
929 int alias_port_param, int link_type)
947 lnk->link_type = link_type;
956 switch (link_type) {
994 switch (link_type) {
1044 src_port, dst_port, link_type);
1048 start_point = StartPointIn(alias_addr, lnk->alias_port, link_type);
1070 int link_type)
1079 link_type);
1082 old_lnk->link_type == LINK_TCP &&
1096 int link_type,
1103 i = StartPointOut(src_addr, dst_addr, src_port, dst_port, link_type);
1109 lnk->link_type == link_type &&
1120 link_type, 0);
1123 dst_port, link_type, 0);
1128 link_type, 0);
1134 link_type);
1145 int link_type,
1152 link_type, replace_partial_links);
1164 link_type, replace_partial_links);
1176 int link_type,
1204 start_point = StartPointIn(alias_addr, alias_port, link_type);
1214 && lnk->link_type == link_type) {
1222 && lnk->link_type == link_type) {
1229 && lnk->link_type == link_type
1237 && lnk->link_type == link_type
1273 if (link_type == LINK_SCTP) {
1281 link_type);
1291 int link_type,
1298 link_type, replace_partial_links);
1310 link_type, replace_partial_links);
1499 int link_type;
1505 link_type = LINK_UDP;
1508 link_type = LINK_TCP;
1517 link_type, create);
1525 link_type);
1539 int link_type;
1545 link_type = LINK_UDP;
1548 link_type = LINK_TCP;
1555 lnk = FindLinkOut(la, src_addr, dst_addr, src_port, dst_port, link_type, create);
1563 link_type);
1597 if (lnk->link_type == LINK_PPTP &&
1618 if (lnk->link_type == LINK_PPTP &&
1639 if (lnk->link_type == LINK_PPTP &&
1673 int link_type;
1679 link_type = LINK_UDP;
1682 link_type = LINK_TCP;
1689 lnk = FindLinkOut(la, src_addr, dst_addr, src_port, 0, link_type, 1);
1697 link_type);
2146 lnk->src_port, cid, lnk->alias_port, lnk->link_type);
2273 int link_type;
2279 link_type = LINK_UDP;
2282 link_type = LINK_TCP;
2285 link_type = LINK_SCTP;
2298 link_type);
2772 lnk->link_type != LINK_TCP)
2841 if (lnk->link_type == LINK_TCP) {