Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

./inet/networklayer/ipv4/Ipv4RoutingTable.h:259:50: error: unknown type name 'Ipv4Header' #653

Closed
lakshmikrish-97 opened this issue Feb 12, 2021 · 2 comments
Labels

Comments

@lakshmikrish-97
Copy link

lakshmikrish-97 commented Feb 12, 2021

I am trying to use the Ipv4Header file and functionalities but I keep getting this error, this is on INET4.2.1

Not sure why, this was named as IPv4Datagram in earlier versions - INET3.6, so has it probably been changed again? But I am not sure from the changlog

any help or direction would be greatly appreciated!!

Edit : I noticed, under inet/networklayer/ipv4 : we have Ipv4Header.msg and Ipv4Header.cc but no Ipv4Header.h
Any help/ guidance on how we need to modify Ipv4Header.msg to generate this?

@edlongman
Copy link
Contributor

You need to include inet/networklayer/ipv4/Ipv4Header_m.h

the Ipv4Header.cc is just the implementation of some custom header functions defined in Ipv4Header.msg which is transformed into Ipv4Header_m.h (and Ipv4Header_m.cc

I hope that helps.

@lakshmikrish-97
Copy link
Author

Ohh, thank you so much! This fixed that issue now, thanks so much once again

@levy levy added the Fixed label Jan 21, 2022
@levy levy closed this as completed Jan 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants