Lines Matching defs:link_type

310     int     link_type;  /* Type of link: TCP, UDP, ICMP,
313 /* values for link_type */
435 int link_type)
440 if (link_type != LINK_PPTP)
442 n += link_type;
449 u_short src_port, u_short dst_port, int link_type)
455 if (link_type != LINK_PPTP) {
459 n += link_type;
665 lnk->link_type, 0);
679 && ((lnk->link_type == LINK_TCP) ||
680 (lnk->link_type == LINK_UDP))) {
681 if (GetSocket(la, port_net, &lnk->sockfd, lnk->link_type)) {
708 GetSocket(struct libalias *la, u_short port_net, int *sockfd, int link_type)
715 if (link_type == LINK_TCP)
717 else if (link_type == LINK_UDP)
777 int link_type;
781 * Get link_type from protocol
786 link_type = LINK_UDP;
789 link_type = LINK_TCP;
829 link_type, 0)))
928 switch (lnk->link_type) {
975 int link_type)
994 lnk->link_type = link_type;
1003 switch (link_type) {
1041 switch (link_type) {
1091 src_port, dst_port, link_type);
1095 start_point = StartPointIn(alias_addr, lnk->alias_port, link_type);
1117 int link_type)
1126 link_type);
1129 old_lnk->link_type == LINK_TCP &&
1143 int link_type,
1150 i = StartPointOut(src_addr, dst_addr, src_port, dst_port, link_type);
1156 lnk->link_type == link_type &&
1167 link_type, 0);
1170 dst_port, link_type, 0);
1175 link_type, 0);
1181 link_type);
1192 int link_type,
1199 link_type, replace_partial_links);
1211 link_type, replace_partial_links);
1223 int link_type,
1251 start_point = StartPointIn(alias_addr, alias_port, link_type);
1261 && lnk->link_type == link_type) {
1269 && lnk->link_type == link_type) {
1276 && lnk->link_type == link_type
1284 && lnk->link_type == link_type
1323 link_type);
1333 int link_type,
1340 link_type, replace_partial_links);
1352 link_type, replace_partial_links);
1541 int link_type;
1547 link_type = LINK_UDP;
1550 link_type = LINK_TCP;
1559 link_type, create);
1567 link_type);
1581 int link_type;
1587 link_type = LINK_UDP;
1590 link_type = LINK_TCP;
1597 lnk = FindLinkOut(la, src_addr, dst_addr, src_port, dst_port, link_type, create);
1605 link_type);
1639 if (lnk->link_type == LINK_PPTP &&
1660 if (lnk->link_type == LINK_PPTP &&
1681 if (lnk->link_type == LINK_PPTP &&
1715 int link_type;
1721 link_type = LINK_UDP;
1724 link_type = LINK_TCP;
1731 lnk = FindLinkOut(la, src_addr, dst_addr, src_port, 0, link_type, 1);
1739 link_type);
2192 lnk->src_port, cid, lnk->alias_port, lnk->link_type);
2333 int link_type;
2339 link_type = LINK_UDP;
2342 link_type = LINK_TCP;
2355 link_type);
2833 lnk->link_type != LINK_TCP)
2903 if (lnk->link_type == LINK_TCP) {