alias_db.c (ed01a5821550bf9859165f24c95b30c5f1b69f22) alias_db.c (9fa0fd268273d90e765d9ebfe0be87ea4d64e138)
1/*-
2 * Copyright (c) 2001 Charles Mott <cm@linktel.net>
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 1894 unchanged lines hidden (view full) ---

1903packet size was altered is searched.
1904*/
1905
1906 int i;
1907 struct tcphdr *tc;
1908 int delta, ack_diff_min;
1909 u_long ack;
1910
1/*-
2 * Copyright (c) 2001 Charles Mott <cm@linktel.net>
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 1894 unchanged lines hidden (view full) ---

1903packet size was altered is searched.
1904*/
1905
1906 int i;
1907 struct tcphdr *tc;
1908 int delta, ack_diff_min;
1909 u_long ack;
1910
1911 tc = (struct tcphdr *)((char *)pip + (pip->ip_hl << 2));
1911 tc = ip_next(pip);
1912 ack = tc->th_ack;
1913
1914 delta = 0;
1915 ack_diff_min = -1;
1916 for (i = 0; i < N_LINK_TCP_DATA; i++) {
1917 struct ack_data_record x;
1918
1919 x = lnk->data.tcp->ack[i];

--- 27 unchanged lines hidden (view full) ---

1947packet size was altered is searched.
1948*/
1949
1950 int i;
1951 struct tcphdr *tc;
1952 int delta, seq_diff_min;
1953 u_long seq;
1954
1912 ack = tc->th_ack;
1913
1914 delta = 0;
1915 ack_diff_min = -1;
1916 for (i = 0; i < N_LINK_TCP_DATA; i++) {
1917 struct ack_data_record x;
1918
1919 x = lnk->data.tcp->ack[i];

--- 27 unchanged lines hidden (view full) ---

1947packet size was altered is searched.
1948*/
1949
1950 int i;
1951 struct tcphdr *tc;
1952 int delta, seq_diff_min;
1953 u_long seq;
1954
1955 tc = (struct tcphdr *)((char *)pip + (pip->ip_hl << 2));
1955 tc = ip_next(pip);
1956 seq = tc->th_seq;
1957
1958 delta = 0;
1959 seq_diff_min = -1;
1960 for (i = 0; i < N_LINK_TCP_DATA; i++) {
1961 struct ack_data_record x;
1962
1963 x = lnk->data.tcp->ack[i];

--- 27 unchanged lines hidden (view full) ---

1991been altered, then this list will begin to overwrite itself.
1992*/
1993
1994 struct tcphdr *tc;
1995 struct ack_data_record x;
1996 int hlen, tlen, dlen;
1997 int i;
1998
1956 seq = tc->th_seq;
1957
1958 delta = 0;
1959 seq_diff_min = -1;
1960 for (i = 0; i < N_LINK_TCP_DATA; i++) {
1961 struct ack_data_record x;
1962
1963 x = lnk->data.tcp->ack[i];

--- 27 unchanged lines hidden (view full) ---

1991been altered, then this list will begin to overwrite itself.
1992*/
1993
1994 struct tcphdr *tc;
1995 struct ack_data_record x;
1996 int hlen, tlen, dlen;
1997 int i;
1998
1999 tc = (struct tcphdr *)((char *)pip + (pip->ip_hl << 2));
1999 tc = ip_next(pip);
2000
2001 hlen = (pip->ip_hl + tc->th_off) << 2;
2002 tlen = ntohs(pip->ip_len);
2003 dlen = tlen - hlen;
2004
2005 x.ack_old = htonl(ntohl(tc->th_seq) + dlen);
2006 x.ack_new = htonl(ntohl(tc->th_seq) + dlen + delta);
2007 x.delta = delta;

--- 781 unchanged lines hidden ---
2000
2001 hlen = (pip->ip_hl + tc->th_off) << 2;
2002 tlen = ntohs(pip->ip_len);
2003 dlen = tlen - hlen;
2004
2005 x.ack_old = htonl(ntohl(tc->th_seq) + dlen);
2006 x.ack_new = htonl(ntohl(tc->th_seq) + dlen + delta);
2007 x.delta = delta;

--- 781 unchanged lines hidden ---