alias_skinny.c (ed01a5821550bf9859165f24c95b30c5f1b69f22) | alias_skinny.c (9fa0fd268273d90e765d9ebfe0be87ea4d64e138) |
---|---|
1/*- 2 * alias_skinny.c 3 * 4 * Copyright (c) 2002, 2003 MarcusCom, Inc. 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 209 unchanged lines hidden (view full) --- 218{ 219 int hlen, tlen, dlen; 220 struct tcphdr *tc; 221 int32_t msgId, len, t, lip; 222 struct skinny_header *sd; 223 int orig_len, skinny_hdr_len = sizeof(struct skinny_header); 224 ConvDirection direction; 225 | 1/*- 2 * alias_skinny.c 3 * 4 * Copyright (c) 2002, 2003 MarcusCom, Inc. 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 209 unchanged lines hidden (view full) --- 218{ 219 int hlen, tlen, dlen; 220 struct tcphdr *tc; 221 int32_t msgId, len, t, lip; 222 struct skinny_header *sd; 223 int orig_len, skinny_hdr_len = sizeof(struct skinny_header); 224 ConvDirection direction; 225 |
226 tc = (struct tcphdr *)((char *)pip + (pip->ip_hl << 2)); | 226 tc = (struct tcphdr *)ip_next(pip); |
227 hlen = (pip->ip_hl + tc->th_off) << 2; 228 tlen = ntohs(pip->ip_len); 229 dlen = tlen - hlen; 230 | 227 hlen = (pip->ip_hl + tc->th_off) << 2; 228 tlen = ntohs(pip->ip_len); 229 dlen = tlen - hlen; 230 |
231 sd = (struct skinny_header *)((char *)pip + hlen); | 231 sd = (struct skinny_header *)ip_next(pip); |
232 233 /* 234 * XXX This direction is reserved for future use. I still need to 235 * handle the scenario where the call manager is on the inside, and 236 * the calling phone is on the global outside. 237 */ 238 if (ntohs(tc->th_dport) == la->skinnyPort) { 239 direction = ClientToServer; --- 111 unchanged lines hidden --- | 232 233 /* 234 * XXX This direction is reserved for future use. I still need to 235 * handle the scenario where the call manager is on the inside, and 236 * the calling phone is on the global outside. 237 */ 238 if (ntohs(tc->th_dport) == la->skinnyPort) { 239 direction = ClientToServer; --- 111 unchanged lines hidden --- |