MCPcopy Create free account
hub / github.com/F-Stack/f-stack / StartPointOut

Function StartPointOut

freebsd/netinet/libalias/alias_db.c:419–434  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

417}
418
419static u_int
420StartPointOut(struct in_addr src_addr, struct in_addr dst_addr,
421 u_short src_port, u_short dst_port, int link_type)
422{
423 u_int n;
424
425 n = src_addr.s_addr;
426 n += dst_addr.s_addr;
427 if (link_type != LINK_PPTP) {
428 n += src_port;
429 n += dst_port;
430 }
431 n += link_type;
432
433 return (n % LINK_TABLE_OUT_SIZE);
434}
435
436static int
437SeqDiff(u_long x, u_long y)

Callers 4

AddLinkFunction · 0.85
_FindLinkOutFunction · 0.85
FindPptpOutByCallIdFunction · 0.85
FindPptpOutByPeerCallIdFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected