diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2007-03-29 05:21:31 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2007-03-29 05:21:31 +0000 |
commit | 7ff51b00c19ad486452c5947d10dac3fe197b03c (patch) | |
tree | f5ca6ec648622707ca7aa654ca4d9adfe3369e84 /cpukit/libnetworking/netinet/tcp_subr.c | |
parent | 2007-03-29 Ralf Corsépius <ralf.corsepius@rtems.org> (diff) | |
download | rtems-7ff51b00c19ad486452c5947d10dac3fe197b03c.tar.bz2 |
Preps to eliminate _IP_VHL (Abandoned in FreeBSD).
Diffstat (limited to 'cpukit/libnetworking/netinet/tcp_subr.c')
-rw-r--r-- | cpukit/libnetworking/netinet/tcp_subr.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/cpukit/libnetworking/netinet/tcp_subr.c b/cpukit/libnetworking/netinet/tcp_subr.c index 6349eeb4fc..7d657c1e21 100644 --- a/cpukit/libnetworking/netinet/tcp_subr.c +++ b/cpukit/libnetworking/netinet/tcp_subr.c @@ -592,9 +592,14 @@ tcp_ctlinput(cmd, sa, vip) else if (!PRC_IS_REDIRECT(cmd) && ((unsigned)cmd > PRC_NCMDS || inetctlerrmap[cmd] == 0)) return; - if (ip) { + if (ip != NULL) { +#ifdef _IP_VHL th = (struct tcphdr *)((caddr_t)ip + (IP_VHL_HL(ip->ip_vhl) << 2)); +#else + th = (struct tcphdr *)((caddr_t)ip + + (ip->ip_hl << 2)); +#endif in_pcbnotify(&tcb, sa, th->th_dport, ip->ip_src, th->th_sport, cmd, notify); } else |