Skip to content

Commit

Permalink
Add NOKIA enterprise IDs. Not yet wired. #533
Browse files Browse the repository at this point in the history
  • Loading branch information
phaag committed Jun 2, 2024
1 parent 1619a60 commit f0a5f6f
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libnffile/vcs_track.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
#define __VCS_TRACK_H__
//THIS FILE IS AUTO GENERATED
//DO NOT TRACK THIS FILE WITH THE VCS
#define VCS_TRACK_DATE "2024-06-01 13:28:53 +0200"
#define VCS_TRACK_HASH "2b5db3b"
#define VCS_TRACK_DATE "2024-06-01 15:41:05 +0200"
#define VCS_TRACK_HASH "1619a60"
#endif
16 changes: 16 additions & 0 deletions src/netflow/ipfix.c
Original file line number Diff line number Diff line change
Expand Up @@ -370,6 +370,22 @@ static int LookupElement(uint16_t type, uint32_t EnterpriseNumber) {
break;
}
break;
case 637: // Nokia
switch (type) {
case 91: // InsideServiceId
dbg_printf(" NOKIA enterprise InsideServiceId: %u\n", type);
type = NOKIA_InsideServiceId;
break;
case 92: // OutsideServiceId
dbg_printf(" NOKIA enterprise OutsideServiceId: %u\n", type);
type = NOKIA_OutsideServiceId;
break;
case 93: // NatSubString
dbg_printf(" NOKIA enterprise NatSubString: %u\n", type);
type = NOKIA_NatSubString;
break;
}
break;
case 6871: // yaf CERT Coordination Centre
// map yaf types here
switch (type) {
Expand Down
4 changes: 4 additions & 0 deletions src/netflow/ipfix.h
Original file line number Diff line number Diff line change
Expand Up @@ -363,6 +363,10 @@ typedef struct ipfix_template_elements_e_s {
#define LOCAL_inPayload 32767
#define LOCAL_outPayload 32768

#define NOKIA_InsideServiceId 32769
#define NOKIA_OutsideServiceId 32770
#define NOKIA_NatSubString 32771

#define VENDOR_BIT_REVERSE 0x4000

/* prototypes */
Expand Down

0 comments on commit f0a5f6f

Please sign in to comment.