Lines Matching refs:link_type

300 	int		link_type;	/* Type of link: TCP, UDP, ICMP,
303 /* values for link_type */
419 int link_type)
424 if (link_type != LINK_PPTP)
426 n += link_type;
433 u_short src_port, u_short dst_port, int link_type)
439 if (link_type != LINK_PPTP) {
443 n += link_type;
638 lnk->link_type, 0);
652 && ((lnk->link_type == LINK_TCP) ||
653 (lnk->link_type == LINK_UDP))) {
654 if (GetSocket(la, port_net, &lnk->sockfd, lnk->link_type)) {
681 GetSocket(struct libalias *la, u_short port_net, int *sockfd, int link_type)
688 if (link_type == LINK_TCP)
690 else if (link_type == LINK_UDP)
744 int link_type;
748 * Get link_type from protocol
753 link_type = LINK_UDP;
756 link_type = LINK_TCP;
796 link_type, 0)))
894 switch (lnk->link_type) {
936 int alias_port_param, int link_type)
954 lnk->link_type = link_type;
963 switch (link_type) {
1001 switch (link_type) {
1051 src_port, dst_port, link_type);
1055 start_point = StartPointIn(alias_addr, lnk->alias_port, link_type);
1077 int link_type)
1086 link_type);
1089 old_lnk->link_type == LINK_TCP &&
1103 int link_type,
1110 i = StartPointOut(src_addr, dst_addr, src_port, dst_port, link_type);
1116 lnk->link_type == link_type &&
1127 link_type, 0);
1130 dst_port, link_type, 0);
1135 link_type, 0);
1141 link_type);
1152 int link_type,
1159 link_type, replace_partial_links);
1171 link_type, replace_partial_links);
1183 int link_type,
1211 start_point = StartPointIn(alias_addr, alias_port, link_type);
1221 && lnk->link_type == link_type) {
1229 && lnk->link_type == link_type) {
1236 && lnk->link_type == link_type
1244 && lnk->link_type == link_type
1280 if (link_type == LINK_SCTP) {
1288 link_type);
1298 int link_type,
1305 link_type, replace_partial_links);
1317 link_type, replace_partial_links);
1506 int link_type;
1512 link_type = LINK_UDP;
1515 link_type = LINK_TCP;
1524 link_type, create);
1532 link_type);
1546 int link_type;
1552 link_type = LINK_UDP;
1555 link_type = LINK_TCP;
1562 lnk = FindLinkOut(la, src_addr, dst_addr, src_port, dst_port, link_type, create);
1570 link_type);
1604 if (lnk->link_type == LINK_PPTP &&
1625 if (lnk->link_type == LINK_PPTP &&
1646 if (lnk->link_type == LINK_PPTP &&
1680 int link_type;
1686 link_type = LINK_UDP;
1689 link_type = LINK_TCP;
1696 lnk = FindLinkOut(la, src_addr, dst_addr, src_port, 0, link_type, 1);
1704 link_type);
2145 lnk->src_port, cid, lnk->alias_port, lnk->link_type);
2272 int link_type;
2278 link_type = LINK_UDP;
2281 link_type = LINK_TCP;
2284 link_type = LINK_SCTP;
2297 link_type);
2771 lnk->link_type != LINK_TCP)
2840 if (lnk->link_type == LINK_TCP) {